Inferensys

Glossary

MetaPhlAn

A computational tool for profiling the composition of microbial communities from metagenomic shotgun sequencing data by mapping reads against a database of clade-specific, universal single-copy marker genes to estimate species-level relative abundance.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
Metagenomic Phylogenetic Analysis

What is MetaPhlAn?

MetaPhlAn is a computational tool for profiling the taxonomic composition of microbial communities directly from metagenomic shotgun sequencing data by mapping reads against a curated database of clade-specific, universal single-copy marker genes to estimate species-level relative abundance.

MetaPhlAn (Metagenomic Phylogenetic Analysis) performs marker gene analysis by aligning sequencing reads to a predefined catalog of approximately one million unique, clade-specific marker genes derived from over 100,000 reference genomes. Unlike k-mer-based classifiers such as Kraken2, MetaPhlAn estimates relative abundance by counting reads mapped to these universal single-copy genes, providing a direct measure of taxonomic representation without requiring whole-genome coverage.

The tool achieves strain-level resolution by tracking species-specific genomic variants within its marker gene database, enabling the detection of subspecies and tracking of epidemiologically relevant lineages. MetaPhlAn's output integrates seamlessly with downstream tools like HUMAnN for functional profiling, and its low computational footprint makes it suitable for large-scale population studies where rapid, accurate quantification of microbial community structure is required.

MARKER GENE PROFILING

Key Features of MetaPhlAn

MetaPhlAn (Metagenomic Phylogenetic Analysis) estimates microbial community composition by mapping reads against a curated database of clade-specific, single-copy marker genes, delivering species-level relative abundance without assembly.

01

Clade-Specific Marker Gene Database

MetaPhlAn relies on a curated catalog of universal single-copy marker genes that are uniquely specific to individual microbial clades. Unlike k-mer approaches, this strategy avoids ambiguous read assignments by targeting genomic regions that are both ubiquitous within a clade and absent from others. The database is built from sequenced isolate genomes, with markers selected through a rigorous pipeline that identifies genes present in ≥90% of target clade genomes and absent in outgroup genomes. This gene-centric rather than whole-genome approach dramatically reduces computational overhead while maintaining high taxonomic resolution.

~1M
Unique Marker Genes
99.9%
Clade Specificity
02

Species-Level Resolution via Read Mapping

MetaPhlAn achieves strain-level and species-level resolution by mapping shotgun metagenomic reads directly to its marker gene database using Bowtie2. The algorithm normalizes mapped read counts by marker gene length and single-copy status to compute relative abundance for each detected clade. This mapping-first approach enables detection of organisms present at abundances as low as 0.01%, making it suitable for low-biomass samples. The output is a community composition table directly comparable across samples without the need for assembly or binning.

0.01%
Detection Limit
Species
Taxonomic Resolution
03

Strain-Level Profiling with StrainPhlAn

The companion tool StrainPhlAn extends MetaPhlAn's capabilities to sub-species strain tracking. It reconstructs consensus sequences for dominant species by extracting and concatenating species-specific marker genes, then performs multiple sequence alignment across samples. This enables phylogenetic placement of strains, tracking transmission events, and distinguishing closely related variants within a species. StrainPhlAn is widely used in outbreak investigations and longitudinal microbiome studies to monitor strain persistence and replacement dynamics.

SNP-level
Strain Discrimination
Phylogenetic
Output Format
04

Computational Efficiency Without Assembly

MetaPhlAn bypasses the computationally expensive steps of metagenomic assembly and binning by operating directly on raw sequencing reads. The marker gene database is compact, and read mapping with Bowtie2 is highly optimized. This design enables profiling of hundreds of samples in hours on standard hardware, compared to assembly-based workflows that require days and substantial memory. The trade-off is that MetaPhlAn does not recover novel genomes or functional gene content, focusing exclusively on taxonomic composition.

< 1 hr
Per Sample Runtime
~2 GB
Database Size
05

Pan-Genome and Functional Profiling with HUMAnN

MetaPhlAn integrates with HUMAnN (HMP Unified Metabolic Analysis Network) to provide functional profiling. While MetaPhlAn identifies which organisms are present, HUMAnN maps reads to pangenome and pathway databases to quantify gene families and metabolic pathways. The integration uses MetaPhlAn's abundance estimates to perform species-level functional contribution analysis, attributing specific metabolic functions to their source organisms. This layered approach answers both 'who is there?' and 'what are they doing?' in a single workflow.

MetaCyc
Pathway Database
UniRef90
Gene Family Clusters
06

Versioned Database and Reproducibility

MetaPhlAn maintains strict database versioning to ensure computational reproducibility across studies. Each release (e.g., MetaPhlAn 4.0) includes an expanded set of marker genes derived from an updated collection of reference genomes. The marker selection algorithm is deterministic and documented, allowing researchers to reproduce exact abundance profiles by specifying the database version. This versioning is critical for longitudinal studies and meta-analyses where consistent taxonomic definitions must be maintained across time points and cohorts.

v4.0
Latest Major Release
26,970
Reference Genomes
METAPHLAN EXPLAINED

Frequently Asked Questions

Clear, technical answers to the most common questions about MetaPhlAn's methodology, use cases, and how it compares to other metagenomic profiling tools.

MetaPhlAn (Metagenomic Phylogenetic Analysis) is a computational tool for profiling the taxonomic composition of microbial communities directly from metagenomic shotgun sequencing data. It works by mapping sequencing reads against a curated database of ~1 million clade-specific, universal single-copy marker genes, rather than using universal markers like the 16S rRNA gene or whole-genome alignment. This marker gene approach allows MetaPhlAn to estimate species-level relative abundance with high accuracy and computational efficiency. The tool identifies a set of genes that are unique to each clade and present in a single copy across all genomes within that clade, enabling it to quantify the abundance of each taxon by counting the reads that map to its specific markers. The current version, MetaPhlAn 4, leverages an expanded marker database and a refined statistical framework to achieve strain-level resolution for many species, distinguishing closely related variants that may have distinct functional roles.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.