make sure ins/del match

This commit is contained in:
Heng Li 2021-04-11 11:47:14 -04:00
parent a9037dc16c
commit b51e859945
1 changed files with 5 additions and 1 deletions

View File

@ -2826,7 +2826,11 @@ function paf_sveval(args)
if (a0 == null) continue;
var st = a1[i][0] > win_size? a1[i][0] - win_size : 0;
b = Interval.find_ovlp(a0, st, a1[i][1] + win_size);
if (b.length > 0) ++m;
var match = false;
for (var j = 0; j < b.length; ++j)
if (b[j][2] * a1[i][2] > 0)
match = true;
if (match) ++m;
else if (print_err) print(label, x, a1[i].slice(0, 3).join("\t"));
}
}