r894: added --max-qlen to filter out long query

This commit is contained in:
Heng Li
2018-12-12 12:27:32 -05:00
parent eef1cee9b7
commit ea2b1c5b2a
4 changed files with 14 additions and 2 deletions
+1
View File
@@ -284,6 +284,7 @@ void mm_map_frag(const mm_idx_t *mi, int n_segs, const int *qlens, const char **
qlen_sum += qlens[i], n_regs[i] = 0, regs[i] = 0;
if (qlen_sum == 0 || n_segs <= 0 || n_segs > MM_MAX_SEG) return;
if (opt->max_qlen > 0 && qlen_sum > opt->max_qlen) return;
hash = qname? __ac_X31_hash_string(qname) : 0;
hash ^= __ac_Wang_hash(qlen_sum) + __ac_Wang_hash(opt->seed);