Commit f404a49c authored by hmueller's avatar hmueller
Browse files

Make sequence ID extraction from fasta header more robust so that it works...

Make sequence ID extraction from fasta header more robust so that it works with more complex headers, too.
parent 22f5b240
......@@ -30,7 +30,7 @@ queries = []
with open(args.fasta) as f:
for line in f:
if line.startswith('>'):
queries.append(line.replace('>', '').strip())
queries.append(line.split()[0].strip().lstrip('>'))
query_file = args.output + '/queries.json'
with open(query_file, 'w') as o:
......
Supports Markdown
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