Skip to content

Commit

Permalink
save some mapping time when not splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
ekg committed Aug 23, 2024
1 parent 1b2bb73 commit 6ecd327
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/map/include/computeMap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1687,6 +1687,14 @@ namespace skch
return std::tie(a.queryStartPos, a.refStartPos) < std::tie(b.queryStartPos, b.refStartPos);
});

// if we have an infinite max mappinng length, we should just emit the chain here
if (param.max_mapping_length == std::numeric_limits<int64_t>::max()) {
// Process any remaining fragment
processMappingFragment(it, it_end);
it = it_end;
continue;
}

// tweak start and end positions of consecutive mappings
// TODO: XXX double check that the consecutive mappings are not overlapping!!!
// extra: force global alignment by patching head and tail to mapping start and end coordinates
Expand Down

0 comments on commit 6ecd327

Please sign in to comment.