bugfix: .ctw not generated properly

This commit is contained in:
Heng Li 2014-10-25 23:08:29 -04:00
parent 2bfcc421d9
commit 0f8a164bd3
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ function bwa_postalt(args)
} }
if (ovlp_alt.length > 0) { // add other unreported hits if (ovlp_alt.length > 0) { // add other unreported hits
for (var i = 0; i < ovlp_alt.length; ++i) for (var i = 0; i < ovlp_alt.length; ++i)
if (ovlp_alt[i][0] <= rpt_start && rpt_end <= ovlp_alt[i][1]) if (ovlp_alt[i][0] <= rpt_start && rpt_end <= ovlp_alt[i][1] && alts[ovlp_alt[i][2]] == null)
alts[ovlp_alt[i][2]] = [0, 0]; alts[ovlp_alt[i][2]] = [0, 0];
} }