Nextflow pipeline for generating reference databases for amplicon sequences.
Caution
🚧 This pipeline is in beta development. Workflow commands and modes of operation may change. 🚧
Standalone installation (recommended)
java -version
curl -s https://get.nextflow.io | bash
mv nextflow ~/bin/Conda installation
conda create -n nextflow -c conda-forge -c bioconda -c defaults nextflow
conda activate nextflowTip
For more info on nextflow please visit Nextflow documentation
git clone https://github.com/mikerobeson/nf-refdb-amplicon
cd nf-refdb-ampliconImportant
Choose the setup method based on your operating system and execution profile.
The pipeline can be deployed locally or on cluster.
Note
- Currently, the pipeline supports Conda rather than Docker.
- Docker-based QIIME 2 images have reported runtime and compatibility issues on M1/M2 (emulation problems, crashes, or missing platform support).
- Use the conda profile (
-profile local,conda) or point to an existing QIIME 2 conda environment with--qiime_conda_env /path/to/env. - The pipeline supports Conda for both local and cluster execution (e.g.,
-profile local,condaand-profile cluster,conda). - However in macOS, Nextflow cannot automatically set
CONDA_SUBDIR=osx-64; the user needs to manually create the QIIME 2 environment withCONDA_SUBDIR=osx-64and then supply its path via--qiime_conda_env. - We are actively working on deploying the pipeline via containers (Docker, Singularity)!
Step 1: Create the QIIME 2 environment manually:
# Required for Apple Silicon (M1/M2/M3) Macs
CONDA_SUBDIR=osx-64 conda env create \
--name rachis-qiime2-2026.4 \
--file https://raw.githubusercontent.com/qiime2/distributions/refs/heads/dev/2026.4/qiime2/released/rachis-qiime2-osx-64-conda.ymlStep 2: Get the path to your environment:
conda env list | grep rachis-qiime2-2026.4Step 3: Run the pipeline pointing to the existing environment:
nextflow run main.nf \
--pipeline_type <ssu|ess> \
--qiime_conda_env /path/to/conda/envs/rachis-qiime2-2026.4 \
-profile local,condaOn Linux, the pipeline will automatically create the QIIME 2 environment from the YAML files provided in the assets/ folder. Simply point --qiime_conda_env to the YAML file:
nextflow run main.nf \
--pipeline_type <ssu|ess> \
--qiime_conda_env assets/rachis-qiime2-linux-64-conda.yml \
-profile local,condaNote
Depending on the development cycle you may also need to install the latest version of RESCRIPt manually into your QIIME 2 environment:
conda activate qiime2-amplicon-2024.10
git clone https://github.com/bokulich-lab/RESCRIPt
cd RESCRIPt
pip install .nextflow run main.nf --pipeline_type <ssu|ess> -profile <local,conda|cluster,conda>Show help:
nextflow run main.nf --help # Global options
nextflow run main.nf --help ssu # SSU workflow options
nextflow run main.nf --help ess # ESS workflow optionsImportant
For detailed information on individual workflows, please refer to the SSU README and ESS README documents.
| Type | Description |
|---|---|
ssu |
Build Naive Bayes classifiers from SSU rRNA gene reference databases (SILVA, GTDB, RDP) |
ess |
Build classifiers using iterative extract-seq-segments approach (under development) |
Combine an executor profile with an engine profile:
| Executor | Engine | Usage | Description |
|---|---|---|---|
local |
conda |
-profile local,conda |
Run locally with Conda |
cluster |
conda |
-profile cluster,conda |
Submit to SLURM HPC with Conda |
local |
docker |
-profile local,docker |
Run locally with Docker (recommended for macOS/Linux desktops) |
Note
Docker support is not currently available; but it is planned for a future release.
| Parameter | Default | Description |
|---|---|---|
--pipeline_type |
— | Required. ssu or ess |
--qiime_conda_env |
YAML in assets/ | Path to existing QIIME 2 conda environment (for conda profile) |
--outdir |
results |
Output directory |
--derep.mode |
uniq |
Dereplication mode: 'uniq' or 'abund' |
--cull.degen |
5 |
Cull degenerate sequences (threshold) |
--cull.hpoly |
8 |
Cull homopolymer sequences (threshold) |
--max_memory |
16.GB |
Max memory per process |
--max_cpus |
4 |
Max CPUs per process |
--max_time |
48.h |
Max time per process |
--help |
false |
Show help message |
If you make use of this pipeline please cite RESCRIPt:
- Michael S Robeson II, Devon R O'Rourke, Benjamin D Kaehler, Michal Ziemski, Matthew R Dillon, Jeffrey T Foster, Nicholas A Bokulich. (2021) RESCRIPt: Reproducible sequence taxonomy reference database management. PLoS Computational Biology 17 (11): e1009581. doi: 10.1371/journal.pcbi.1009581. GitHub.
Note
An older Snakemake variant of this pipeline is available here.