- Introduced by
- Fumio Tajima
- Year
- 1989
- Type
- Neutrality test
- Family
- Hypothesis testing
What does it do?
Tajima's D is a neutrality test that compares two estimates of DNA sequence variation computed from the same polymorphism data: the number of segregating sites and the average number of pairwise differences.
Fumio Tajima introduced it in 1989 as a way to test the neutral mutation hypothesis using polymorphism data alone. A strongly negative D is consistent with a recent selective sweep, but it can also arise from population expansion, so the statistic signals a departure from neutrality rather than identifying selection on its own.
The intuition behind the method
Under neutral evolution, the number of segregating sites and the average pairwise difference between sequences are two estimates of the same underlying variation, and Tajima's D measures how far they diverge. Hitchhiking around a beneficial allele drives linked neutral variants to high frequency or removes them, which skews the site frequency spectrum toward rare variants. Braverman et al. (1995) showed with coalescent-based simulations that under a simple hitchhiking model the expected value of Tajima's D is large and negative. Population expansion also adds rare variants, which is why a negative D does not by itself identify selection. Positive D values, reflecting an excess of intermediate-frequency variants, are often associated with balancing selection or population subdivision.
History
Fumio Tajima introduced the test in 1989 as a method for testing the neutral mutation hypothesis from DNA polymorphism data, using the relationship between the number of segregating sites and the average number of pairwise differences. He applied it to DNA sequence regions of Drosophila melanogaster. Braverman et al. (1995) used coalescent-based simulation to show that the simple hitchhiking model predicts a large negative Tajima's D, and that several observed values were unlikely to arise from that model alone.
When to use it
Choose Tajima's D when you have aligned DNA sequences from one population for a defined region and want to test whether the pattern of polymorphism departs from neutral expectations. It is a useful first screen for regions that may have experienced recent selection or demographic change, before deeper analysis. The test is calibrated against a neutral equilibrium model with no selection and constant population size (Braverman et al., 1995), so departures from that model, such as expansion or subdivision, shift D and must be considered. Avoid relying on it alone when the demographic history is unknown or likely complex, because population expansion or subdivision can produce D values similar to those from selection. Do not use it to conclude that a specific sweep occurred without a second test or demographic modelling. Its power is also limited in regions of normal or high recombination, where the hitchhiking effect can be confined to a region under 1 kb (Fay & Wu, 2000), so a single-window D may miss a sweep; in low-recombination regions there is little variation to test.
Limitations and considerations
- A negative D from a recent sweep and one from population expansion look similar, so the statistic alone cannot separate selection from demography
- Power is limited when the sample is small or the genomic region is short, because the two estimates of variation carry little information
- Recombination limits the footprint of a sweep to a small region and erodes the skew in the frequency spectrum, which weakens the signal (Fay & Wu, 2000)
- Population structure inflates false positives when the test is applied as if the sample came from one well-mixed population
- D identifies a departure from neutrality but does not identify the selected site or the nature of the advantage
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Requires only aligned sequence data, with no need to specify a selection model
- Built on the contrast between two standard estimates of variation, so the test is easy to interpret against neutral expectations
- Under a simple hitchhiking model, the expected D is large and negative, giving a directional prediction for sweeps (Braverman et al., 1995)
Applications
- For example, scanning genomes of geographically distinct human populations for signatures of recent positive selection
- For example, detecting adaptive evolution in crop improvement programs by identifying sweeps in selection-rich intervals
- For example, monitoring pathogen genomes during epidemics to identify emerging resistant strains under selection
- For example, analysing insecticide resistance alleles in mosquitoes and other vectors to track the spread of advantageous mutations
- For example, comparing wild and domesticated populations to identify genes under artificial or natural selection
How it works
How it works
Collect aligned DNA sequences from a single population for one genomic region. Sample size affects power: the two estimates of variation are strongly correlated in small samples, and this correlation decreases only slowly as the sample grows (Tajima, 1989). Assess whether the sample is adequate for the dataset at hand.
Align sequences precisely and identify all segregating sites (polymorphic positions). Remove sites with missing data or obvious genotyping errors.
Calculate two measures of sequence variation: the number of segregating sites (S) and the average number of pairwise differences (π). Under neutrality these two estimates should agree in expectation.
D is computed from the difference between the two estimates of variation, scaled by an estimate of its standard deviation under the neutral model. The full expression and its variance coefficients are derived in Tajima (1989).
Compare D with its null distribution under neutrality, which Tajima obtained by computer simulation (1989). Significance is judged against a chosen tail probability, and the cut-off is read from that null distribution rather than from qualitative descriptions of D. A significantly negative D is consistent with recent positive selection or population expansion, and a significantly positive D is often associated with balancing selection or population subdivision. Read the result together with demographic information.
Common pitfalls
- Ignoring demographic history: expansion or subdivision can produce significant D values that resemble a sweep
- Applying a single-window D to recombination-rich regions, where the hitchhiking effect can be confined to under 1 kb, so a sweep may fall between windows (Fay & Wu, 2000)
- Scanning whole genomes without correcting for multiple testing, which produces spurious significant regions
- Treating a negative D as evidence of a specific sweep without checking it against a second statistic that targets a different aspect of the frequency spectrum, such as Fay and Wu's H, which measures excess high-frequency derived variants (Fay & Wu, 2000)
Frequently asked questions
What does a negative Tajima's D value indicate?
A negative D indicates an excess of rare alleles relative to intermediate-frequency variants. This is consistent with recent positive selection (a sweep) or recent population expansion, since both increase the proportion of rare, newly arising mutations.
Can Tajima's D distinguish between selection and demographic change?
Not on its own. Both recent selection and population expansion can produce negative D values. Distinguishing them requires additional statistics designed for a different aspect of the frequency spectrum, such as Fay and Wu's H, which measures the excess of high-frequency derived variants that hitchhiking produces (Fay & Wu, 2000), or explicit demographic modelling. Several neutrality tests applied together give firmer inference than any single one.
How many sequences are needed for a reliable Tajima's D test?
Sample size affects power: the two estimates of variation are strongly correlated in small samples, and that correlation decreases only slowly as the sample grows (Tajima, 1989). Power also depends on the dataset, so assess whether the sample is adequate for the region and data under study.
Does recombination affect the interpretation of Tajima's D?
Yes. Recombination breaks linkage and erodes the sweep signature over time. A region that experienced a strong sweep may show a weaker signal if recombination has reshuffled alleles since the sweep occurred.
Related methods
Sources
Tajima, F. (1989). Statistical method for testing the neutral mutation hypothesis by DNA polymorphism. Genetics, 123(3), 585–595.
Open DOI referenceBraverman, J. M., Hudson, R. R., Kaplan, N. L., Langley, C. H., & Stephan, W. (1995). The hitchhiking effect on the site frequency spectrum of DNA polymorphisms. Genetics, 140(2), 783–796.
Open DOI referenceFay, J. C., & Wu, C. I. (2000). Hitchhiking under positive Darwinian selection. Genetics, 155(3), 1405–1413.
Open DOI reference