Super Computing Wales configuration
A base configuration file for running nf-core pipelines has been set up for use with Super Computing Wales (SCW). To use this profile, the pipeline can be run with the option -profile scw
, which will download the scw.config
config file. This config file by default runs pipelines using Singularity, and runs all jobs on the htc partition.
To run an nf-core pipeline, you will first need to activate Nextflow. You can do this with the following command:
Downloading pipelines for offline use
To download an nf-core pipeline for offline use, you will have to install the nf-core tool in a conda environment:
By default, Nextflow will download Singularity containers to a cache directory within the pipeline directory. To reduce storage space and to reuse containers between pipelines, you should create a directory on the /scratch partition where the containers will be downloaded and set the environment variable NXF_SINGULARITY_CACHEDIR in your ~/.myenv file:
Then you can download the pipeline of your choice to run:
The pipeline can then be run with the following:
More detailed instructions are available on the nf-core website.
Configuring modules to use different partitions
SCW provides a number of different partitions for different use cases. By default this config file uses HTC, but it is simple to change this for specific modules. Simply create a new config file, and specify a new queue
for each module you wish to change. For example, to run SPADEs on the highmem
partition in the nf-core/mag pipeline, create a config file (e.g. pipeline_options.config
) with the following:
And specify this config when running the pipeline with -c pipeline_options.config
Multiple project membership and setting up emails
If you are a member of multiple projects you can add the below code to your pipeline_options.config file inside the process scope to tell SLURM which SBATCH options to use.