Commit c59a85b6 authored by Gustaf Ahdritz's avatar Gustaf Ahdritz
Browse files

Fix FASTA parsing bug in inference script

parent f362ebff
...@@ -80,7 +80,7 @@ def main(args): ...@@ -80,7 +80,7 @@ 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.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] tags, seqs = lines[::2], lines[1::2]
for tag, seq in zip(tags, seqs): 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