Skip to content

Commit

Permalink
Fix bug on variant_map_from
Browse files Browse the repository at this point in the history
- need to split all columns for this func
  • Loading branch information
chaklim committed Apr 3, 2020
1 parent adfc485 commit 54cfec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clair/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def variant_map_from(var_fn, tree, is_tree_empty):

f = subprocess_popen(shlex.split("gzip -fdc %s" % (var_fn)))
for row in f.stdout:
columns = row.split(maxsplit=2)
columns = row.split()
ctg_name, position_str = columns[0], columns[1]

if not (is_tree_empty or is_region_in(tree, ctg_name, int(position_str))):
Expand Down

0 comments on commit 54cfec0

Please sign in to comment.