mirror of
https://github.com/aqlaboratory/openfold.git
synced 2026-06-04 12:44:26 +08:00
support openmm>8 and fix tolerance units in amber minimization
This commit is contained in:
@@ -8,7 +8,7 @@ dependencies:
|
||||
- python=3.10
|
||||
- setuptools=59.5.0
|
||||
- pip
|
||||
- openmm=7.7
|
||||
- openmm
|
||||
- pdbfixer
|
||||
- pytorch-lightning
|
||||
- biopython
|
||||
|
||||
@@ -660,7 +660,7 @@ config = mlc.ConfigDict(
|
||||
},
|
||||
"relax": {
|
||||
"max_iterations": 0, # no max
|
||||
"tolerance": 2.39,
|
||||
"tolerance": 10.0,
|
||||
"stiffness": 10.0,
|
||||
"max_outer_iterations": 20,
|
||||
"exclude_residues": [],
|
||||
|
||||
@@ -34,6 +34,7 @@ from openmm import app as openmm_app
|
||||
from openmm.app.internal.pdbstructure import PdbStructure
|
||||
|
||||
ENERGY = unit.kilocalories_per_mole
|
||||
FORCE = unit.kilojoules_per_mole / unit.nanometer
|
||||
LENGTH = unit.angstroms
|
||||
|
||||
|
||||
@@ -439,7 +440,7 @@ def _run_one_iteration(
|
||||
exclude_residues = exclude_residues or []
|
||||
|
||||
# Assign physical dimensions.
|
||||
tolerance = tolerance * ENERGY
|
||||
tolerance = tolerance * FORCE
|
||||
stiffness = stiffness * ENERGY / (LENGTH ** 2)
|
||||
|
||||
start = time.perf_counter()
|
||||
|
||||
Reference in New Issue
Block a user