Skip to content

Commit

Permalink
Merge pull request #202 from paulsengroup/fix/merge-float
Browse files Browse the repository at this point in the history
Properly support merging coolers with FP counts
  • Loading branch information
robomics authored Aug 15, 2024
2 parents 7001ab3 + ad280b9 commit 10f134d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/hictk/merge/merge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@ namespace hictk::tools {

static void merge_coolers(const MergeConfig& c) {
SPDLOG_INFO(FMT_STRING("begin merging {} coolers..."), c.input_files.size());
cooler::utils::merge<std::int32_t>(c.input_files.begin(), c.input_files.end(),
std::visit(
[&]([[maybe_unused]] auto count_type) {
using PixelT = decltype(count_type);
cooler::utils::merge<PixelT>(c.input_files.begin(), c.input_files.end(),
c.output_file.string(), c.force, c.chunk_size, 10'000'000,
c.compression_lvl);
},
cooler::File(c.input_files.front()).pixel_variant());
}

static void merge_hics(const MergeConfig& c) {
Expand Down

0 comments on commit 10f134d

Please sign in to comment.