bug in the last commit

This commit is contained in:
Heng Li 2014-10-12 18:24:40 -04:00
parent bf08f76a3c
commit 2485a3ca02
1 changed files with 1 additions and 1 deletions

View File

@ -437,7 +437,7 @@ function bwa_postalt(args)
if (idx_pri[hits2[0][0]] != null) { if (idx_pri[hits2[0][0]] != null) {
var ovlp = idx_pri[hits2[0][0]](start, end); var ovlp = idx_pri[hits2[0][0]](start, end);
for (var i = 0; i < ovlp.length; ++i) // TODO: requiring reasonable overlap for (var i = 0; i < ovlp.length; ++i) // TODO: requiring reasonable overlap
if (start <= ovlp[i][0] && ovlp[i][1] <= end && alts[ovlp[i][2]] == null) if (ovlp[i][0] <= start && end <= ovlp[i][1] && alts[ovlp[i][2]] == null)
alts[ovlp[i][2]] = [0, 0]; alts[ovlp[i][2]] = [0, 0];
} }