Myriad Configuration

All nf-core pipelines have been successfully configured for use on UCL’s myriad cluster University College London.

Using Nextflow on Myriad

Before running an nf-core pipeline you will need to set up the requirements and install Nextflow.

Requirements

You will need the java 11 or later to install and run Nextflow. Different java versions are available in the cluster. To avoid any compatibily issues, use the latest version of java/temurin. You can do this by placing the next line inside your .bashrc:

module load java/temurin-17/17.0.2_8
 

You can check for other java versions using the module avail java command, and load the corresponding version by including module load java/your-version inside your .bashrc.

Install Nextflow

Download the latest release of nextflow. Warning: the self-update line should update to the latest version, but sometimes not, so please check which is the latest release (https://github.com/nextflow-io/nextflow/releases), you can then manually set this by entering (NXF_VER=XX.XX.X).

## Download Nextflow-all
curl -s https://get.nextflow.io | bash
NXF_VER=XX.XX.X
nextflow -self-update
chmod a+x nextflow
mv nextflow ~/bin/nextflow
 

Then make sure that your bin PATH is executable, by placing the following line in your .bash_profile:

export PATH=$PATH:$HOME/bin
 

Running an nf-core pipeline

To run the pipeline, make sure to add -profile ucl_myriad. This will download and launch the ucl_myriad.config which has been pre-configured with a setup suitable for the myriad cluster, as well as use the correct container engine for myriad.

nextflow run nf-core/your-pipeline -profile ucl_myriad --outdir your/output/directory
 

You can check your set up is correct by using -profile test before running the pipeline with your own data.

nextflow run nf-core/your-pipeline -profile test,ucl_myriad --outdir your/output/directory
 

Config file

See config file on GitHub

ucl_myriad.config
params {
    config_profile_description = 'University College London Myriad cluster'
    config_profile_contact     = 'Chris Wyatt (ucbtcdr@ucl.ac.uk)'
    config_profile_url         = 'https://www.rc.ucl.ac.uk/docs/Clusters/Myriad/'
}
 
executor {
    name = 'sge'
}
 
apptainer.runOptions = "-B ${HOME},${PWD}"
 
process {
    //NEED TO SET PARALLEL ENVIRONMENT TO SMP SO MULTIPLE CPUS CAN BE SUBMITTED
    penv           = 'smp'
    //PROVIDE EXTRA PARAMETERS AS CLUSTER OPTIONS
    clusterOptions = "-S /bin/bash"
}
 
singularity {
    enabled    = true
    autoMounts = true
    cacheDir   = "${HOME}/Scratch/.apptainer/pull"
}