QIIME 2 Amplicon — 16S/ITS Microbiome Pipeline (FASTQ → Feature Table → Taxonomy → Diversity)
The command-line, workflow-runner entry point for marker-gene (amplicon) microbiome
analysis. Given raw demultiplexed paired-end reads, it walks the **canonical QIIME 2
order** — import → primer trim → denoise → classify → diversity — and teaches the two
things people get wrong most: trimming primers BEFORE DADA2, and the **.qza/.qzv
provenance model**. It is the raw-data-to-result pipeline that hands a feature table off
to in-memory analysis skills (see routing below).
Written against QIIME 2 2026.7 (released 2026-07-22), the current release. The
distribution formerly called amplicon was renamed qiime2 in 2026.4, and its conda
env files carry a rachis- prefix (the framework package was renamed qiime2 -> rachis
in 2026.1). Only the env name, channel path, and file names moved: every plugin command
below is unchanged across those releases.
When to Use This Skill
Use this skill when the request involves running an amplicon / microbiome pipeline from
sequencing reads:
- "Run a QIIME 2 16S pipeline on my paired-end reads."
- "I have ITS amplicon FASTQs — denoise with DADA2 and assign taxonomy."
- "Build a feature table / ASV table and classify against SILVA."
- "Pick truncation lengths from my quality plot and run core-metrics diversity."
- "How do I trim primers before DADA2 in QIIME 2?"
- "What's the right order of QIIME 2 commands?"
Does NOT Trigger — route these elsewhere
| The request is really about… | Route to |
|------------------------------|----------|
| Alpha/beta diversity, UniFrac, PCoA ordination, PERMANOVA on an already-exported feature/distance table (in-memory, Python) | alterlab-scikit-bio |
| Building / manipulating a phylogenetic tree, tree visualization, or comparative phylogenetics outside QIIME 2 | alterlab-phylogenetics / alterlab-etetoolkit |
| Shotgun metagenomics taxonomic profiling, MAG assembly, functional genes (not marker-gene amplicons) | not in this skill — amplicon only; flag the gap |
| RNA-seq transcript quantification (salmon/kallisto), differential expression | alterlab-rnaseq-quant → alterlab-pydeseq2 |
| Variant calling FASTQ → VCF (germline/somatic) | alterlab-nf-core-sarek |
| Protein/nucleotide sequence similarity search (BLAST+/DIAMOND) | alterlab-blast |
| Spatial transcriptomics neighborhood/enrichment analysis | alterlab-squidpy-spatial |
| Quick one-off gene/sequence/database lookups | alterlab-gget |
| Reading/writing BAM/SAM/VCF, alignment file surgery | alterlab-pysam |
Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-scikit-bio) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.
This skill is amplicon (marker-gene) only. If the data is shotgun metagenomic,
single-cell, or anything other than 16S/18S/ITS marker-gene sequencing, say so and stop.
The Artifact Model (.qza / .qzv) — read this first
Everything in QIIME 2 is a typed, zipped artifact that records its own provenance:
.qza— a QIIME 2 Artifact: data (a feature table, sequences, a classifier)
plus an embedded semantic type (e.g. SampleData[PairedEndSequencesWithQuality],
FeatureTable[Frequency]) and a full provenance graph of every action that
produced it.
.qzv— a Visualization: a human-viewable report (quality plots, summaries,
diversity emperor plots). Drag it into https://view.qiime2.org (offline, in-browser)
or run qiime tools view file.qzv.
- Provenance is the reproducibility win: any
.qza/.qzvcarries the exact commands,
parameters, and plugin versions that made it. Keep artifacts, not just exports.
Treat semantic types as the contract: an action only accepts artifacts of the type it
declares, which is why import (step 1) matters so much.
The Canonical Order (do not reorder)
manifest import → cutadapt trim-paired (primers) → dada2 denoise-paired
→ feature-table summarize → feature-classifier classify-sklearn
→ phylogeny → diversity core-metrics-phylogenetic
Primer trimming comes BEFORE DADA2. DADA2 models per-base error rates; leftover
primer/adapter bases corrupt that error model and inflate spurious ASVs. Trim with
cutadapt trim-paired first, then denoise. (If your reads are already primer-free —
e.g. EMP-style — you can skip cutadapt, but verify, don't assume.)
0. Install / activate the environment (conda only — no pip)
QIIME 2 cannot be pip-installed; it ships as a conda environment. For 2026.7 (env files
verified in qiime2/distributions):
# Linux — 2026.7 qiime2 distribution
conda env create \
--name rachis-qiime2-2026.7 \
--file https://raw.githubusercontent.com/qiime2/distributions/refs/heads/dev/2026.7/qiime2/released/rachis-qiime2-linux-64-conda.yml
# macOS: swap the filename for rachis-qiime2-osx-64-conda.yml
conda activate rachis-qiime2-2026.7
qiime info # confirm version + installed plugins
The env file names encode the platform (linux-64, osx-64), not the OS-runner names used
before 2026.4. Give each release its own environment — the classifier must match the running
version, so parallel envs are the norm, not clutter.
For other releases the same pattern applies with the version swapped in both the env name
and the URL path; see the QIIME 2
Library quickstart. Full install detail and the env-file matrix: