mirror of
https://github.com/lh3/minimap2.git
synced 2026-10-04 20:08:13 +08:00
r1150: the prev impl counted one less submer
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user