r282: set min split_len to read length
This commit is contained in:
parent
30cc8a95d1
commit
77b5b586ad
1
bwamem.c
1
bwamem.c
|
|
@ -199,6 +199,7 @@ static void mem_insert_seed(const mem_opt_t *opt, kbtree_t(chn) *tree, smem_i *i
|
||||||
{
|
{
|
||||||
const bwtintv_v *a;
|
const bwtintv_v *a;
|
||||||
int split_len = (int)(opt->min_seed_len * opt->split_factor + .499);
|
int split_len = (int)(opt->min_seed_len * opt->split_factor + .499);
|
||||||
|
split_len = split_len < itr->len? split_len : itr->len;
|
||||||
while ((a = smem_next(itr, split_len, opt->split_width)) != 0) { // to find all SMEM and some internal MEM
|
while ((a = smem_next(itr, split_len, opt->split_width)) != 0) { // to find all SMEM and some internal MEM
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < a->n; ++i) { // go through each SMEM/MEM up to itr->start
|
for (i = 0; i < a->n; ++i) { // go through each SMEM/MEM up to itr->start
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue