Skip to content
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

Update smirnoff99Frosst to remove generics in DrugBank #232

Merged
merged 18 commits into from
Apr 5, 2017
Merged

Conversation

bannanc
Copy link
Collaborator

@bannanc bannanc commented Mar 16, 2017

This pull request will include parameters needed to match most of the chemistry in the larger set DrugBank. It still is no metals and molecules with <= 200 heavy atoms.

In this message I will list all of the changes I've made with links to issues where they have been discussed.

Parm99 or Parm@Frosst

Bonds

Angles

  • added slightly more generic #7X2 angle for linear case (R-C#N+1-R)
  • made the X-N-O angles in nitro groups generic enough for X to be carbon, oxygen, or nitrogen (smirnoff99Frosst issue#36)
  • Updated most generic divalent sulfur to accomodate aromatic cases (smirnoff99Frosst issue#34)
    • waiting approval

Torsions

  • Updated aromatic nitrogen torsion to cover all generic -N:C- cases (smirnoff99Frosst issue#39)
    • waiting for approval
  • Remove neutral requirement in the bonds to hypervalent sulfur ( [#16X3+0,#16X4]) (smirnoff99Frosst issue#40 )
    • The relevant atom type in parm@Frosst is SO which is for all #16X3, but in smirnoff there are some higher priority cases with #16X3+1 we wanted to remove the neutral requirement without overwriting those.
    • waiting approval
  • Added torsion for nitro group-tetrahedral carbon based on parm@Frosst and GAFF2 (smirnoff99Frosst issue#42)
    • waiting approval

Estimates from GAFF2

Bonds

Angles

Torsions

@bannanc bannanc changed the title Update smirff99Frosst to remove generics in DrugBank [WIP] Update smirff99Frosst to remove generics in DrugBank Mar 16, 2017
@davidlmobley
Copy link
Contributor

@bannanc - I'm going to suggest edits to your summary above since this is our record for posterity. Here are a couple of things which are unclear to me:

Our original plan was to remove the +0, however, there were bonds specified above for the case of #16+1 to carbon so to avoid overwriting those, the carbon bond was changed to [#16X4,#16X3!+1]

What's "specified above" mean? I'm guessing you mean "above this in the force field file"? Also, the reference of "the carbon bond" could be more clear -- THIS carbon bond? Or the one above? (Again, presumably you mean the former, but it's easier if it's just clear when you write it the first time so one doesn't have to stop and think about it.)

@bannanc bannanc changed the title [WIP] Update smirff99Frosst to remove generics in DrugBank [WIP] Update smirffno99Frosst to remove generics in DrugBank Apr 5, 2017
I fixed some of the comments
@bannanc
Copy link
Collaborator Author

bannanc commented Apr 5, 2017

@davidlmobley
Assuming you approve the newest round of changes. This now types all the filtered drugbank molecules, that have tripos mol2 files.

Note - there are a few corner cases we don't quite catch in the full DrugBank set.

My next plan is to close all the issues this pull request addresses and then open a single (LONG) issue with chemistry that we think needs to be explored further. That will include anything we got from GAFF2, things we don't cover now (i.e. boron/silicon), and anything where we made things fairly generic to cover our bases. This will serve as a source of molecules/functional groups for the undergrad in our group during the summer.

@bannanc
Copy link
Collaborator Author

bannanc commented Apr 5, 2017

@davidlmobley
Copy link
Contributor

@bannanc :

My next plan is to close all the issues this pull request addresses and then open a single (LONG) issue with chemistry that we think needs to be explored further. That will include anything we got from GAFF2, things we don't cover now (i.e. boron/silicon), and anything where we made things fairly generic to cover our bases. This will serve as a source of molecules/functional groups for the undergrad in our group during the summer.

This plan sounds excellent.

Reviewing FF changes in a cursory way (since I already reviewed all the individual issues in detail) now.

@davidlmobley
Copy link
Contributor

And, once merged, you will also migrate these changes to github.com/open-forcefield-group/openforcefield and github.com/open-forcefield-group/smirnoff99frosst, @bannanc ? (We're working towards removing smirnoff from smarty).

# Updated: Many times during Fall 2016 - Winter 2017, most recently Fri. March 3, 2017
# Date: only last line in this section is used, all others in list will be ignored.
DATE
# Updated: Many times during Fall 2016 - Winter 2017, small change with eithers Fri. March 3, 2017
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"ethers" not "eithers". :)

Copy link
Contributor

@davidlmobley davidlmobley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @bannanc !

@bannanc bannanc changed the title [WIP] Update smirffno99Frosst to remove generics in DrugBank Update smirffno99Frosst to remove generics in DrugBank Apr 5, 2017
@bannanc
Copy link
Collaborator Author

bannanc commented Apr 5, 2017

@davidlmobley if you're ok with what I did with the aromatic nitrogen torsion then I think this is good to know with the knowledge that we'll probably have another one in the not too distant future.

@davidlmobley
Copy link
Contributor

@bannanc - tests are failing because the tests load smirff99Frosst.ffxml but you renamed to smirnoff99Frosst.ffxml. Can you fix?

Failure: ValueError (Sorry! /home/travis/miniconda/envs/test/lib/python2.7/site-packages/smarty/data/forcefield/smirff99Frosst.ffxml does not exist. If you just added it, you'll have to re-install) ... ERROR

@davidlmobley
Copy link
Contributor

(It's OK with me if you go ahead and merge once tests pass, @bannanc !)

bannanc added 3 commits April 5, 2017 12:53
I didn't change anything in the XML format because I didn't want to break it, but presumably we'll need to update that too
@davidlmobley davidlmobley changed the title Update smirffno99Frosst to remove generics in DrugBank Update smirnoff99Frosst to remove generics in DrugBank Apr 5, 2017
@davidlmobley
Copy link
Contributor

@bannanc - looks like py27 and py35 passed on your last commit, but py34 is failing. Checking.

@bannanc
Copy link
Collaborator Author

bannanc commented Apr 5, 2017

The most recent run failed on python3 and not python2, but the failure said it didn't get 100% on the AlkEthOH answers... I don't think we changed anything in the AlkEthOH parameters on this set. I'll see if the same problem repeats on this test

@davidlmobley
Copy link
Contributor

Well, that's really weird... Py34 test failed with something you haven't touched in here:

FAIL: Test score is 100% if correct VdW, Bond, Angles, or Torsions
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/miniconda/envs/test/lib/python3.4/site-packages/smarty/tests/test_smirky_sampler.py", line 53, in test_correct_fragments
    self.assertAlmostEqual(fracfound, 1.0, msg = "Not finding 100%% of AlkEthOH when starting from correct %s SMIRKS." % typetag)
AssertionError: 0.9962640099626401 != 1.0 within 7 places : Not finding 100% of AlkEthOH when starting from correct VdW SMIRKS.

I think the SMIRKY test may have accepted a very rare move which resulted in losing some coverage of the AlkEthOH set, perhaps, just in this one case? Looks like it should be good to merge when you are ready, @bannanc .

@bannanc
Copy link
Collaborator Author

bannanc commented Apr 5, 2017

I'm going to make the number of steps on the 100% test smaller to avoid that happening in the future.

Nevermind, it already has 2 steps and temperature = 0.0 it shouldn't ever accept moves that decrease the score... I don't know what caused the failed test assuming this one passes I'll merge it.

@bannanc bannanc merged commit 4541186 into master Apr 5, 2017
@bannanc bannanc deleted the updatesmirff branch January 24, 2018 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants