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
FastFold
Commits
05681304
Unverified
Commit
05681304
authored
Apr 18, 2023
by
zhuww
Committed by
GitHub
Apr 18, 2023
Browse files
save prediction output pickle file of monomer (#156)
Co-authored-by:
zhuww
<
zhuww@sugon.com
>
parent
867587b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
inference.py
inference.py
+8
-0
No files found.
inference.py
View file @
05681304
...
...
@@ -478,6 +478,14 @@ def inference_monomer_model(args):
f
'
{
tag
}
_
{
args
.
model_name
}
_relaxed.pdb'
)
with
open
(
relaxed_output_path
,
'w'
)
as
f
:
f
.
write
(
relaxed_pdb_str
)
if
(
args
.
save_prediction_result
):
# Save the prediction result .pkl
prediction_result_path
=
os
.
path
.
join
(
args
.
output_dir
,
f
'
{
tag
}
_
{
args
.
model_name
}
.pkl'
)
with
open
(
prediction_result_path
,
"wb"
)
as
fp
:
pickle
.
dump
(
out
,
fp
)
if
__name__
==
"__main__"
:
...
...
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