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
99c080f8
Unverified
Commit
99c080f8
authored
Jul 19, 2022
by
Gustaf Ahdritz
Committed by
GitHub
Jul 19, 2022
Browse files
Merge pull request #163 from bayer-science-for-a-better-life/modernize-mmseqs
Support openmm >= 7.6
parents
939a82c7
67a39939
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
8 deletions
+28
-8
openfold/np/relax/amber_minimize.py
openfold/np/relax/amber_minimize.py
+12
-4
openfold/np/relax/cleanup.py
openfold/np/relax/cleanup.py
+8
-2
openfold/np/relax/utils.py
openfold/np/relax/utils.py
+8
-2
No files found.
openfold/np/relax/amber_minimize.py
View file @
99c080f8
...
@@ -28,10 +28,18 @@ import openfold.utils.loss as loss
...
@@ -28,10 +28,18 @@ import openfold.utils.loss as loss
from
openfold.np.relax
import
cleanup
,
utils
from
openfold.np.relax
import
cleanup
,
utils
import
ml_collections
import
ml_collections
import
numpy
as
np
import
numpy
as
np
from
simtk
import
openmm
try
:
from
simtk
import
unit
# openmm >= 7.6
from
simtk.openmm
import
app
as
openmm_app
import
openmm
from
simtk.openmm.app.internal.pdbstructure
import
PdbStructure
from
openmm
import
unit
from
openmm
import
app
as
openmm_app
from
openmm.app.internal.pdbstructure
import
PdbStructure
except
ImportError
:
# openmm < 7.6 (requires DeepMind patch)
from
simtk
import
openmm
from
simtk
import
unit
from
simtk.openmm
import
app
as
openmm_app
from
simtk.openmm.app.internal.pdbstructure
import
PdbStructure
ENERGY
=
unit
.
kilocalories_per_mole
ENERGY
=
unit
.
kilocalories_per_mole
LENGTH
=
unit
.
angstroms
LENGTH
=
unit
.
angstroms
...
...
openfold/np/relax/cleanup.py
View file @
99c080f8
...
@@ -20,8 +20,14 @@ cases like removing chains of length one (see clean_structure).
...
@@ -20,8 +20,14 @@ cases like removing chains of length one (see clean_structure).
import
io
import
io
import
pdbfixer
import
pdbfixer
from
simtk.openmm
import
app
try
:
from
simtk.openmm.app
import
element
# openmm >= 7.6
from
openmm
import
app
from
openmm.app
import
element
except
ImportError
:
# openmm < 7.6 (requires DeepMind patch)
from
simtk.openmm
import
app
from
simtk.openmm.app
import
element
def
fix_pdb
(
pdbfile
,
alterations_info
):
def
fix_pdb
(
pdbfile
,
alterations_info
):
...
...
openfold/np/relax/utils.py
View file @
99c080f8
...
@@ -18,8 +18,14 @@ import io
...
@@ -18,8 +18,14 @@ import io
from
openfold.np
import
residue_constants
from
openfold.np
import
residue_constants
from
Bio
import
PDB
from
Bio
import
PDB
import
numpy
as
np
import
numpy
as
np
from
simtk.openmm
import
app
as
openmm_app
try
:
from
simtk.openmm.app.internal.pdbstructure
import
PdbStructure
# openmm >= 7.6
from
openmm
import
app
as
openmm_app
from
openmm.app.internal.pdbstructure
import
PdbStructure
except
ImportError
:
# openmm < 7.6 (requires DeepMind patch)
from
simtk.openmm
import
app
as
openmm_app
from
simtk.openmm.app.internal.pdbstructure
import
PdbStructure
def
overwrite_pdb_coordinates
(
pdb_str
:
str
,
pos
)
->
str
:
def
overwrite_pdb_coordinates
(
pdb_str
:
str
,
pos
)
->
str
:
...
...
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