Closed jchodera closed 4 years ago
Hm, I'm not sure why everything segfaults on travis.
@andrrizzi : Would you be able to quickly review the main part of this PR? This is the new forcefield generator in openmoltools/forcefield_generators.py
that uses OEMol
s.
@andrrizzi : Thanks for the feedback! I've fixed this in https://github.com/choderalab/perses/pull/536 and will backport my changes here.
This has been deprecated in favor of http://github.com/openmm/openmmforcefields
This PR adds a new, robust residue template generator plugin for the OpenMM
ForceField
class that uses OpenEyeOEMol
s to represent known small molecules that are matched to residues encountered in theTopology
lacking parameters.Here are some examples of its use:
Create a template generator for GAFF for a single OEMol and register it with ForceField:
Create a template generator for GAFF2 for multiple OEMols:
You can also some OEMols later on after the generator has been registered:
You can optionally create or use a tiny database cache of pre-parameterized molecules:
Newly parameterized molecules will be written to the cache, saving time next time!
I've also updated the
generateResidueTemplate()
method to use the newOEAM1BCCELF10Charges
scheme in the latest OpenEye release.