Hello all,
I am trying to run MetaD simulations with OpenMM-PLUMED with one CV (COM distance between two residues) but despite so many efforts I keep getting one of the following errors:
Looking for a value outside the grid along the 0 dimension. When I check the output file I see at some point CV gets larger than the uwall limit and when I plot PES vs time, I see sudden spike around the time CV goes out of range.
So, as one the suggested solutions I increased the GRID_MAX limit (or increased Kappa) but then I get another error openmm.OpenMMException: Particle coordinate is NaN. For more information, see https://github.com/openmm/openmm/wiki/Frequently-Asked-Questions#nan\n”
I tried different parameters and no difference. The simulation runs for a very short time (2-3 ps) before it crashes. I should mention without grid/uwall simulation runs fine but explores irrelevant parts of the phase-space.
Here is the PLUMED input file
script = """
UNITS LENGTH=A ENERGY=kcal/mol
WHOLEMOLECULES ENTITY0=2168-2179, ENTITY1=2218-2241
DUMPATOMS FILE=dump.xyz ATOMS=2168-2179,2218-2241
d1: COM ATOMS=2168-2179 # (incl. H)
d2: COM ATOMS=2218-2241 # (incl. H)
d: DISTANCE ATOMS=d1,d2 NOPBC
#d1: DISTANCE ATOMS=2170,2220 NOPBC
UPPER_WALLS ARG=d AT=8.5 KAPPA=12.0 EXP=2 EPS=1 OFFSET=0 LABEL=uwall
FLUSH STRIDE=1
# Activate metadynamics in d1
METAD ...
LABEL=metad
ARG=d
PACE=500
HEIGHT=0.24
SIGMA=0.4
FILE=HILLS
BIASFACTOR=10.0
TEMP=300.0
GRID_MIN=3.0
GRID_MAX=15.0
#Grid_BIN=1000
GRID_WSTRIDE=100
GRID_WFILE=grid.dat
... METAD
#UPPER_WALLS ARG=d AT=8.5 KAPPA=12.0 EXP=2 EPS=1 OFFSET=0 LABEL=uwall
PRINT STRIDE=1 ARG=d,metad.bias FILE=COLVAR
PRINT STRIDE=1 ARG=d,uwall.bias FILE=walls.dat
DUMPFORCES STRIDE=1 ARG=d FILE=force.dat"""
I restart an OpenMM unbiased simulation and then add PLUMED as a new force to the system. Initially, I have the following forces in my system:
Force 0 : HarmonicBondForce Force 1 : NonbondedForce Force 2 : PeriodicTorsionForce Force 3 : CMMotionRemover Force 4 : HarmonicAngleForce Force 5 : CustomExternalForce Force 6 : MonteCarloBarostat
But before creating the “simulation context” I remove the CustomExternalForce (positional restraint on Heavy atoms) & I do have Constraints (heavyatom-H) in my system but since my CV is the distance between the COMs, I believe having constraint would be okay.
Any suggestions/comments would be greatly appreciated.
Thanks!
Summer
--
You received this message because you are subscribed to the Google Groups "PLUMED users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plumed-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/c456f3d2-ed10-41f7-abf8-11143956d6a7n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/CAPLm8ZJUdEKKaMj_fgb9wwk%2BDSXyM41dVz5zEN6S5%3D-1Xj88PA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/72b23a29-b039-4358-9358-15368dc91772n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/CAPLm8ZJN4YVcUF-hh1m_V5zD_ux3uyo-WRp8ndfQg4%3DcsOiXxA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/ebbf655e-3628-49cc-b3aa-65c01d7e7808n%40googlegroups.com.
Hi Istvan,
Thank you so much for taking the time to explain!
§ For my conventional MD simulations with OpenMM, I was using VMD to wrap and center the trajectories, but it did not work for MetaD simulations. I installed cpptraj and followed the steps you suggested but it did not work either. I monitored the CV in my simulation (CV.png attached) and it’s clear that it diffuses in phase-space (increases and decreases). I expect to see the same behavior when I visually inspect the simulation, if correctly wrapped and re-imaged, but the distance (CV) keeps getting bigger and bigger. I attached snapshots of protein at the beginning and end of my short simulation.
The simulations are run with NPT. I monitored volume of the box with time, and I see noticeable fluctuations, even if the system has been minimized/equilibrated. Are these fluctuations expected with MetaD? I run MetaD simulations for my system and also the basic-exmaple shared in openmm-plumed Github: https://github.com/sukritsingh/openmm-plumed/tree/add-example/examples/basic-example This is supposed to be a working example for simple MetaD but I see the same behavior for this example as well. Two plots are attached (example_volume.png and my simulation_volume.png)
I attached the python script (MetaD.py) to run the simulations. I REALLY appreciate if you can take a quick look to see if sth catches your eye or anything important is missing.
Thank you again!
Summer
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/bfab5375-8716-4d28-ab9e-2c7a7043a9e6n%40googlegroups.com.
On Feb 7, 2024, at 2:20 AM, Giovanni Bussi <giovann...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/CAPLm8ZKeJr7pkJZRFt4zMVXzmzYFv0ny2N8EmAUbwKhUkrVMfA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/77FAF86E-D7C5-44D8-AABF-541076A7A4CB%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "PLUMED users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plumed-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/d358abcb-0227-4587-b94f-b06d952ba013n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "PLUMED users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plumed-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/plumed-users/29ecac36-c94e-4646-bde8-23b5e40e5adcn%40googlegroups.com.