Matthew Hobbs
11/26/2024, 3:07 AMnextflow run nf-core/fetchngs -profile dice,singularity -c sratools.config --download_method sratools --input ids.csv --outdir inputFastq
nextflow.config is:
profiles {
dice {
process {
executor = 'sge'
penv = 'smp'
clusterOptions = '-S /bin/bash'
}
}
}
ids.csv is:
SRR10985015
sratools.config is:
process {
withName: SRATOOLS_PREFETCH {
ext.args = '--max-size 60g'
}
}
This runs successfully (hooray); however along the way the SRATOOLS_FASTERQDUMP step accumulates some large temporary files - at one stage the work directory in which fasterq-dump runs get to be over 317G in size (in comparison the final fastq files are only 49G in total)
I would much prefer to have temporary files saved in scratch space on the execution node rather than under nextflow’s work directory.
I notice fasterq-dump has this option:
-t|--temp where to put temp. files dflt=curr dir
How would I configure the workflow so that this option is used to specify the execution node’s local scratch disk?Maxime Garcia
11/26/2024, 12:14 PMext.args for SRATOOLS_FASTERQDUMP as you did with SRATOOLS_PREFETCH and specify -t /path/to/scratchMaxime Garcia
11/26/2024, 12:15 PMMaxime Garcia
11/26/2024, 12:16 PMMatthew Hobbs
11/26/2024, 8:41 PMprocess {
withName: SRATOOLS_FASTERQDUMP {
clusterOptions = '-S /bin/bash -l tmp_requested=400G'
scratch = true
}Maxime Garcia
11/26/2024, 9:51 PMMaxime Garcia
11/26/2024, 9:51 PM