guillaumecharbonnier / mw-lib

Metaworkflow library of generalised Snakemake rules
MIT License
0 stars 3 forks source link

Danpos dtriple rule interruption produces empty wig file not removed by Snakemake on resume #32

Closed guillaumecharbonnier closed 2 months ago

guillaumecharbonnier commented 1 year ago

When interrupting the snakemake execution of Danpos dtriple, snakemake does not clean the corrupted output. As a consequence downstream rule is executed on resume and will lead to empty quantile-normalised bigwig. Instead of having a size of > 200 mo, they are around 80 mo. The rule needs to be rewritten to allow proper cleaning on interruption.

Example: 82M Jul 1 2022 CUTTAG_H3K27ac_Jurkat_0_5M_over_CUTTAG_H3K27ac_Jurkat_0_5M.bw*

guillaumecharbonnier commented 2 months ago

May be fixed by https://github.com/guillaumecharbonnier/mw-lib/commit/6b8d39bae193b0cb4c8841500cb919ee9066823f Not easy to reproduce the issue, the interrupt has to happen at a specific time.