Fanny Mendisco
04/27/2026, 7:23 AMwork/ directory becomes very large during execution (several hundreds of GB to Tb). I understand this is due to intermediate BAM files and Nextflow caching, but I wanted to check:
• Is this scale of disk usage (e.g. 1 TB for ~150 GB input) expected?
• Do you have a rough estimate or rule of thumb for the size of the work directory depending on input data and typical parameters?
We’re currently discussing storage solutions with our HPC admins, so any guidance would be very helpful.
Thanks a lot for your help and for the pipeline!
Best,James Fellows Yates
04/27/2026, 7:35 AM-r dev but it is still months away from formal release.
Are you already using the cleanup = true option in a custom config? This should remove all intermediate files in work on the completion of a successful run (I think that was already around in Nextflow v22.10)James Fellows Yates
04/27/2026, 7:36 AMwork
2. Run with BAM input -> to endFanny Mendisco
04/27/2026, 8:03 AMcleanup = true, so that’s definitely something we’ll test.
Thanks also for the suggestion about splitting the runs into two steps. We might explore that depending on how things go with our HPC setup.
Thanks again for your help!
Best,Alex Hübner
04/27/2026, 8:32 AMresults directory. While this won't limit the size of work , it helped me to reduce the amount of duplicated intermediate files that I wasn't interested in. Particularly, I got rid of FastQ files by changing the files published by FastP and `AdapterRemoval`:
withName: fastp {
publishDir = [
path: { "${params.outdir}/FastP" },
mode: 'copy',
pattern: '*.json'
]
}
withName: adapter_removal {
publishDir = [
path: { "${params.outdir}/adapterremoval" },
mode: 'copy',
pattern: 'output/*.settings'
]
}Fanny Mendisco
04/27/2026, 9:38 AM