Skip to content

Commit

Permalink
Added fix for IgBLAST 1.6.1 and above
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Stubbington committed May 15, 2017
1 parent 40716f3 commit e109bfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracerlib/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,12 @@ def split_igblast_file(filename):
line = line.rstrip()

if line.startswith(token) and current_chunk and not line.startswith(
"Total queries"):
"Total "):
# if line starts with token and the current chunk is not empty
chunks.append(current_chunk[:]) # add not empty chunk to chunks
current_chunk = [] # make current chunk blank
# just append a line to the current chunk on each iteration
if not line.startswith("Total queries"):
if not line.startswith("Total "):
current_chunk.append(line)

chunks.append(current_chunk) # append the last chunk outside the loop
Expand Down

0 comments on commit e109bfb

Please sign in to comment.