You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
When parameterizing water model using Liquid targets, OpenMM engine gives error when loading liquid.pdb: ValueError: Residue 4 (HOH) does not match any template defined by the ForceField.
To reproduce error:
Decompress zip file, go into the folder openmm_residue_match_issue, run python npt.py openmm 273.15 1.00. Will call this folder "debug folder" below.
Initial investigation on source of error:
3 versions of liquid.pdb are compared.
First is provided in the targets/Liquid folder, same as /forcebalance/studies/005_iamoeba/targets/Liquid/liquid.pdb, renamed to orig_liquid.pdb in debug folder. Using this file as liquid.pdb will triggle residue matching error from Residue 1.
Second one is generated by the new ForceBalance molecule.py, renamed to backup.pdb in debug folder, this version of liquid.pdb uses HETATM entry and deleted CONECT for water, which I think is not the cause of error. Using this file as liquid.pdb will triggle residue matching error from Residue 1.
Third one is a mixed version for finding the cause of error, named liquid.pdb in the debug folder. Here the residue match error occurs at the 4th residue. Compare it to the 3rd residue, the only difference is the atomnames are changed, from O H1 H2 to O1 H2 H3, and despite the provided CONECT record, the residue matching error is still triggered.
An walk around of this error would be to avoid the atomnames O1 H2 H3 for water residue in PDB file. Further investigation is needed to fully understand this error. This error did not occur when I used previous version of OpenMM (7.0) but happens when using the current version OpenMM 7.2
@leeping Yes, I did that as a walk around for this error.
I feel that this error might be confusing to other people, so I created the issue for potential further investigation on this error.
Description:
When parameterizing water model using Liquid targets, OpenMM engine gives error when loading
liquid.pdb
:ValueError: Residue 4 (HOH) does not match any template defined by the ForceField.
To reproduce error:
Decompress zip file, go into the folder
openmm_residue_match_issue
, runpython npt.py openmm 273.15 1.00
. Will call this folder "debug folder" below.Initial investigation on source of error:
3 versions of
liquid.pdb
are compared./forcebalance/studies/005_iamoeba/targets/Liquid/liquid.pdb
, renamed toorig_liquid.pdb
in debug folder. Using this file asliquid.pdb
will triggle residue matching error from Residue 1.backup.pdb
in debug folder, this version ofliquid.pdb
usesHETATM
entry and deletedCONECT
for water, which I think is not the cause of error. Using this file asliquid.pdb
will triggle residue matching error from Residue 1.liquid.pdb
in the debug folder. Here the residue match error occurs at the 4th residue. Compare it to the 3rd residue, the only difference is the atomnames are changed, fromO H1 H2
toO1 H2 H3
, and despite the providedCONECT
record, the residue matching error is still triggered.An walk around of this error would be to avoid the atomnames
O1 H2 H3
for water residue in PDB file. Further investigation is needed to fully understand this error. This error did not occur when I used previous version of OpenMM (7.0) but happens when using the current version OpenMM 7.2openmm_residue_match_issue.zip
The text was updated successfully, but these errors were encountered: