Commit 88a43288 authored by cmaffeo2's avatar cmaffeo2
Browse files

Sequence reader now ignores blank lines

parent b6780362
......@@ -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)
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