parent
7025b0b941
commit
e6cce019e4
2
main.c
2
main.c
|
|
@ -7,7 +7,7 @@
|
||||||
#include "mmpriv.h"
|
#include "mmpriv.h"
|
||||||
#include "ketopt.h"
|
#include "ketopt.h"
|
||||||
|
|
||||||
#define MM_VERSION "2.20-r1064-dirty"
|
#define MM_VERSION "2.20-r1068-dirty"
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
|
|
|
||||||
5
seed.c
5
seed.c
|
|
@ -46,7 +46,7 @@ void mm_seed_select(int32_t n, mm_seed_t *a, int len, int max_occ, int max_max_o
|
||||||
int32_t pe = i == n? len : (uint32_t)a[i].q_pos>>1;
|
int32_t pe = i == n? len : (uint32_t)a[i].q_pos>>1;
|
||||||
int32_t j, k, st = last0 + 1, en = i;
|
int32_t j, k, st = last0 + 1, en = i;
|
||||||
int32_t max_high_occ = (int32_t)((double)(pe - ps) / dist + .499);
|
int32_t max_high_occ = (int32_t)((double)(pe - ps) / dist + .499);
|
||||||
if (max_high_occ == 0) goto next_intv;
|
if (max_high_occ > 0) {
|
||||||
if (max_high_occ > MAX_MAX_HIGH_OCC)
|
if (max_high_occ > MAX_MAX_HIGH_OCC)
|
||||||
max_high_occ = MAX_MAX_HIGH_OCC;
|
max_high_occ = MAX_MAX_HIGH_OCC;
|
||||||
for (j = st, k = 0; j < en && k < max_high_occ; ++j, ++k)
|
for (j = st, k = 0; j < en && k < max_high_occ; ++j, ++k)
|
||||||
|
|
@ -59,12 +59,13 @@ void mm_seed_select(int32_t n, mm_seed_t *a, int len, int max_occ, int max_max_o
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (j = 0; j < k; ++j) a[(uint32_t)b[j]].flt = 1;
|
for (j = 0; j < k; ++j) a[(uint32_t)b[j]].flt = 1;
|
||||||
|
}
|
||||||
for (j = st; j < en; ++j) a[j].flt ^= 1;
|
for (j = st; j < en; ++j) a[j].flt ^= 1;
|
||||||
for (j = st; j < en; ++j)
|
for (j = st; j < en; ++j)
|
||||||
if (a[j].n > max_max_occ)
|
if (a[j].n > max_max_occ)
|
||||||
a[j].flt = 1;
|
a[j].flt = 1;
|
||||||
}
|
}
|
||||||
next_intv: last0 = i;
|
last0 = i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue