Skip to content
Snippets Groups Projects
Commit 88a43288 authored by cmaffeo2's avatar cmaffeo2
Browse files

Sequence reader now ignores blank lines

parent b6780362
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ def read_sequence_file(sequenceFile=_m13_path):
with open(sequenceFile) as ch:
for l in ch:
l = l.strip().replace(" ", "")
if l[0] in (";","#"): continue
if len(l) == 0 or l[0] in (";","#"): continue
seq.extend([c.upper() for c in l])
return list(seq)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment