-
Notifications
You must be signed in to change notification settings - Fork 103
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
atomate2 / OpenMM OPLS-AA Enhancements #1111
Open
shehan807
wants to merge
14
commits into
materialsproject:main
Choose a base branch
from
shehan807:feature/OPLS-AA
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+317
−16
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…haps this is fine? and (2) usused eps14 variable (need to check that eps == eps14)
…tead; solution: comment out eps14 line to match original ligpargen code
… 14 interaction scale values (i.e., 0.5); changed create_system_from_xml to create_ff_from_xml to enable generate_openmm_interchange to have access to combination rules only available via the forcefield...still experiencing NoneType error when creating OpenMMInterchange object which prohibits inspection of OpenMMInterchange in generate_openmm_interchange
… to convert xml to string, leaving this commented for now before checking other cases
…to cutoff; incorporated diffusedxml to follow linter guidelines
… and solution was to .split() command into a list of strings
…rate_opls_xml(...) is complete
… generate OPLS .xml files
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR resolves the first two enhancements proposed in Issue #1102:
opls_lj()
I've changed
create_system_from_xml
tocreate_ff_from_xml
insrc/atomate2/openmm/jobs/generate.py
. Why? The OPLS geometric combination rules have two requirements, (1) aCustomNonbondedForce
in OpenMM that combines thesigma
andeps
parameters geometrically, and (2) thecoulomb14scale
andlj14scale
attributes of theForceField
are both0.5
. The latter was enough justification for raising an error if not the case--to do so, theForceField
object would need to be accessible ingenerate_openmm_interchange
(instead of adding unsuitable arguments tocreate_system_from_xml
). Originally,create_system_from_xml
created both theForceField
andSystem
within the same function; now,system
andff
are separate variables ingenerate_openmm_interchange
.generate_opls_xml()
via LigParGen and BOSS source code directly. To do so, users would need to follow the steps in the docs from this fork.Currently,
generate_opls_xml
is only functional so long as the user has a local installation of Docker and created a private (for now, pending approval for pushing to public registries) image of LigParGen. The documentation is provided to completion indocs/user/codes/openmm.md
.download_opls_xml
Function #1054 have been merged into this fork (i.e., extending thedownload_opls_xml
to handle charges, number of optimization iterations, and charge method).Additional dependencies introduced
CC'ing @utf, @orionarcher