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
8847fb69
Commit
8847fb69
authored
Mar 06, 2023
by
josemduarte
Browse files
Now modelcif for relaxed should work
parent
8a76cc15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
openfold/np/relax/relax.py
openfold/np/relax/relax.py
+7
-3
No files found.
openfold/np/relax/relax.py
View file @
8847fb69
...
@@ -78,8 +78,6 @@ class AmberRelaxation(object):
...
@@ -78,8 +78,6 @@ class AmberRelaxation(object):
"attempts"
:
out
[
"min_attempts"
],
"attempts"
:
out
[
"min_attempts"
],
"rmsd"
:
rmsd
,
"rmsd"
:
rmsd
,
}
}
# TODO write all this as ModelCIF if param is true. Should be simply proteint.to_modelcif(prot)
# and then add the other pieces, except that clean_protein() does quite some additional stuff...
pdb_str
=
amber_minimize
.
clean_protein
(
prot
)
pdb_str
=
amber_minimize
.
clean_protein
(
prot
)
min_pdb
=
utils
.
overwrite_pdb_coordinates
(
pdb_str
,
min_pos
)
min_pdb
=
utils
.
overwrite_pdb_coordinates
(
pdb_str
,
min_pos
)
min_pdb
=
utils
.
overwrite_b_factors
(
min_pdb
,
prot
.
b_factors
)
min_pdb
=
utils
.
overwrite_b_factors
(
min_pdb
,
prot
.
b_factors
)
...
@@ -91,5 +89,11 @@ class AmberRelaxation(object):
...
@@ -91,5 +89,11 @@ class AmberRelaxation(object):
]
]
min_pdb
=
protein
.
add_pdb_headers
(
prot
,
min_pdb
)
min_pdb
=
protein
.
add_pdb_headers
(
prot
,
min_pdb
)
output_str
=
min_pdb
if
cif_output
:
# TODO the model cif will be missing some metadata like headers (PARENTs and
# REMARK with some details of the run, like num of recycles)
final_prot
=
protein
.
from_pdb_string
(
min_pdb
)
output_str
=
protein
.
to_modelcif
(
final_prot
)
return
min_pdb
,
debug_data
,
violations
return
output_str
,
debug_data
,
violations
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