Written and maintained by CASRAI Editorial Board
Last updated
Short Answer
QIIME 2 (Quantitative Insights Into Microbial Ecology 2) is an open-source bioinformatics platform for microbiome sequencing analysis. Re-engineered from QIIME 1, it packages data into semantic artifacts (.qza) and interactive visualizations (.qzv), automatically recording computational provenance to ensure reproducible research across high-throughput marker-gene and metagenomic studies.
Definition and Scope of QIIME 2
QIIME 2 (Quantitative Insights Into Microbial Ecology 2) is an extensible bioinformatics platform for microbiome data science. First introduced as QIIME 1 by Caporaso et al. (2010) and re-engineered by Bolyen et al. (2019) in Nature Biotechnology, QIIME 2 succeeded its predecessor following the official retirement of QIIME 1 in January 2018.
The platform eliminates reproducibility bottlenecks in high-throughput sequencing by packaging data into immutable archives with cryptographic provenance tracking. Its core scope spans three primary applications:
- Amplicon Sequencing: Profiling bacterial 16S rRNA, eukaryotic 18S rRNA, and fungal ITS marker genes.
- Shotgun Metagenomics: Profiling whole-community genomic DNA for functional and taxonomic analysis.
- Metatranscriptomics and Metabolomics: Integrating community RNA expression and mass spectrometry profiles with microbiome features.
How QIIME 2 Works in Practice
A typical QIIME 2 analysis moves through five standardized phases:
1. Data Import and Metadata Validation
Raw FASTQ reads are imported into an immutable artifact. Investigators supply a tab-delimited sample metadata file defining experimental variables. QIIME 2 validates column headers (such as #q2:types directives), preventing syntax errors downstream. For guidance on structured headers, consult our guide to choosing a metadata schema for a dataset.
2. Quality Control and Denoising
Denoising plugins like DADA2 (q2-dada2) and Deblur (q2-deblur) replace legacy 97% clustering. DADA2 models sequencing errors, removes chimeras, and resolves exact Amplicon Sequence Variants (ASVs). This step outputs a count matrix (FeatureTable[Frequency]) and biological sequences (FeatureData[Sequence]).
3. Taxonomic Classification
ASVs are assigned taxonomies using machine learning classifiers via q2-feature-classifier, trained on reference databases like SILVA or Greengenes2. The resulting FeatureData[Taxonomy] feeds interactive relative abundance bar plots.
4. Phylogenetic Reconstruction
Sequences undergo multiple sequence alignment using MAFFT via q2-alignment, followed by masking. FastTree then generates a rooted phylogenetic tree via q2-phylogeny. Researchers curating alignments before tree building can inspect alignments with Jalview.
5. Ecological Diversity and Statistical Testing
The q2-diversity plugin computes within-sample (alpha) and between-sample (beta) diversity on rarefied tables. Alpha metrics (Shannon index, Faith’s PD) measure richness; beta metrics (Bray-Curtis, UniFrac) measure composition divergence, visualized interactively in Emperor PCoA 3D plots. Group hypotheses are tested using PERMANOVA and ANCOM-BC, similar to distance matrices used in single-cell RNA sequencing.
Core File Types and Architectural Concepts
QIIME 2 separates computational data structures, visual outputs, and execution actions into standardized units:
| Component | File Extension | Primary Function | Workflow Role | Representative Example |
|---|---|---|---|---|
| Artifact | .qza | Compressed archive storing scientific data, format schemas, and provenance DAG | Input and output for methods | FeatureTable[Frequency] |
| Visualization | .qzv | Compressed archive containing interactive HTML/JS reports and plots | Terminal output for human inspection only | Emperor PCoA 3D plots |
| Method Action | N/A | Atomic algorithm transforming artifacts into new artifacts | Transforms data within the pipeline | q2-dada2 denoise-paired |
| Visualizer Action | N/A | Function generating an interactive visualization from artifacts | Produces human-readable summaries | q2-taxa barplot |
| Pipeline Action | N/A | Composite workflow combining multiple methods and visualizers | Executes multi-step standard routines | q2-diversity core-metrics-phylogenetic |
Semantic Type System
Every artifact carries an explicit semantic type (such as SampleData[PairedEndSequencesWithQuality]). Semantic typing enforces safety: passing unaligned sequences into a tree builder immediately triggers a type error before wasting compute cycles.
Automated Computational Provenance
Every .qza and .qzv file embeds a Directed Acyclic Graph (DAG) recording every upstream command, parameter value, software version, and timestamp. Researchers can parse provenance using provenance-lib or qiime tools replay to regenerate scripts or BibTeX citations, supporting audit-ready drafting of a data availability statement for reproducibility.
Where QIIME 2 Matters for Research and Lab Operations
For research laboratories and sequencing cores, QIIME 2 standardizes operational governance:
- Standardized SOPs: In multi-center cohort studies, identical containerized QIIME 2 pipelines (Docker, Singularity) ensure identical processing across facilities.
- Bench and Bioinformatic Collaboration: Wet-lab personnel can drag
.qzvfiles into QIIME 2 View (view.qiime2.org) in a web browser without command-line tools to evaluate demultiplexing yields and base-call quality decay, helping refine upstream bench protocols or primer design parameters in Primer3. - Infrastructure Planning: DADA2 sequence denoising requires substantial multi-core CPU capacity and memory for error matrices, while downstream diversity calculations execute with minimal RAM.
- Publication Compliance: Cryptographically verified provenance DAGs eliminate reliance on handwritten logs and provide verifiable audit trails for peer-reviewed journals.
Common Misunderstandings About QIIME 2
Several misconceptions affect teams adopting QIIME 2:
- Misconception 1: QIIME 2 locks data into proprietary formats. Reality: Artifacts (
.qza) and visualizations (.qzv) are standard zip archives. Runningqiime tools exportorunzipextracts plain FASTQ, FASTA, BIOM, and Newick files for analysis in R (phyloseq,vegan) or Python. - Misconception 2: ASVs and 97% OTUs yield identical conclusions. Reality: 97% OTU clustering obscures strain-level biological variations and groups sequencing errors. DADA2 and Deblur resolve exact single-nucleotide variants.
- Misconception 3: Visualizations (.qzv) can feed downstream statistical methods. Reality: Visualizations are terminal endpoints. Subsequent statistical models require the underlying artifact (
.qza). - Misconception 4: Rarefaction depth can be picked arbitrarily. Reality: Subsampling without evaluating alpha rarefaction curves risks discarding valid samples or missing biodiversity plateaus.
- Misconception 5: Exporting data mid-analysis is harmless. Reality: Exporting intermediate files to run outside scripts and re-importing breaks the continuous provenance DAG, forfeiting auditability.
Frequently Asked Questions
What is the difference between a .qza and a .qzv file?
A .qza file is an Artifact containing scientific data and provenance that serves as an input or intermediate output for methods. A .qzv file is a Visualization containing interactive HTML reports and plots designed solely for human inspection.
How does QIIME 2 ensure computational reproducibility?
Every archive embeds a Directed Acyclic Graph (DAG) detailing all upstream commands, parameter values, software versions, and runtime environments. Investigators can inspect this history visually on QIIME 2 View or reproduce workflows via provenance-lib.
Can researchers view QIIME 2 results without installing the software?
Yes. Uploading any .qza or .qzv file to view.qiime2.org in a browser renders interactive plots, tables, and provenance graphs locally without local software installation.
Can QIIME 2 artifacts be analyzed in R or Python?
Yes. Data can be accessed programmatically using the Python Artifact API or exported to standard formats (BIOM, Newick, FASTA) using qiime tools export. In R, tools like qiime2R read artifacts directly into phyloseq.
Why was QIIME 1 retired in favor of QIIME 2?
QIIME 1 relied on Python 2 scripts and flat files that lacked automated provenance tracking and semantic type validation. QIIME 2 re-architected the platform with decentralized provenance, interactive visualizers, modular plugins, and full Python 3 compatibility.
Sources
- Bolyen, E., Rideout, J.R., Dillon, M.R., Bokulich, N.A., Abnet, C.C., Al-Ghalith, G.A., Alexander, H., Alm, E.J., Asnicar, F., Bifarin, O., et al. (2019). Reproducible, interactive, scalable and extensible microbiome data science using QIIME 2. Nature Biotechnology, 37(8), 852–857. DOI: https://doi.org/10.1038/s41587-019-0209-9 (Read 2026-11-08).
- Caporaso, J.G., Kuczynski, J., Stombaugh, J., Bittinger, K., Bushman, F.D., Costello, E.K., Fierer, N., Peña, A.G., Goodrich, J.K., Gordon, J.I., et al. (2010). QIIME allows analysis of high-throughput community sequencing data. Nature Methods, 7(5), 335–336. DOI: https://doi.org/10.1038/nmeth.f.303 (Read 2026-11-08).
- QIIME 2 Development Team. (2024). Core Concepts and Overview of Plugin Workflows. QIIME 2 Documentation. URL: https://docs.qiime2.org/ (Read 2026-11-08).







