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
ValueError: No template found for residue 37 (TYR). The set of atoms is similar to TTHY, but it is missing 2 atoms. #3108
Comments
Take a look at https://github.com/openmm/openmm/wiki/Frequently-Asked-Questions#template and see if it answers your question. |
Does it mean that I can't use the amidated terminal amino acid in openmm with CHARMM36? |
I'm not sure exactly what terminal forms CHARMM36 supports. If you're trying to use a form it doesn't support then no, it isn't possible. |
It's possible CHARMM-GUI has just set up the PDB file incorrectly. CHARMM works differently from most other force fields. In most force fields, the NME group at the end is considered a separate residue. That's also how the original PDB file describes it: it's residue 38. But CHARMM instead treats it as a modification to residue 37, which means the extra atoms need to be marked as being part of residue 37. Otherwise, it won't match the template. |
@nataliaszulc Could you attach a ZIP file containing the problematic protein PDB? We can take a look at what is causing this error specifically. |
Of course, the sturcture below: |
Thanks for sending this along! Residue 37 seems to be a standard TYR with carboxylate C-terminus: When I attempt to create a >>> from simtk.openmm import app
>>> ff = app.ForceField('charmm36.xml')
>>> pdbfile = app.PDBFile('step5_input.pdb')
>>> system = ff.createSystem(pdbfile.topology)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/choderaj/miniconda/envs/perses-fah-0.9.0/lib/python3.7/site-packages/simtk/openmm/app/forcefield.py", line 1174, in createSystem
raise ValueError('No template found for residue %d (%s). %s' % (res.index+1, res.name, _findMatchErrors(self, res)))
ValueError: No template found for residue 38 (POPC). The set of atoms matches POPC, but the bonds are different. Perhaps the chain is missing a terminal group? Were you using a different scheme to load the structure and apply parameters? |
Yes, sorry, I sent the wrong setup without amidation on the C-terminus, below the correct one: |
I have the same problem without any lipid membrane. The file is a NMR PDB formated by CHARMM PDB reader (through CHARMM-GUI) with CT2 cap included. I add the file here: The error is fallowing:
This is the part of PDB that makes problems:
I think the problem the problem is the same as reffered here #2103 (comment) by @peastman |
Hi everyone, I am new to openmm. When I use it to run molecular simulations, there is problem with the last residue in the peptide, which is amidated, the 37 TYR (see: https://www.rcsb.org/structure/2L86):
File "/home/ebam/niedziel1p/Desktop/insert_openmm/openmm_run.py", line 41, in
hydrogenMass=4*amu, patches=patches)
File "/home/ebam/niedziel1p/miniconda3/envs/openmm/lib/python3.6/site-packages/simtk/openmm/app/forcefield.py", line 1179, in createSystem
templateForResidue = self._matchAllResiduesToTemplates(data, topology, residueTemplates, ignoreExternalBonds)
File "/home/ebam/niedziel1p/miniconda3/envs/openmm/lib/python3.6/site-packages/simtk/openmm/app/forcefield.py", line 1393, in _matchAllResiduesToTemplates
raise ValueError('No template found for residue %d (%s). %s' % (res.index+1, res.name, _findMatchErrors(self, res)))
ValueError: No template found for residue 37 (TYR). The set of atoms is similar to TTHY, but it is missing 2 atoms.
I would be grateful for help.
The text was updated successfully, but these errors were encountered: