r1150: the prev impl counted one less submer
This commit is contained in:
parent
c2f07ff2ac
commit
b0b199f503
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.24-r1149-dirty"
|
#define MM_VERSION "2.24-r1150-dirty"
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <sys/resource.h>
|
#include <sys/resource.h>
|
||||||
|
|
|
||||||
2
sketch.c
2
sketch.c
|
|
@ -176,7 +176,7 @@ void mm_sketch_syncmer(void *km, const char *str, int len, int smer, int k, uint
|
||||||
if (l >= k && kmer_span < 256) {
|
if (l >= k && kmer_span < 256) {
|
||||||
uint64_t x, min = UINT64_MAX;
|
uint64_t x, min = UINT64_MAX;
|
||||||
x = hash64(kmer[z], mask);
|
x = hash64(kmer[z], mask);
|
||||||
for (j = 0; j < k - smer; ++j) {
|
for (j = 0; j <= k - smer; ++j) {
|
||||||
uint64_t y = x >> (j + j) & smask;
|
uint64_t y = x >> (j + j) & smask;
|
||||||
min = min < y? min : y;
|
min = min < y? min : y;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue