TL;DR
An operational taxonomic unit (OTU) is a group of DNA sequences that are similar enough to be treated as one unit. Researchers use it when they sequence a marker gene from many samples and the species in them are unknown or cannot be named. Sequences are compared pairwise, and those above a chosen similarity threshold are grouped together. Counting how many reads fall in each group gives a profile of the community, even though the groups are defined by a rule rather than by biology.
Builds on: Edit Distance, Hierarchical Clustering · Leads to: denoised sequence variants, Phylogenetic Tree
Where it's used
Gut and soil microbiomes. A study of the gut of many people, or of a patch of soil, extracts DNA from each sample and copies one marker gene with the polymerase chain reaction. The marker is the 16S ribosomal RNA gene, which is present in bacteria and archaea and accumulates mutations slowly enough to compare across them. The copies are read on a sequencing machine, and the reads are grouped into OTUs. Each sample then becomes a table of OTU counts, which can be compared across samples.
Environmental surveys. Water from a lake or a river is sampled at several points and seasons. Clustering the marker-gene reads into OTUs shows which groups of microbes are present, and how their counts change from site to site, without first needing a name for each group.
Comparing studies. Because OTUs are defined by a threshold and a method, two labs that use the same rule can compare their tables, while labs that use different rules cannot. Results are only comparable when the threshold and pipeline are reported with them.
How it works
The walkthrough uses four short reads of a marker gene, each 10 bases long and already aligned so that position in one read matches position in the others. The reads are:
- r1 = ACGTACGTAC
- r2 = ACGTACGTAA
- r3 = ACGTTCGTAA
- r4 = TTGAACCGTA
Each pair is compared by counting mismatched positions. The distance is the number of mismatches divided by the length, so the identity of two reads is 1 minus the distance.
flowchart LR R[Marker-gene reads] --> A[Line up the reads to one length] A --> D[Count mismatches for each pair] D --> C[Cluster by distance] C --> T[Cut at the identity threshold] T --> O[OTUs and counts per sample]
-
Start with the reads. There are four reads of length 10, all lined up. Check: every read has exactly 10 bases.
-
Count mismatches for the close pairs. Comparing r1 and r2, only the last base differs (C against A), so there is 1 mismatch and the distance is 0.1. Comparing r2 and r3, only position 5 differs (A against T), so the distance is 0.1. Comparing r1 and r3, positions 5 and 10 differ, so the distance is 0.2. Check: r1 and r3 differ at exactly two positions.
-
Count mismatches for the far pairs. r1 against r4 has 7 mismatches (distance 0.7). r2 against r4 has 6 (distance 0.6). r3 against r4 has 7 (distance 0.7). Check: the far read shares few positions with the others, so its distances are large.
-
Cluster. Use single linkage, as in Hierarchical Clustering. The closest pair is r1 with r2 at distance 0.1, so merge them at height 0.1. The group {r1, r2} is at distance 0.1 from r3, so merge r3 in at height 0.1. Last, the group {r1, r2, r3} is at distance 0.6 from r4, so r4 joins at height 0.6. Check: three merges for four reads.
-
Cut at the threshold. Choose a cut of 0.15, which means an identity of at least 85 percent for this short read. Only the merges at 0.1 lie below the cut, so the groups are {r1, r2, r3} and {r4}. Check: the merge at 0.6 is above the cut, so r4 stays alone. The first group is OTU 1 and the second is OTU 2. Each read is now counted once, in one OTU.
The math
Let and be two aligned reads of length , and let be the number of positions where they differ. Their distance is , and their identity is . Given a threshold , an OTU is a cluster produced by hierarchical clustering on , cut at height (equivalently, identity at least ).
Here counts mismatched positions only. It is a restricted edit distance that allows substitutions but not insertions or deletions, which is valid once the reads have been aligned to a common length.
Step 2 in symbols: pairwise distances
For the four reads, and , while . The full set of distances is the symmetric matrix that the clustering step reads.
Step 4 in symbols: the single-linkage merges
With single linkage the distance between two groups is the smallest pairwise distance. So , and . The merge heights are .
Step 5 in symbols: cutting and counting
The usual species-level convention is a 97 percent identity threshold, which corresponds to . With this rule, every OTU and sample has a count , the number of reads from sample that fall in OTU . The relative abundance is
The abundances in each sample add to 1. They are the quantities that community comparisons, such as diversity indices, are built from.
Worked examples
Take a = ACGTACGT, b = ACGTACGA and c = TTTTACGT, with a threshold of 0.15.
- a against b: the last base differs (T against A), so there is 1 mismatch. The distance is , and the identity is .
- a against c: positions 1, 2 and 3 differ (A, C and G against T, T and T), so there are 3 mismatches. The distance is .
- b against c: positions 1, 2, 3 and 8 differ, so there are 4 mismatches. The distance is .
- Merge the closest pair, a and b, at 0.125. That is below the cut of 0.15, so they form one group. The distance from {a, b} to c is , which is above the cut.
- Interpretation: a and b form OTU 1, and c forms OTU 2. One mismatch in eight bases is enough to keep two reads together under this threshold, but three mismatches are not.
Amplicon reads are often about 250 bases long. At a 97 percent threshold the cut is mismatches, so reads with at most 7 mismatches join the same OTU.
- Read X and read Y differ at 7 positions. Their identity is , which is at least 0.97, so they join the same OTU.
- Read Z differs from X at 8 positions. Its identity is , which is below 0.97, so Z starts its own OTU.
- Check the boundary directly: 7 mismatches is , and 8 mismatches is . The cut falls between them.
- Interpretation: a single-base difference is nothing, and an 8-base difference is treated as a different organism. The exact boundary is a convention, so a reader should check which threshold a study used before comparing its OTUs with another study.
A gut sample yields 1,000 reads after quality filtering. Clustering places them in three OTUs with 620 reads in OTU 1, 280 in OTU 2 and 100 in OTU 3.
- The total is , which matches the number of reads.
- The relative abundances are , and . They add to 1.
- Two samples from the same person on different days can be compared by these proportions. A shift from 0.62 to 0.40 in OTU 1 is a change in that OTU's share of the reads, which can reflect a real change in the community or a difference in sampling.
- Interpretation: the table describes the sample's composition. It does not say how many species are present, because one OTU may hold several species and one species may split into several OTUs.
Try it: a 250-base read differs from the centre of OTU 2 at 9 positions. Does it join OTU 2 at the 97 percent threshold?
Answer: its identity is , which is below 0.97. It does not join OTU 2 and starts a new OTU.
Common mistakes and tradeoffs
Mistake 1: "An OTU is a species." It is tempting to read each OTU as one organism. In fact it is a group defined by a threshold. One species can carry several different copies of the marker gene and appear as more than one OTU, and two species with very similar marker genes can fall into one OTU.
Mistake 2: "A sequencing error does not matter." It is tempting to think a single wrong base in a read is harmless. In fact each error can create an apparent new OTU with a tiny count, which inflates the number of OTUs. This is why methods such as DADA2 model the error process and produce sequence variants rather than threshold clusters.
Mistake 3: "Any high-similarity read belongs in the same group." It is tempting to merge everything that looks alike. In fact PCR can join two different parent sequences into a chimeric read, which looks like a new organism. Chimeras must be detected and removed before clustering.
Mistake 4: "The threshold is a law of nature." It is tempting to treat 97 percent as correct. In fact it is a convention. A lower threshold merges more reads and gives fewer, broader OTUs. A higher threshold splits more and is more sensitive to errors.
When to use it: surveys of marker genes across many samples, where a fast, reproducible grouping is more useful than exact names. When not to use it: when strain-level or exact sequence differences matter, where amplicon sequence variants or phylogenetic methods (see Phylogenetic Tree) are better. Alternatives: denoised sequence variants, which keep exact sequences; and k-means, which needs the number of groups fixed in advance.
History
Biologists used numerical taxonomy in the 1950s and 1960s to group specimens by measured similarity rather than by named species. The school of Robert Sokal and Peter Sneath set out this approach in their 1963 book Principles of Numerical Taxonomy, and the idea of a group defined for the purposes of a study comes from that tradition.
In 1977 Carl Woese and George Fox used the sequence of the small ribosomal RNA to show that prokaryotes contain deep lineages, including the archaea, which had been grouped with bacteria. That made a conserved ribosomal gene a standard tool for comparing organisms that cannot be cultured or named.
In the 1990s, a similarity threshold of about 97 percent in this gene was proposed as a rough stand-in for a species. In the 2000s, sequencing machines produced very large numbers of reads at low cost, and clustering the marker gene into OTUs became a routine step in microbiome surveys. The method caught on because it works without a reference catalogue of named species, which most environments lack.
Recap
- An OTU is a group of similar marker-gene sequences formed by a threshold.
- Pairwise distance is the number of mismatches divided by the length, and identity is 1 minus that distance.
- Clustering the distances, then cutting at the threshold, gives the OTUs.
- Counting reads per OTU in each sample gives relative abundances, which are the basis of comparisons.
- Sequencing errors and chimeras can create false OTUs, and the threshold is a convention to be reported.
Read next: DADA2 for denoised sequence variants that avoid the threshold, Chimeric Sequence for the artefacts that clustering must remove, and Phylogenetic Tree for how the groups relate to one another.
Check yourself
QuestionRecall: what is the identity of two aligned reads, given their distance?Show answer
The identity is 1 minus the distance, where the distance is the number of mismatched positions divided by the read length. A distance of 0.03 gives an identity of 0.97.
QuestionComputation: two aligned reads of length 200 differ at 6 positions. Are they in the same OTU at the 97 percent threshold?Show answer
The distance is , so the identity is . That is exactly at the threshold, so they fall in the same OTU, since the cut keeps merges at distance 0.03 or less. A seventh mismatch would give and separate them.
QuestionWhy: why can a single sequencing error inflate the number of OTUs, and what does that imply for interpreting a sample?Show answer
A read with an error sits at a small but nonzero distance from its true sequence. If its count is low, it may fall outside the threshold of the main group and form a new OTU with only a few reads. Many such OTUs make the table look more diverse than the community is, so diversity estimates from raw OTU counts should be treated with care.
QuestionApplied: a lab reports OTUs at 97 percent identity and another lab reports OTUs at 99 percent on the same kind of reads. A reader wants to compare their species counts. What should the reader check, and why?Show answer
The reader should check that the two studies used the same threshold and pipeline, and should not treat the OTU counts as species counts. At 99 percent identity each group is narrower, so there are usually more OTUs for the same sample, even though the community is unchanged. Comparing counts across thresholds would mislead, so the reader should either reprocess both datasets with one rule or compare them only through their shared definitions.