Skip to content

Commit

Permalink
corrects mapping sensitivity error
Browse files Browse the repository at this point in the history
  • Loading branch information
ekg committed Oct 12, 2024
1 parent 64a2b47 commit 60b1f03
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/map/include/computeMap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -780,9 +780,9 @@ namespace skch
std::this_thread::sleep_for(std::chrono::milliseconds(10));
}

if (param.mergeMappings && param.split) {
output->results = mergeMappingsInRange(output->results, param.chain_gap);
}
//if (param.mergeMappings && param.split) {
// output->results = mergeMappingsInRange(output->results, param.chain_gap);
//}

mappingBoundarySanityCheck(input, output->results);

Expand Down Expand Up @@ -817,7 +817,19 @@ namespace skch

void processAggregatedMappings(const std::string& queryName, MappingResultsVector_t& mappings, std::ofstream& outstrm) {
if (param.mergeMappings && param.split) {
filterMaximallyMerged(mappings, param);
auto maximallyMergedMappings = mergeMappingsInRange(mappings, param.chain_gap);
filterMaximallyMerged(maximallyMergedMappings, param);
robin_hood::unordered_set<offset_t> kept_chains;
for (auto &mapping : maximallyMergedMappings) {
kept_chains.insert(mapping.splitMappingId);
}
mappings.erase(
std::remove_if(mappings.begin(), mappings.end(),
[&kept_chains](const MappingResult &mapping) {
return !kept_chains.count(mapping.splitMappingId);
}),
mappings.end());
//filterMaximallyMerged(mappings, param);
} else {
filterNonMergedMappings(mappings, param);
}
Expand Down

0 comments on commit 60b1f03

Please sign in to comment.