Skip to content

Generated system is sometime unstable, potential issue with the estimation of protein and cosolvent radii? #42

@Cucco23

Description

@Cucco23

Hi,

I tried to run the simulation with the aa.json cosolvents.
My impression is that in certain cases, if there are too many molecules, there is a problem in defining their position or allocating the space.
The system is generated but the simulation does not run and crashes already during minimization.
This is the error I got.

Traceback (most recent call last):
File "/home/ema/miniforge3/envs/cosolvkit/bin/create_cosolvent_system", line 33, in
sys.exit(load_entry_point('cosolvkit', 'console_scripts', 'create_cosolvent_system')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/media/ema/Memory_1/cosolvkit-master/cosolvkit/cli/create_cosolvent_system.py", line 168, in main
run_simulation(
File "/media/ema/Memory_1/cosolvkit-master/cosolvkit/simulation.py", line 131, in run_simulation
simulation.step(int(warming_steps / nT))
File "/home/ema/miniforge3/envs/cosolvkit/lib/python3.11/site-packages/openmm/app/simulation.py", line 147, in step
self._simulate(endStep=self.currentStep+steps)
File "/home/ema/miniforge3/envs/cosolvkit/lib/python3.11/site-packages/openmm/app/simulation.py", line 212, in _simulate
self.integrator.step(10) # Only take 10 steps at a time, to give Python more chances to respond to a control-c.
^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ema/miniforge3/envs/cosolvkit/lib/python3.11/site-packages/openmm/openmm.py", line 15287, in step
return _openmm.LangevinMiddleIntegrator_step(self, steps)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
openmm.OpenMMException: Particle coordinate is NaN. For more information, see https://github.com/openmm/openmm/wiki/Frequently-Asked-Questions#nan

Now the interesting part is that I followed this idea that may be is a problem of organization of the system
In cosolvent_system.py:
self.protein_radius = 3.5 * openmmunit.angstrom
self.cosolvents_radius = 2.5 * openmmunit.angstrom
I changed the parameter 3.5 to 4 and 2.5 to 3.
These parameters seems to control the radius of the protein and of the cosolvents. How these two numbers where chosen since proteins and cosolvents change?
How the simulation will be affected? With this modification the simulation is now running...

Thanks for the help

Ema

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions