Saving Topology after OpenMM simulation
Posted: Tue Jan 02, 2024 9:51 am
Hi everyone,
I love OpenMM but I am struggeling with one issue. I hope to get some input here:
I am using MDAnalysis to analyze my trajectories. I have noticed that if I prepare everything with amber and run OpenMM from the prmtop and crd file, I am able to center my protein in the center of the water box using MDAnalysis. However if I start from a pdb file and do the following steps in OpenMM, the MDAnalysis protein centering fails in the sense of that MDAnalysis is not able to perform the alignment correctly.
1. Create a amber14-all forcefield
2. Define a integrator (LangevinMiddleIntegrator
3. Import pdb and create model
4. Apply forcefield to model
5. Add Hydrogens and addSolvent
6. Create OpenMM System
7. Define Simulation, minimize, equilibrate, simulate. Save trajectory
8. Save a "topology" as mmcif and the trajectory as dcd
9. Import the mmcif and dcd in MDAnalysis
10. Perform protein centering.
Before I paste the code. Has anyone already a suggestion what might be the issue? Or how to address the problem.
What I want?
- Use OpenMM from a pdb file
- Add solvent in OpenMM
- Get an adequate topology and trajectory file to use in MDAnalysis
I love OpenMM but I am struggeling with one issue. I hope to get some input here:
I am using MDAnalysis to analyze my trajectories. I have noticed that if I prepare everything with amber and run OpenMM from the prmtop and crd file, I am able to center my protein in the center of the water box using MDAnalysis. However if I start from a pdb file and do the following steps in OpenMM, the MDAnalysis protein centering fails in the sense of that MDAnalysis is not able to perform the alignment correctly.
1. Create a amber14-all forcefield
2. Define a integrator (LangevinMiddleIntegrator
3. Import pdb and create model
4. Apply forcefield to model
5. Add Hydrogens and addSolvent
6. Create OpenMM System
7. Define Simulation, minimize, equilibrate, simulate. Save trajectory
8. Save a "topology" as mmcif and the trajectory as dcd
9. Import the mmcif and dcd in MDAnalysis
10. Perform protein centering.
Before I paste the code. Has anyone already a suggestion what might be the issue? Or how to address the problem.
What I want?
- Use OpenMM from a pdb file
- Add solvent in OpenMM
- Get an adequate topology and trajectory file to use in MDAnalysis