Closed robomics closed 4 weeks ago
Attention: Patch coverage is 80.00000%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 79.01%. Comparing base (
0dafc0d
) to head (a59f894
). Report is 26 commits behind head on main.
Files with missing lines | Patch % | Lines |
---|---|---|
src/hictk/convert/cool_to_hic.cpp | 50.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR fixes the bug reported in https://github.com/paulsengroup/hictk/issues/271.
This bug is a regression introduced by https://github.com/paulsengroup/hictk/pull/210.
In brief, when performing *cool -> hic conversion, a randomly-named, self-deleting temporary directory was created under the default temporary directory (e.g.
/tmp
) or a user provided temporary folder. However, due to a silly mistake, the parent of this folder was passed to one of the functions creating temporary files. When converting multiple files sharing one or more resolution in parallel using the default temporary folder, this results in unintended file truncation (which could lead to all kinds of errors).Other commands creating .hic files (e.g.
hictk load
andhictk zoomify
) are not affected.