Microbiome Diversity Calculator
Calculate OTU-based alpha diversity metrics for microbiome analysis.
Why Compositional Data Needs Care
Sequencing returns relative abundances that sum to one. This has a consequence that trips up most first-time analyses: if one taxon increases, every other must appear to decrease, whether or not its absolute abundance changed at all.
Standard statistical tests assume independent variables. Compositional data violates that assumption, which is why the field uses centred log-ratio transformation or dedicated methods such as ANCOM and ALDEx2 rather than applying ordinary tests to proportions.
| Metric | What it measures | Note |
|---|---|---|
| Shannon H′ | Alpha diversity, sensitive to rare taxa | Requires rarefaction to compare |
| Chao1 | Estimated richness | Lower bound; needs singleton data |
| Bray–Curtis | Beta diversity with abundance | Common default |
| UniFrac | Beta diversity using phylogeny | Weighted or unweighted variants |
OTU or ASV?
| OTU | ASV | |
|---|---|---|
| Definition | Sequences clustered at 97% identity | Exact sequence variants |
| Resolution | Approximate species level | Single nucleotide |
| Comparability | Study-specific clusters | Comparable between studies |
| Status | Legacy | Current standard |
ASVs have largely replaced OTUs because they are defined by the sequence itself rather than by clustering within a particular dataset. That makes them directly comparable across studies and reproducible, whereas OTU boundaries shift depending on what else is in the sample.
Interpreting Diversity Changes
Reduced alpha diversity is a common finding in disease states and is often described as dysbiosis. Two cautions apply: the association is correlational and frequently a consequence of illness rather than a cause, and higher diversity is not universally better — the healthy vaginal microbiome is characteristically low-diversity and Lactobacillus-dominated.
Worked Examples
Common Mistakes
Compositional data sums to a constant, so components are not independent. Use CLR transformation or compositional methods such as ANCOM.
Deeper sequencing detects more taxa. Rarefy to a common depth or use coverage-based standardisation.
The healthy vaginal microbiome is low-diversity by design. Context determines whether diversity is desirable.
Reduced diversity in disease is usually correlational and often a consequence of illness, medication or diet change rather than a driver.