Skip to content

Commit

Permalink
Merge pull request #280 from paulsengroup/fix/balance-tmpdir-hic
Browse files Browse the repository at this point in the history
Ensure no temporary files are written when balancing .hic files with --in-memory
  • Loading branch information
robomics authored Oct 7, 2024
2 parents 3483a0f + fcde580 commit 5e298f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hictk/balance/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ inline int balance_hic(const BalanceConfig& c, const std::filesystem::path& tmp_
}

const auto tmpfile =
tmp_dir / (std::filesystem::path{c.path_to_input}.filename().string() + ".tmp");
tmp_dir.empty()
? ""
: tmp_dir / (std::filesystem::path{c.path_to_input}.filename().string() + ".tmp");

const auto params = init_params<Balancer>(c, tmpfile);
typename Balancer::Type mode{};
Expand Down

0 comments on commit 5e298f6

Please sign in to comment.