nf-core/configs: sanger
The Wellcome Sanger Institute HPC cluster profile
nf-core/configs: Wellcome Sanger Institute Configuration
To use, run the pipeline with -profile sanger. This will download and launch the sanger.config which has been
pre-configured with a setup suitable for the Wellcome Sanger Institute LSF cluster.
Running the workflow on the Wellcome Sanger Institute cluster
Nextflow is installed centrally by IDS. Type module load nextflow- and press
$ module load nextflow-[TAB]nextflow-23.10.0 nextflow-26.04.6Then module load nextflow-26.04.6 to load Nextflow.
If you need a different version, raise a ticket at https://sanger.freshservice.com/.
If asking Nextflow to use Singularity or Apptainer to run the individual jobs,
you should make sure that you enable the right module by adding one of these lines to your .bashrc file
module load ISG/apptainermodule load ISG/singularitymodule load ISG/experimental/sp39/singularityceIf you need a specific version, press
Nextflow shouldn’t run directly on the submission node but on a compute node, via the oversubscribed queue.
To do so make a shell script with a similar structure to the following code and submit with bsub < $PWD/my_script.sh
#!/bin/bash#BSUB -o /path/to/a/log/dir/%J.o#BSUB -e /path/to/a/log/dir/%J.e#BSUB -M 8000#BSUB -q oversubscribed#BSUB -n 2
export HTTP_PROXY='http://wwwcache.sanger.ac.uk:3128'export HTTPS_PROXY='http://wwwcache.sanger.ac.uk:3128'export NXF_ANSI_LOG=falseexport NXF_OPTS="-Xms8G -Xmx8G -Dnxf.pool.maxThreads=2000"export NXF_VER=22.04.0-5697
nextflow run \/path/to/nf-core/pipeline/main.nf \-w /path/to/some/dir/work \-profile sanger \-c my_specific.config \-qs 1000 \-resume
## clean up on exit 0 - delete this if you want to keep the work dirstatus=$?if [[ $status -eq 0 ]]; then rm -r /path/to/some/dir/workfitol22 hugemem
tol22 has access to the farm22 hugemem queue via the farm22-hugemem queue. To use this queue instead of the local hugemem queue, set the sanger_use_farm22_hugemem parameter to true.
GPU access
On farm22, the gpu and gpu-basement queues are used by default. If you would like to use the cub22-inference or tiger22-inference queues, you will need to specify these directly with the sanger_gpu_queue parameter, and provide a cost code with the sanger_gpu_group parameter.
Only the cub22-inference and tiger22-inference queues are available on tol22, and you will need to specify these directly with the sanger_gpu_queue parameter, otherwise the pipeline will fail.
Config file
// Profile detailsparams { config_profile_description = "The Wellcome Sanger Institute HPC cluster profile" config_profile_contact = 'Priyanka Surana (@priyanka-surana)' config_profile_url = 'https://www.sanger.ac.uk'}
// This option is unscopedpoolSize = 4
// Queue and LSF submission optionsprocess { executor = 'lsf'
// Processes without any explicit labels will fail to run on LSF // Set low values as defaults to have a default value cpus = 1 memory = 6.GB
// Legacy withLabel: gpu { accelerator = 1 }
clusterOptions = { if (task.accelerator) { def group_arg = task.accelerator && params.sanger_gpu_group ? "-G ${params.sanger_gpu_group}" : "" return group_arg + " -gpu 'num=1:j_exclusive=yes'" } return null }
containerOptions = { if (task.accelerator) { if (workflow.containerEngine == "singularity") { return '--containall --cleanenv --nv' } else if (workflow.containerEngine == "docker") { return '--gpus all' } return null } }}
// Executor detailsexecutor { name = 'lsf' perJobMemLimit = true submitRateLimit = '5 sec' killBatchSize = 50}
// Import cluster-specific settings from ./sanger/includeConfig ({ // Default cluster name def clustername = "farm22"
try { clustername = ['/bin/bash', '-c', 'lsid | awk \'$0 ~ /^My cluster name is/ {print $5}\''].execute().text.trim() } catch (_e) { System.err.println("WARNING: Could not run lsid to determine current cluster, defaulting to " + clustername) }
if (clustername == "tol22") { return "sanger/tol22.config" } else if (clustername == "farm22") { return "sanger/farm22.config" } else { return "/dev/null" }}.call())
validation { ignoreParams = [ "max_memory", "max_cpus", "max_time", "sanger_gpu_group", "sanger_gpu_queue", "sanger_use_farm22_hugemem", ]}