Before we run our first Nextflow pipeline, we need to install Nextflow and Docker or Singularity so we can make use of the built-in support for software packaging that Nextflow offers
All nf-core pipelines support Docker and Singularity (most support Conda too but it’s recommended to use Docker or Singularity instead). We’re going to use Singularity as, unlike Docker, it doesn’t require root (admin) access to install.
There are a few different ways to install Nextflow so pick the best way for your setup:
1. Through the command line and bash:
First you will need to ensure that you have at least version 8 of java installed. You can check which version you have by typing the following on your command line:
Now create an environment called nextflow and install Nextflow in it:
conda create --name nextflow nextflow
Before you can use Nextflow, you will need to activate the nextflow environment:
conda activate nextflow
To check it’s working, run the following command:
nextflow help
You should see something like this:
Install Singularity
Note: Singularity is licensed under the following License
Like Nextflow, there are a number of different ways to install Singularity depending on which system you’re running. We’d recommend using the following commands to install Singularity on a Linux system (Ubuntu version 22.04 in this case):