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
c59a85b6
Commit
c59a85b6
authored
Mar 29, 2022
by
Gustaf Ahdritz
Browse files
Fix FASTA parsing bug in inference script
parent
f362ebff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
run_pretrained_openfold.py
run_pretrained_openfold.py
+1
-1
No files found.
run_pretrained_openfold.py
View file @
c59a85b6
...
...
@@ -80,7 +80,7 @@ def main(args):
with
open
(
args
.
fasta_path
,
"r"
)
as
fp
:
data
=
fp
.
read
()
lines
=
[
l
.
replace
(
'
\n
'
,
''
)
for
l
in
data
.
split
(
">"
)]
lines
=
[
l
for
l
in
prot
.
strip
().
split
(
'
\n
'
)
for
prot
in
data
.
split
(
">"
)]
tags
,
seqs
=
lines
[::
2
],
lines
[
1
::
2
]
for
tag
,
seq
in
zip
(
tags
,
seqs
):
...
...
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