-
Notifications
You must be signed in to change notification settings - Fork 81
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
Incomplete GROMACS top file when using openff with parmed or interchange for GAFF #295
Comments
This system was created with hydrogen-containing bonds constrained: forcefield_kwargs={
"constraints": HBonds,
...
}, so the bond force does not include information about the force constants of those bonds. There are only three bonds in that force, one for each heavy atom-heavy atom bond in the molecule: import openmm
bond_force = [force for force in system.getForces() if isinstance(force, openmm.HarmonicBondForce)][0]
assert bond_force.getNumBonds() < molecule.n_bonds # True; 3 < 11 OpenMM doesn't need force constants and lengths for constrained bonds and Amber has some way to work around it, I think. GROMACS needs those missing parameters, so converting through either ParmEd or Interchange is going to fail for the same reason. Interchange attempts to make this error descriptive; the bond between atoms 0 and 4 is a C-H bond for which it is not provided parameters. Dropping the |
@pablo-osmo does dropping |
Closing this issue since it is over a year old with no response given, and it doesn't appear to involve an outstanding problem. This issue can be reopened if needed. |
I am trying to use OpenFF and either parmed or Interchange to produce gromacs input files with GAFF 2 parameters for small molecules (example below is cis-2-butene), however something is wrong with the bond parameterization using
gaff-2.11
(I have also tried other version of gaff for the same problem). How would I get all the necessary bond parameters to run my simulations?The final GROMACS
.top
file does not have bond coefficients for all the bond types, which causes the simulations to not work. I have attached an example of this incomplete TOP file from using parmed. I see the correct number of bonds in the original topology object.I originally tried using Interchange, but the "Interchange.from_openmm" says it is experimental only and fails at "bond conversion" because it cannot find the correct bond information.
Please let me know if any additional information is needed to help. I have attached a Jupyter notebook with the Parmed and interchange examples that are causing the errors above.
openff_incorrect_gromacs_topfile.zip
The text was updated successfully, but these errors were encountered: