Commit 7e06ed98 authored by Jennifer Wei's avatar Jennifer Wei
Browse files

support openmm>8 and fix tolerance units in amber minimization

parent 9caf30ae
...@@ -8,7 +8,7 @@ dependencies: ...@@ -8,7 +8,7 @@ dependencies:
- python=3.10 - python=3.10
- setuptools=59.5.0 - setuptools=59.5.0
- pip - pip
- openmm=7.7 - openmm
- pdbfixer - pdbfixer
- pytorch-lightning - pytorch-lightning
- biopython - biopython
......
...@@ -660,7 +660,7 @@ config = mlc.ConfigDict( ...@@ -660,7 +660,7 @@ config = mlc.ConfigDict(
}, },
"relax": { "relax": {
"max_iterations": 0, # no max "max_iterations": 0, # no max
"tolerance": 2.39, "tolerance": 10.0,
"stiffness": 10.0, "stiffness": 10.0,
"max_outer_iterations": 20, "max_outer_iterations": 20,
"exclude_residues": [], "exclude_residues": [],
......
...@@ -34,6 +34,7 @@ from openmm import app as openmm_app ...@@ -34,6 +34,7 @@ from openmm import app as openmm_app
from openmm.app.internal.pdbstructure import PdbStructure from openmm.app.internal.pdbstructure import PdbStructure
ENERGY = unit.kilocalories_per_mole ENERGY = unit.kilocalories_per_mole
FORCE = unit.kilojoules_per_mole / unit.nanometer
LENGTH = unit.angstroms LENGTH = unit.angstroms
...@@ -439,7 +440,7 @@ def _run_one_iteration( ...@@ -439,7 +440,7 @@ def _run_one_iteration(
exclude_residues = exclude_residues or [] exclude_residues = exclude_residues or []
# Assign physical dimensions. # Assign physical dimensions.
tolerance = tolerance * ENERGY tolerance = tolerance * FORCE
stiffness = stiffness * ENERGY / (LENGTH ** 2) stiffness = stiffness * ENERGY / (LENGTH ** 2)
start = time.perf_counter() start = time.perf_counter()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment