From 379457c18bc6bc16af523e5bee74c893e3a4fe20 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Sun, 12 Nov 2017 19:01:34 -0500 Subject: [PATCH] use mapq threshold --- misc/paf2diff.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/paf2diff.js b/misc/paf2diff.js index 0af7caf..856ded0 100644 --- a/misc/paf2diff.js +++ b/misc/paf2diff.js @@ -92,7 +92,7 @@ while (file.readline(buf) >= 0) { var m, t = line.split("\t", 12); for (var i = 6; i <= 11; ++i) t[i] = parseInt(t[i]); - if (t[10] < min_cov_len || t[11] == 0) continue; + if (t[10] < min_cov_len || t[11] < min_mapq) continue; var ctg = t[5], x = t[7], end = t[8]; // compute regions covered by 1 contig if (ctg != c1_ctg || x >= c1_end) {