Skip to content
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

"No template found" error with straight forward simulation of phosphorylated residues #354

Open
JoStoe opened this issue Dec 17, 2024 · 0 comments

Comments

@JoStoe
Copy link

JoStoe commented Dec 17, 2024

Dear scientific colleges,

I try to simulate a protein containing phosphorylation with OpenMM 8.1.1. To my understanding, this capability was added with #151
Let's have a look at this example:

from openmm.app import *
from openmm import *
from openmm.unit import *
from sys import stdout


forcefield = ForceField('./ff14SB.xml', './phosaa14SB.xml')
pdb = PDBFile('phospho14/5dfp_TPO.pdb')

# alternative force field:
#forcefield = ForceField('./ff10.xml')
#pdb = PDBFile('phospho10/5dfp_TPO.pdb')

system = forcefield.createSystem(pdb.topology, nonbondedMethod=PME, nonbondedCutoff=1*nanometer, constraints=HBonds)
integrator = LangevinIntegrator(300*kelvin, 1/picosecond, 0.002*picoseconds)
simulation = Simulation(pdb.topology, system, integrator)
simulation.context.setPositions(pdb.positions)
simulation.minimizeEnergy()

The pdbs are obtained from this repository (openmmforcefields-main/amber/files/phospho14 and phospho10).

Running this example yields for both force field choices the following error:
ValueError: No template found for residue 174 (SER). The set of atoms matches SER, but the bonds are different.

174 is the residue before the phosphorylation (residue 175). I'm pretty sure the error is triggered by residue 175 and not 174 as mentioned in the error message.

These might be related: #99 #203

Is there any way (at the moment) to simulate a protein containing phosphorylation? I feel like I'm missing out something obvious...

Thank you for providing OpenMM to the scientific community!

Best regards,
Johannes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant