Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
7e06ed98
Commit
7e06ed98
authored
Apr 24, 2025
by
Jennifer Wei
Browse files
support openmm>8 and fix tolerance units in amber minimization
parent
9caf30ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
environment.yml
environment.yml
+1
-1
openfold/config.py
openfold/config.py
+1
-1
openfold/np/relax/amber_minimize.py
openfold/np/relax/amber_minimize.py
+2
-1
No files found.
environment.yml
View file @
7e06ed98
...
@@ -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
...
...
openfold/config.py
View file @
7e06ed98
...
@@ -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"
:
[],
...
...
openfold/np/relax/amber_minimize.py
View file @
7e06ed98
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment