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
094e338f
"launch/llmctl/vscode:/vscode.git/clone" did not exist on "d374e89f1a29bc5d4dcfbbf790f0568db83eef27"
Commit
094e338f
authored
Mar 29, 2022
by
Gustaf Ahdritz
Browse files
Fix FASTA parsing again (hopefully for good)
parent
c59a85b6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
run_pretrained_openfold.py
run_pretrained_openfold.py
+4
-1
No files found.
run_pretrained_openfold.py
View file @
094e338f
...
@@ -80,7 +80,10 @@ def main(args):
...
@@ -80,7 +80,10 @@ def main(args):
with
open
(
args
.
fasta_path
,
"r"
)
as
fp
:
with
open
(
args
.
fasta_path
,
"r"
)
as
fp
:
data
=
fp
.
read
()
data
=
fp
.
read
()
lines
=
[
l
for
l
in
prot
.
strip
().
split
(
'
\n
'
)
for
prot
in
data
.
split
(
">"
)]
lines
=
[
l
.
replace
(
'
\n
'
,
''
)
for
l
in
prot
.
strip
().
split
(
'
\n
'
,
1
)
for
prot
in
data
.
split
(
">"
)
]
tags
,
seqs
=
lines
[::
2
],
lines
[
1
::
2
]
tags
,
seqs
=
lines
[::
2
],
lines
[
1
::
2
]
for
tag
,
seq
in
zip
(
tags
,
seqs
):
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