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
88450a67
Commit
88450a67
authored
Jul 16, 2022
by
Santi Villalba
Browse files
fix tag-sequence missmatch when predicting for multiple fastas
parent
04fd6d34
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
run_pretrained_openfold.py
run_pretrained_openfold.py
+2
-2
No files found.
run_pretrained_openfold.py
View file @
88450a67
...
...
@@ -379,7 +379,7 @@ def main(args):
# assert len(tags) == len(set(tags)), "All FASTA tags must be unique"
tag
=
'-'
.
join
(
tags
)
tag_list
.
append
(
tag
)
tag_list
.
append
(
(
tag
,
tags
)
)
seq_list
.
append
(
seqs
)
seq_sort_fn
=
lambda
target
:
sum
([
len
(
s
)
for
s
in
target
[
1
]])
...
...
@@ -387,7 +387,7 @@ def main(args):
feature_dicts
=
{}
for
model
,
output_directory
in
load_models_from_command_line
(
args
,
config
):
cur_tracing_interval
=
0
for
tag
,
seqs
in
sorted_targets
:
for
(
tag
,
tags
),
seqs
in
sorted_targets
:
output_name
=
f
'
{
tag
}
_
{
args
.
config_preset
}
'
if
args
.
output_postfix
is
not
None
:
output_name
=
f
'
{
output_name
}
_
{
args
.
output_postfix
}
'
...
...
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