openff-toolkit: Parameter assignment regression test for FreeSolv fails due bug in toolkit version 0.0.4
I’ve attempted to test whether the current toolkit can recreate the Systems we used for the hydration free energy calculations in the SMIRNOFF paper. Currently, the test fails for molecule 1019269 (1-butanol). Because of a different Lennard-Jones parameter that changed from version 0.0.3 (the toolkit version used for the calculations) to the current smirnoff99Frosst.offxml. Here are the parameters:
- 0.0.3 (id n13): https://github.com/openforcefield/openforcefield/blob/0.0.3/openforcefield/data/forcefield/smirnoff99Frosst.ffxml#L316
- 0.1 (id n12): https://github.com/openforcefield/openforcefield/blob/0.1.0/openforcefield/data/forcefield/smirnoff99Frosst.offxml#L315
Is this expected? If it is, should I just ignore the test case?
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 27 (14 by maintainers)
Thanks, @andrrizzi – I agree with your points and what you’ve done here. Excellent.
And this is not relevant immediately to our work on tertiary amines, at least in the sense that we haven’t been doing anything with these molecules.
Wow—great sleuthing, @andrrizzi! That was indeed an important bugfix.
@andrrizzi I’m trying to understand the problems you posted so I’m going to comment on them one at a time:
Are you using the same input files and version of openeye as was used before? It seems weird for these to have not been a problem before, but are a problem now.
I think we’ve handled this case as an intentional change in the parameters, as discussed above, it is a typo from what we actually wanted, but was an officially released version of the force field.
I’m having a hard time understanding the direction of this, but in version 1.0.6 we added cyclobutyl parameters that were not there before. So if you’re saying this
[*:1]~[#6X4:2]-[*:3]parameter used to be applied and now a7 and a8 are instead, then I think this is correct. However, if it is the reverse then we have a problem.OK, I think this is the same change in parameters as above, but it seems like you should always get an intracyclic and extracyclic parameter change so I don’t understand how you’re not seeing a7 here. It would be really helpful if you could include SMILES or pictures of the molecules when you highlight issues so I can understand what chemistry is there.
This one makes me worry you have a different tautomer or something with your molecule because the first SMIRKS should only match a sulfur next two a monovalent oxygen (
#8X1) and the second a divalent oxygen (#8X2). We haven’t changed those parameters and they should never match the same bond because the chemistry for those SMIRKS are different. So again, are you sure you’re using the same inputs for both tests?OK, I’m still not clear on how you’re identifying which parameter is being assigned incorrectly… I don’t remember us changing this torsion, so we’d need to dig a little deeper. However, you should consider the chemistry of the center bond, t50 cannot match the same bond as t51, note the change in the connectivity on the nitrogen. However, t56 is a more subset of the chemistry matched in t51, same connectivity on the carbon and nitrogen, but now the carbon is in a 3-membered ring.
See also https://github.com/openforcefield/smirnoff99Frosst/issues/81 which is another.
I think these are the only two changes. I’m not seeing a change to torsions.
@andrrizzi also check out https://github.com/openforcefield/smirnoff99Frosst/pull/85 which may be one of the changes you’re running into.