r1150: the prev impl counted one less submer

This commit is contained in:
Heng Li
2022-10-21 21:00:22 -04:00
parent c2f07ff2ac
commit b0b199f503
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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) {
uint64_t x, min = UINT64_MAX;
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;
min = min < y? min : y;
}