Hello all, I am using NEXTFLOW version 25.04.6 bui...
# rnaseq
w
Hello all, I am using NEXTFLOW version 25.04.6 build 5954 run rnaseq pipeline 3.19.0, my job was terminated because the disk run out of space, after I clean the disk to release extra space, I resubmit the same job with
-resume
but it failed to continue from what was left from last run, do you know why and what files are important for the work to resume? It took 9 days to get to the place where it failed, it would be great if we don't need to rerun from the beginning. Thank you very much, look forward to hearing from you soon!
m
If you left the
work
directory intact, it should be able to resume at least some tasks. Do you remember at which stage it failed? Also 9 days is a pretty long time. If you have extremely many samples, you may want to look into batching them (the quantification tables can later be safely combined) or optimize your configuration so your compute is utilized more efficiently.
w
@Matthias Zepper Thanks for getting back to me so quickly, I only have 47 RNAseq samples running with 64 cpu virtual machine, the STAR-RSEM workflow normally run pretty fast taking about 1-2 days, this time I need to split the mouse reads using bbsplit, it took 9 days which I think it is too long as well. Do you think it is normal or I need to change the settings for bbsplit?
One more sample needs to finish bbsplit, this step takes so long, I hope the job can resume from here, but the resubmit seems failed and run from the very beginning. I didn't delete anything from "work" directory.
m
I haven’t been running BBSplit in a while, but that indeed sounds excessive, particularly if you are just mapping to one or a few other genomes. In older versions there was an issue that the genomes were reindexed for every sample, but I believe that was fixed in 3.15, so shouldn’t be an issue with 3.19. Maybe you can check a log file from one of the samples how long the tool actually takes per sample and if there are any indications of it reporting issues as warnings?
t
• Can you run multiple VMs in parallel as a cluster? This would not reduce the computation, but since it can run in parallel, it should reduce the time quite a bit. • I don't use BBSplit, instead I align to a combined genome (human+mouse in my case). You have to prefix the contig names of one (e.g. mouse) with something (e.g.
mm_
), then you can concatenate the genome FASTAs and the GTFs. This has a couple advantages: ◦ You are mapping each read only once (and STAR is fairly fast, unlike BBSplit), not twice (BBSplit + STAR). ◦ It is the most accurate method, since the mapper (STAR) has all the loci from all genomes available to choose from, and if it fits in multiple places, the counts are split by Salmon (or RSEM). BBSplit can't do that, because it has to make a decision whether to retain or remove the read. I would set the STAR parameter
--outFilterMultimapScoreRange 0
to minimize the ambiguous reads. • For a successful
-resume
you'll also need the
.nextflow
subdirectory in the directory where you started the run, and the success of resuming may even depend on how the
nextflow
job died. If you get it to resume successfully, I would not change anything at this point (as this might invalidate many of the caches), but if you have to restart anyway or starting a new project, I would seriously look into the options above, I would bet money any time invested there pays off by resulting in a shorter runtime. Ask if you have questions. 🤞