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
ddd1d79f
Commit
ddd1d79f
authored
Jul 12, 2022
by
Gustaf Ahdritz
Browse files
Fix .a3m parsing bug
parent
3927776d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
openfold/data/parsers.py
openfold/data/parsers.py
+2
-0
No files found.
openfold/data/parsers.py
View file @
ddd1d79f
...
@@ -60,6 +60,8 @@ def parse_fasta(fasta_string: str) -> Tuple[Sequence[str], Sequence[str]]:
...
@@ -60,6 +60,8 @@ def parse_fasta(fasta_string: str) -> Tuple[Sequence[str], Sequence[str]]:
descriptions
.
append
(
line
[
1
:])
# Remove the '>' at the beginning.
descriptions
.
append
(
line
[
1
:])
# Remove the '>' at the beginning.
sequences
.
append
(
""
)
sequences
.
append
(
""
)
continue
continue
elif
line
.
startswith
(
"#"
):
continue
elif
not
line
:
elif
not
line
:
continue
# Skip blank lines.
continue
# Skip blank lines.
sequences
[
index
]
+=
line
sequences
[
index
]
+=
line
...
...
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