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
790267e3
Commit
790267e3
authored
Feb 02, 2024
by
Jennifer
Browse files
Change parse_fasta to split on whitespace or '|' character
parent
0cf8b928
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
openfold/utils/script_utils.py
openfold/utils/script_utils.py
+1
-1
No files found.
openfold/utils/script_utils.py
View file @
790267e3
...
@@ -123,7 +123,7 @@ def parse_fasta(data):
...
@@ -123,7 +123,7 @@ def parse_fasta(data):
][
1
:]
][
1
:]
tags
,
seqs
=
lines
[::
2
],
lines
[
1
::
2
]
tags
,
seqs
=
lines
[::
2
],
lines
[
1
::
2
]
tags
=
[
t
.
split
()[
0
]
for
t
in
tags
]
tags
=
[
re
.
split
(
'\W| \|'
,
t
)[
0
]
for
t
in
tags
]
return
tags
,
seqs
return
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