Skip to content

Commit

Permalink
Minor treaks
Browse files Browse the repository at this point in the history
  • Loading branch information
chaklim committed Feb 10, 2020
1 parent bb96540 commit 3e76b4c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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()
columns = row.split(maxsplit=2)
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
2 changes: 1 addition & 1 deletion dataPrepScripts/CreateTensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def candidate_position_generator_from(
is_ctg_region_provided = ctg_start is not None and ctg_end is not None

for row in candidate_file_path_output:
row = row.split()
row = row.split(maxsplit=2)
position = int(row[1]) # 1-based position

if is_ctg_region_provided and not (ctg_start <= position <= ctg_end):
Expand Down
2 changes: 1 addition & 1 deletion dataPrepScripts/ExtractVariantCandidates.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def variants_map_from(variant_file_path):
break

if row:
columns = row.split()
columns = row.split(maxsplit=2)
ctg_name, position_str = columns[0], columns[1]
key = ctg_name + ":" + position_str

Expand Down

0 comments on commit 3e76b4c

Please sign in to comment.