@@ -243,7 +243,7 @@ std::tuple<float, int, std::vector<Nam>> find_nams(
243
243
add_to_matches_map_full (matches_map[q.is_reverse ], q.start , q.end , index , position);
244
244
}
245
245
else if (use_mcs) {
246
- PartialHit ph{q.hash & index .get_main_hash_mask (), q.partial_start , q.is_reverse };
246
+ PartialHit ph{q.hash & index .get_main_hash_mask (), q.start , q.is_reverse };
247
247
if (std::find (partial_queried.begin (), partial_queried.end (), ph) != partial_queried.end ()) {
248
248
// already queried
249
249
continue ;
@@ -256,7 +256,7 @@ std::tuple<float, int, std::vector<Nam>> find_nams(
256
256
continue ;
257
257
}
258
258
nr_good_hits++;
259
- add_to_matches_map_partial (matches_map[q.is_reverse ], q.partial_start , q.partial_end , index , partial_pos);
259
+ add_to_matches_map_partial (matches_map[q.is_reverse ], q.start , q.start + index . k () , index , partial_pos);
260
260
}
261
261
partial_queried.push_back (ph);
262
262
}
@@ -312,15 +312,15 @@ std::pair<int, std::vector<Nam>> find_nams_rescue(
312
312
}
313
313
}
314
314
else if (use_mcs) {
315
- PartialHit ph = {qr.hash & index .get_main_hash_mask (), qr.partial_start , qr.is_reverse };
315
+ PartialHit ph = {qr.hash & index .get_main_hash_mask (), qr.start , qr.is_reverse };
316
316
if (std::find (partial_queried.begin (), partial_queried.end (), ph) != partial_queried.end ()) {
317
317
// already queried
318
318
continue ;
319
319
}
320
320
size_t partial_pos = index .find_partial (qr.hash );
321
321
if (partial_pos != index .end ()) {
322
322
unsigned int partial_count = index .get_count_partial (partial_pos);
323
- RescueHit rh{partial_pos, partial_count, qr.partial_start , qr.partial_end , true };
323
+ RescueHit rh{partial_pos, partial_count, qr.start , qr.start + index . k () , true };
324
324
if (qr.is_reverse ){
325
325
hits_rc.push_back (rh);
326
326
} else {
0 commit comments