Skip to content

Commit

Permalink
fix for snps
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed May 7, 2019
1 parent 89327be commit 913d1c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/duphold.nim
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ proc annotate*(snps:snpset, variant:Variant, sample_i:int) =
var ci = innerCI(variant)
var i = lowerBound(snps.starts, ci.left.int32, system.cmp)
var n = 0
while snps.starts[i] < ci.right:
while i < snps.starts.len and snps.starts[i] < ci.right:
dhgt[5 * sample_i + snps.nalts[i]] += 1
n += 1
i += 1
Expand Down

0 comments on commit 913d1c1

Please sign in to comment.