-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Smarts Strings for Chlorobenzene and Benzonitrile #308
Conversation
Toluene, propanenitrile, o-xylene, 124-trimethylbenzene, 2-methylphenol, 3-methylphenol, 4-methylphenol, and ethyl benzene failed for testopls::test_atomtyping. Atomtyping conflicts: 260 vs 145, 261 vs 754, 262 vs 753. Check back at the definitions for those atom types, it's possible your PR's definitions are too generic, or maybe those old atom-types need to be amended |
Also please add some test molecules in MOL2 format and update the |
Thanks for your feedback. @Argon1999 is currently running some simulations of bulk chlorobenzene and benzonitrile to verify several properties. Afterwards, we will add some molecules, update |
I think tests will pass now. Should just need to add the mol2 files and update |
Codecov Report
@@ Coverage Diff @@
## master #308 +/- ##
==========================================
- Coverage 86.90% 84.78% -2.12%
==========================================
Files 14 14
Lines 1252 1275 +23
==========================================
- Hits 1088 1081 -7
- Misses 164 194 +30 |
Update on this: Benzonitrile is atom typing. We replaced the gro and top files in the One of the dihedral types we're missing is in the benonitrile ring (CA-CA-CA-CA), but we can't find it in the force field files in GROMACS. Searching other sources to see if we can find the parameters for this dihedral. |
Normally I'd go to http://virtualchemistry.org/ (the companion to David van der Spoel's big JCTC paper: https://pubs.acs.org/doi/abs/10.1021/ct200731v) since I think many of our files originally came from there, but it seems to be offline .... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome additions! Thanks @Argon1999 and @rmatsum836 ! Just a comment/suggestion left below and after that, LGTM!
Co-Authored-By: Justin Gilmer <[email protected]>
Thanks for fixing this @Argon1999. @mosdef-hub/mosdef-contributors I think this is good to go if I could get another pair of eyes on this. |
JK, |
This fail seems to relate to the new box class, so I am looking into this now |
Tests are now passing. @mosdef-hub/mosdef-contributors this should be good to be reviewed now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am I missing chlorobenzene files? I don't see them in this PR or the opls_validation
folder of the master branch
<Type name="opls_260" class="CA" element="C" mass="12.011" def="[C;X3;r6]([C;X2;%opls_261])" overrides = "opls_145" desc="Benzonitrile C(CN)" doi="10.1021/ja9621760"/> | ||
<Type name="opls_261" class="CZ" element="C" mass="12.011" def="[C;X2]([C;X3;r6])" overrides = "opls_754" desc="Benzonitrile: carbon in nitrile group (CN) " doi="10.1021/ja9621760"/> | ||
<Type name="opls_262" class="NZ" element="N" mass="14.0067" def="[N;X1][C;%opls_261]" overrides = "opls_753" desc="Benzonitrile Nitrogen(benzene-C)N" doi="10.1021/ja9621760"/> | ||
<Type name="opls_263" class="CA" element="C" mass="12.011" def="[C;X3;r6]1(Cl)[C;X3;r6][C;X3;r6][C;X3;r6][C;X3;r6][C;X3;r6]1" overrides="opls_145" desc="Chlorobenzene C(Cl)" doi="10.1021/ja9621760"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<Type name="opls_263" class="CA" element="C" mass="12.011" def="[C;X3;r6]1(Cl)[C;X3;r6][C;X3;r6][C;X3;r6][C;X3;r6][C;X3;r6]1" overrides="opls_145" desc="Chlorobenzene C(Cl)" doi="10.1021/ja9621760"/> | |
<Type name="opls_263" class="CA" element="C" mass="12.011" def="[C;X3;r6](Cl)1[C;X3;r6][C;X3;r6][C;X3;r6][C;X3;r6][C;X3;r6]1" overrides="opls_145" desc="Chlorobenzene C(Cl)" doi="10.1021/ja9621760"/> |
I am just curious if this works too, no need to make this change. I wonder if the branch can be defined both inside and outside the ring
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Argon1999 could you add gro and top files for chlorobenzene in a Chlorobenzene
directory in opls_validation
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets shorten the amount of cholorbenzenes in the gro file from 200 -> 1, and then we can see if all the tests pass @Argon1999
@@ -0,0 +1,2403 @@ | |||
GROningen MAchine for Chemical Simulation | |||
2400 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we update this file to just have 1 cholorobenzene? Will make the testing a bit faster.
Really went down a rabbit hole with this one. I think that we're much better off reading What caused us problems in this case is that we had both |
@rmatsum836 I think use |
I thought about that too, but wasn't sure if we wanted to go from |
My only (tiny) concern is that we're basing a Foyer test off of a quirk in mBuild. I'm fine preferring MDTraj over ParmEd since it seems like it has the better MOL2 reader. I'll raise an issue there to see if we can clear things up. |
Regardless, the tests are passing so should be good to merge. Not sure why there is a drop in coverage though. |
The whole reason we use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests passing, LGTM
PR Summary:
Added Smarts Strings for Chlorobenzene and Benzonitrile, they atom typed correctly. Tested Density and Self Diffusivity got decent results when comparing to literature values.
PR Checklist