Skip to content

Installation

NextITS runs on Linux. On Windows, use the Windows Subsystem for Linux (WSL). macOS works with Docker, but it is not tested regularly.

You only need to install two things yourself:

Requirement Version
Nextflow (needs Java 17–26) 26.04.0 or later
A container engine: Docker, Podman, Singularity or Apptainer any recent version

Nextflow downloads the pipeline and its container image on the first run. Every bioinformatics tool the pipeline uses is inside that image.

Nextflow

Install Java with SDKMAN!, then Nextflow:

curl -s https://get.sdkman.io | bash
# open a new terminal, then:
sdk install java 21-tem

curl -s https://get.nextflow.io | bash
chmod +x nextflow
mkdir -p ~/bin && mv nextflow ~/bin/
mamba create -n nextflow -c conda-forge -c bioconda nextflow
mamba activate nextflow

Check the installation:

nextflow -version

If you already have Nextflow, update it with nextflow self-update. For details, see the Nextflow installation guide.

Container engine

Pick one. Docker or Podman is usually the simplest choice on a workstation. On a shared HPC cluster, Singularity or Apptainer is usually the only one available. Select the engine at run time with -profile docker, -profile podman, -profile singularity or -profile apptainer.

Follow the Docker Engine installation guide for your distribution. Then let your user run Docker without sudo:

sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker

Podman is available in the package repositories of most distributions:

sudo apt install podman      # Debian/Ubuntu

See the Apptainer or SingularityCE installation guides. On Ubuntu, Apptainer is available from a PPA:

sudo add-apt-repository -y ppa:apptainer/ppa
sudo apt update && sudo apt install -y apptainer

On an HPC cluster

The engine is usually installed as an environment module. Find and load it with:

module avail singularity apptainer
module load apptainer

Container image

All profiles use one image from Docker Hub, vmikk/nextits. Nextflow pulls it on the first run. Singularity and Apptainer convert it to a .sif file and cache it.

On a cluster, put the cache on a shared file system so the image is converted only once:

export NXF_SINGULARITY_CACHEDIR="/shared/path/singularity_cache"   # -profile singularity
export NXF_APPTAINER_CACHEDIR="/shared/path/apptainer_cache"       # -profile apptainer
Pull the image manually (e.g., for offline nodes)
# Docker
docker pull vmikk/nextits:1.2.4

# Singularity / Apptainer
singularity pull nextits-1.2.4.sif docker://vmikk/nextits:1.2.4

To use a local .sif file, point Nextflow to it in a custom config (see Configuring runs):

// three slashes are required for an absolute path
process.container = 'file:///path/to/nextits-1.2.4.sif'
Build the image yourself
git clone https://github.com/vmikk/NextITS
cd NextITS/containerfiles

# Docker
docker build --tag nextits:local --file NextITS.dockerfile .

# Singularity / Apptainer
singularity build --fakeroot nextits.sif NextITS.def

Databases

Chimera database

Reference-based chimera detection (enabled by default) needs a database in VSEARCH's UDB format. We provide one built from EUKARYOME v1.9.3: full-length ITS sequences of 100–800 bp, extracted with ITSx.

Download the database

From the command line:

wget -O Eukaryome_1.9.3_241222_FullITS_100-800.udb \
  "https://owncloud.ut.ee/owncloud/public.php/dav/files/PkasGDNDimNssm3"

Pass the path to the file with --chimera_db. The default value is a bare file name, Eukaryome_1.9.3_241222_FullITS_100-800.udb, which Nextflow looks for in the directory you launch the pipeline from. Using an absolute path avoids surprises:

--chimera_db "/path/to/Eukaryome_1.9.3_241222_FullITS_100-800.udb"

If you don't need reference-based chimera detection, use --chimera_methods denovo (or none, which disables chimera detection completely).

Test the installation

Run Step-1 on a small built-in dataset (replace docker with your engine):

nextflow run vmikk/NextITS -r main -profile test,docker

Results are written to NextITS_Test_Step1/. Other test profiles:

Profile What it tests
test (or test1) Step-1, PacBio, multiplexed
test2 Step-2 (UNOISE + VSEARCH)

Pin a version

-r main runs the latest code. For reproducible analyses, pin a release tag instead, (-r <version>), and report it in your methods. List the available tags with git ls-remote --tags https://github.com/vmikk/NextITS.