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
a475ad11
Unverified
Commit
a475ad11
authored
Dec 18, 2023
by
Christina Floristean
Committed by
GitHub
Dec 18, 2023
Browse files
Merge pull request #385 from dingquanyu/update-data-pipeline
Update data pipeline
parents
9d6127cb
989f2d93
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
openfold/data/data_pipeline.py
openfold/data/data_pipeline.py
+5
-5
No files found.
openfold/data/data_pipeline.py
View file @
a475ad11
...
...
@@ -30,8 +30,6 @@ from openfold.data.templates import get_custom_template_features, empty_template
from
openfold.data.tools
import
jackhmmer
,
hhblits
,
hhsearch
,
hmmsearch
from
openfold.data.tools.utils
import
to_date
from
openfold.np
import
residue_constants
,
protein
import
concurrent
from
concurrent.futures
import
ThreadPoolExecutor
FeatureDict
=
MutableMapping
[
str
,
np
.
ndarray
]
TemplateSearcher
=
Union
[
hhsearch
.
HHSearch
,
hmmsearch
.
Hmmsearch
]
...
...
@@ -739,8 +737,10 @@ class DataPipeline:
# Now will split the following steps into multiple processes
current_directory
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
cmd
=
f
"
{
current_directory
}
/tools/parse_msa_files.py"
msa_data
=
subprocess
.
run
([
'python'
,
cmd
,
f
"--alignment_dir=
{
alignment_dir
}
"
],
capture_output
=
True
,
text
=
True
)
msa_data
=
pickle
.
load
((
open
(
msa_data
.
stdout
.
lstrip
().
rstrip
(),
'rb'
)))
msa_data_path
=
subprocess
.
run
([
'python'
,
cmd
,
f
"--alignment_dir=
{
alignment_dir
}
"
],
capture_output
=
True
,
text
=
True
)
msa_data_path
=
msa_data_path
.
stdout
.
lstrip
().
rstrip
()
msa_data
=
pickle
.
load
((
open
(
msa_data_path
,
'rb'
)))
os
.
remove
(
msa_data_path
)
return
msa_data
...
...
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