Skip to content

Commit

Permalink
Merge branch 'master' of github.com:arq5x/gemini
Browse files Browse the repository at this point in the history
  • Loading branch information
arq5x committed Jun 15, 2015
2 parents 0c46ad8 + 6157c8e commit 22f8e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gemini/gemini_load_chunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_phred_lik(gt_phred_likelihoods, dtype=np.int32, empty_val=-1):
empty_line = [empty_val] * 3
for row in gt_phred_likelihoods:
# we only try to use the correct PL's if it already has size 3
if row is not None and len(row) == 3:
if row is not None and isinstance(row, (list, tuple)) and len(row) == 3:
out.append([min(m, int(v)) if v is not None else empty_val for v in row])
all_empty = False
else:
Expand Down

0 comments on commit 22f8e6c

Please sign in to comment.