openforcefield / smirnoff99Frosst

A general small molecule force field descended from AMBER99 and parm@Frosst, available in the SMIRNOFF format
Creative Commons Attribution 4.0 International
28 stars 9 forks source link

Fix an incorrectly ordered generic #4

Closed davidlmobley closed 8 years ago

davidlmobley commented 8 years ago

In the smirff99Frosst, I noticed two probable typos:

 <Bond smirks="[#6X2:1]-[#6X4:2]" id="b23" k="700.0" length="1.468"/>
 <Bond smirks="[#6X2:1]-[#6:2]" id="b24" k="700.0" length="1.440"/>
 <Bond smirks="[#6X2:1]=[#6X3:2]" id="b25" k="1098.0" length="1.35"/>

The second line should come before the first, correct? Otherwise, the second will override the first and thus never be used...?

Also, this angle pattern contains a typo, 1~ which should be just ~, I think?

<Angle smirks="[*r3:1]1~@[*r3:2]~@[*r3:3]1" angle="60." id="a4" k="700.0"/>
davidlmobley commented 8 years ago

On the second of these -- this is just how a ring is defined in SMARTS/SMIRKS, which makes sense how it transfers from SMILES. But per @cbayly13 , the first is indeed a typo.

I'll get a fix in.

jchodera commented 8 years ago

Would it be worthwhile to develop a tool to figure out how many times each type is applied to a very large dataset (e.g. ZINC) to catch errors like this?

For types that are used zero times, simply flagging them for examination is probably enough for someone to figure out what the bug is.

davidlmobley commented 8 years ago

@jchodera - yes, we have such a tool, we just haven't had time to do large datasets yet, but we're working on that.

I just happened to notice this while showing someone the file. There are certainly going to be other issues and we have plans to catch them....

(Before even getting to what you propose, we're first working on ensuring we have coverage of all the chemical space we think we cover...)