mirror of
https://github.com/lh3/minimap2.git
synced 2026-10-03 08:18:13 +08:00
r161: filter bad seeds; changed default -g/-r
This commit is contained in:
@@ -183,7 +183,7 @@ void mm_filter_regs(void *km, const mm_mapopt_t *opt, int *n_regs, mm_reg1_t *re
|
||||
if (r->cnt < opt->min_cnt) flt = 1;
|
||||
else {
|
||||
int blen = r->qe - r->qs < r->re - r->rs? r->qe - r->qs : r->re - r->rs;
|
||||
if (r->score < blen * opt->min_seedcov_ratio) flt = 1;
|
||||
if (r->score < blen * opt->min_seedcov_ratio * opt->a) flt = 1;
|
||||
}
|
||||
if (r->p) {
|
||||
if (r->p->blen - r->p->n_ambi - r->p->n_diff < opt->min_chain_score) flt = 1;
|
||||
|
||||
Reference in New Issue
Block a user