r450: differentiate exact repeats via mapq

This commit is contained in:
Heng Li
2017-09-27 23:51:05 -04:00
parent a13691d00d
commit 935a6e6064
3 changed files with 9 additions and 1 deletions
+1
View File
@@ -383,6 +383,7 @@ void mm_set_mapq(int n_regs, mm_reg1_t *regs, int min_chain_sc, int match_sc, in
mapq -= (int)(4.343f * logf(r->n_sub + 1) + .499f);
mapq = mapq > 0? mapq : 0;
r->mapq = mapq < 60? mapq : 60;
if (r->p && r->p->dp_max > r->p->dp_max2 && r->mapq == 0) r->mapq = 1;
} else r->mapq = 0;
}
}