The order of the atoms in the Improper Dihedral definition of OpenMM xml files may be incorrect. AFAIK OpenMM force field xml input expects the central atom at position 1. Attached is a case that causes the problem.
Running
ligpargen -p test -i mol_0.mol -cgen CM1A -c 0
gets the following improper dihedral definition in the OpenMM xml file:
The order of the atoms in the Improper Dihedral definition of OpenMM xml files may be incorrect. AFAIK OpenMM force field xml input expects the central atom at position 1. Attached is a case that causes the problem.
Running
gets the following improper dihedral definition in the OpenMM xml file:
However, the atom order should be
When parsing the force field to openmm, the four Improper dihedrals in the molecule cannot be found. It should have 35 Torsions in total. Check out:
I think there is an easy fix, but I am not sure if it is going to break anything.
Attached file: mol_0.pdb mol_0.pdb.txt