@@ -243,7 +243,7 @@ std::tuple<float, int, std::vector<Nam>> find_nams(
243
243
add_to_matches_map_full (matches_map[q.is_revcomp ], 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_revcomp };
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_revcomp ], q.partial_start , q.partial_end , index , partial_pos);
259
+ add_to_matches_map_partial (matches_map[q.is_revcomp ], q.start , q.start + index . k () , index , partial_pos);
260
260
}
261
261
partial_queried.push_back (ph);
262
262
}
@@ -323,15 +323,15 @@ std::pair<int, std::vector<Nam>> find_nams_rescue(
323
323
hits[qr.is_revcomp ].push_back (rh);
324
324
}
325
325
else if (use_mcs) {
326
- PartialHit ph = {qr.hash & index .get_main_hash_mask (), qr.partial_start , qr.is_revcomp };
326
+ PartialHit ph = {qr.hash & index .get_main_hash_mask (), qr.start , qr.is_reverse };
327
327
if (std::find (partial_queried.begin (), partial_queried.end (), ph) != partial_queried.end ()) {
328
328
// already queried
329
329
continue ;
330
330
}
331
331
size_t partial_pos = index .find_partial (qr.hash );
332
332
if (partial_pos != index .end ()) {
333
333
unsigned int partial_count = index .get_count_partial (partial_pos);
334
- RescueHit rh{partial_pos, partial_count, qr.partial_start , qr.partial_end , true };
334
+ RescueHit rh{partial_pos, partial_count, qr.start , qr.start + index . k () , true };
335
335
hits[qr.is_revcomp ].push_back (rh);
336
336
}
337
337
partial_queried.push_back (ph);
0 commit comments