Commit 094e338f authored by Gustaf Ahdritz's avatar Gustaf Ahdritz
Browse files

Fix FASTA parsing again (hopefully for good)

parent c59a85b6
......@@ -80,7 +80,10 @@ def main(args):
with open(args.fasta_path, "r") as fp:
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]
for tag, seq in zip(tags, seqs):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment