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)
|
ident,tags,definition = parseHeader(line)
|
||||||
s = []
|
s = []
|
||||||
line = next(i)
|
line = next(i)
|
||||||
while line[0]!='>':
|
|
||||||
s.append(line[0:-1])
|
try:
|
||||||
line = next(i)
|
while line[0]!='>':
|
||||||
|
s.append(line[0:-1])
|
||||||
|
line = next(i)
|
||||||
|
except StopIteration:
|
||||||
|
pass
|
||||||
|
|
||||||
sequence = "".join(s)
|
sequence = "".join(s)
|
||||||
quality = None
|
quality = None
|
||||||
|
|
||||||
@ -42,5 +47,6 @@ def fastaIterator(lineiterator, int buffersize=100000000):
|
|||||||
"annotation" : {}
|
"annotation" : {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user