"lib/git@developer.sourcefind.cn:OpenDAS/dynamo.git" did not exist on "960ee927b720b8e530a731f8e1598927cdf803b0"
Commit 790267e3 authored by Jennifer's avatar Jennifer
Browse files

Change parse_fasta to split on whitespace or '|' character

parent 0cf8b928
...@@ -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
......
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