Skip to content

Commit

Permalink
Ensure no temporary files are written when balancing .hic files with …
Browse files Browse the repository at this point in the history
…--in-memory
  • Loading branch information
robomics committed Oct 6, 2024
1 parent 7282aba commit fcde580
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 fcde580

Please sign in to comment.