Serena
10/06/2025, 2:37 PMEvangelos Karatzas
10/06/2025, 3:00 PMIsaac W
10/07/2025, 12:41 AMIsaac W
10/07/2025, 12:45 AMIsaac W
10/07/2025, 12:48 AMcleanup = true in the nextflow.config file which I think keeps the ./work dir size to a minimum. Trinity's temporary files are otherwise killer as I'm sure you've noticed - there's millions of tiny files that take ages to process even just to get a total disk space usage estimate.Isaac W
10/07/2025, 1:13 AMIsaac W
10/07/2025, 2:31 AMAvani Bhojwani
10/07/2025, 8:52 AMAvani Bhojwani
10/07/2025, 8:55 AMSerena
10/07/2025, 3:38 PMcleanup = true in my config, but as I read the main nf-core docs, it looks like it only gets rid of unnecessary temp files once a run of the pipeline has completed successfully, which doesn't really solve the issue of having these exploding trinity tempfiles. I set up a little script to track how many files are being produced, and cleanup does get rid of everything besides the `.command.sh`/`.command.log` files at the end of a run, which leaves you ~25 files per run; all well and good, but doesn't let you run more jobs at once, especially since running as a job array means none of the runs complete successfully when the file number cap is hit.
I've been using the slurm #SBATCH --array=1-57%1 function, where the number after the % is the number of jobs that can run at a time, to try and do something similar to what @Isaac W did, except without the nice features of checking scratch usage and stopping subsequent submissions. I kept trying with successively smaller and smaller numbers, but once I hit doing only 10 at a time and was still generating more than a million files, I quit and asked our sysadmins for a temporary increase for the file number quota š they haven't approved it yet & I'm not sure they will, so I'm just running jobs one at a time while I wait, and they are moving a little more quickly than I expected, which is nice.
That being said, 57 transcriptomes is not that many, and having the pipeline create such a prohibitive number of temporary files is a huge barrier to being able to use it. Not sure if putting them all in one pipeline run would actually solve that, if it's trinity making separate tempfiles for each assembly, but it would at least make it easier to use!Isaac W
10/13/2025, 10:47 PM