Skip to content

Commit

Permalink
fix: Conditionally display target size in mashmap logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ekg committed Nov 20, 2024
1 parent 35c0ef2 commit af85065
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/map/include/computeMap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,9 +542,11 @@ namespace skch
}
}
double avg_subset_size = target_subsets.size() ? (double)total_subset_size / target_subsets.size() : 0;
std::cerr << "[wfmash::mashmap] Target subsets: " << target_subsets.size()
<< ", target size: " << param.index_by_size << "bp"
<< ", average size: " << std::fixed << std::setprecision(0) << avg_subset_size << "bp" << std::endl;
std::cerr << "[wfmash::mashmap] Target subsets: " << target_subsets.size();
if (param.index_by_size > 0) {
std::cerr << ", target size: " << param.index_by_size << "bp";
}
std::cerr << ", average size: " << std::fixed << std::setprecision(0) << avg_subset_size << "bp" << std::endl;

std::unordered_map<seqno_t, MappingResultsVector_t> combinedMappings;

Expand Down

0 comments on commit af85065

Please sign in to comment.