Hi everyone, is there a way to prevent Nextflow fr...
# nostupidquestions
u
Hi everyone, is there a way to prevent Nextflow from creating the work directory? I know this is something one would rarely want to do, but in my case storage is very limited (small server) and sometimes the work folders end up taking more than a quarter of the available space. Ideally, I was wondering if there’s a way to disable or redirect this via a config profile. Has anyone ever tried something like this, or is it simply unavoidable for Nextflow execution? Thanks in advance!
m
It's impossible. You could try the
nf-boost
plugin though to clean up work directories as you go though. Other things to try are to use the
process.scratch
directive, which only copies the output files back to the work directories. Otherwise examine what's taking up space in your processes and include code to clean up files that are redundant and save space.
👍 1
u
@Mahesh Binzer-Panchal Thanks a lot for the suggestion! I've just installed the nf-boost plugin and added it to my configuration profile that I use with
-c
. If it works as expected, this will help us tremendously with our storage space issues on our server. I already had
process.scratch = true
in my config, so combining both approaches should give us the best space optimization :)
👍🏽 1