Patch a bug about the reading of the last sequence
This commit is contained in:
@ -28,9 +28,14 @@ def fastaIterator(lineiterator, int buffersize=100000000):
|
||||
ident,tags,definition = parseHeader(line)
|
||||
s = []
|
||||
line = next(i)
|
||||
while line[0]!='>':
|
||||
s.append(line[0:-1])
|
||||
line = next(i)
|
||||
|
||||
try:
|
||||
while line[0]!='>':
|
||||
s.append(line[0:-1])
|
||||
line = next(i)
|
||||
except StopIteration:
|
||||
pass
|
||||
|
||||
sequence = "".join(s)
|
||||
quality = None
|
||||
|
||||
@ -44,3 +49,4 @@ def fastaIterator(lineiterator, int buffersize=100000000):
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user