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
58d65692
"examples/git@developer.sourcefind.cn:OpenDAS/dynamo.git" did not exist on "2791b9ea3f6c06b4a79b2f5b9fe1b31c99378da4"
Commit
58d65692
authored
Dec 05, 2023
by
Christina Floristean
Browse files
Exclude uniprot hits from regular msa feature processing
parent
96f46b08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
openfold/data/data_pipeline.py
openfold/data/data_pipeline.py
+3
-2
No files found.
openfold/data/data_pipeline.py
View file @
58d65692
...
@@ -725,7 +725,8 @@ class DataPipeline:
...
@@ -725,7 +725,8 @@ class DataPipeline:
)
)
# The "hmm_output" exception is a crude way to exclude
# The "hmm_output" exception is a crude way to exclude
# multimer template hits.
# multimer template hits.
elif
(
ext
==
".sto"
and
not
"hmm_output"
==
filename
):
# Multimer "uniprot_hits" processed separately.
elif
(
ext
==
".sto"
and
filename
not
in
[
"uniprot_hits"
,
"hmm_output"
]):
msa
=
parsers
.
parse_stockholm
(
read_msa
(
start
,
size
))
msa
=
parsers
.
parse_stockholm
(
read_msa
(
start
,
size
))
else
:
else
:
continue
continue
...
@@ -741,7 +742,7 @@ class DataPipeline:
...
@@ -741,7 +742,7 @@ class DataPipeline:
if
(
ext
==
".a3m"
):
if
(
ext
==
".a3m"
):
with
open
(
path
,
"r"
)
as
fp
:
with
open
(
path
,
"r"
)
as
fp
:
msa
=
parsers
.
parse_a3m
(
fp
.
read
())
msa
=
parsers
.
parse_a3m
(
fp
.
read
())
elif
(
ext
==
".sto"
and
not
"hmm_output"
==
filename
):
elif
(
ext
==
".sto"
and
filename
not
in
[
"uniprot_hits"
,
"hmm_output"
]
):
with
open
(
path
,
"r"
)
as
fp
:
with
open
(
path
,
"r"
)
as
fp
:
msa
=
parsers
.
parse_stockholm
(
msa
=
parsers
.
parse_stockholm
(
fp
.
read
()
fp
.
read
()
...
...
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