HKA Test

Research
Introduced by
Richard Hudson, Martin Kreitman & Montserrat Aguade
Year
1987
Type
Statistical test
Family
Polymorphism testing

What does it do?

The Hudson-Kreitman-Aguadé (HKA) test is a statistical test of neutral molecular evolution.

It compares within-species polymorphism and between-species divergence across several loci, asking whether each locus follows the pattern expected under a constant-rate neutral model. Loci that depart from that pattern are candidates for selection. Because the test compares loci against one another, it does not need an externally calibrated mutation rate.

The intuition behind the method

Under neutrality, a locus with a high mutation rate tends to show both high polymorphism within a species and high divergence between species, and a locus with a low mutation rate tends to show low values for both. The ratio of polymorphism to divergence should therefore be similar across neutral loci. A locus under recent positive selection can lose variation within a species while its divergence from another species is not reduced in the same way, which lowers its polymorphism-to-divergence ratio relative to other loci. A locus under balancing selection can keep several alleles at appreciable frequency, which raises its polymorphism. The HKA test looks for loci whose ratios depart from the common neutral pattern.

History

Hudson, Kreitman, and Aguadé published the test in 1987 in Genetics. In the original paper, they applied it to the Adh region and the 5′ flanking sequence of Drosophila melanogaster and Drosophila sechellia, rejected the constant-rate neutral model for that data, and reported that the departure was consistent with balanced polymorphism in the coding region. The test as described on this page follows that original formulation.

When to use it

Use the HKA test when you have sequence data from several loci in two closely related species and want to identify loci whose polymorphism and divergence depart from neutral expectations. It is most useful as one part of a genome-wide screen, where many loci are compared with each other. It assumes that the neutral pattern is shared across loci, so it works best when the loci are expected to evolve under similar neutral conditions. Avoid it when the species are very distantly related, because multiple substitutions at a site blur the divergence measure, and when recent admixture or gene flow is likely, because these alter the polymorphism-divergence relationship.

Limitations and considerations

  • Requires polymorphism data from at least one species plus interspecific comparisons across at least two regions, which is more laborious than single-locus approaches
  • Power depends on the number of segregating sites; loci with few polymorphic sites contribute little information
  • Assumes a constant-rate neutral model shared across loci, so strong mutation-rate differences among loci can make the neutral baseline harder to fit
  • Cannot by itself distinguish between different kinds of selection or between selection and demographic history
  • Sensitive to recent admixture or gene flow, which alter the polymorphism-divergence relationship

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Compares several loci at once, so the test draws on the whole dataset rather than a single locus
  • Does not require an externally calibrated mutation rate, because the neutral parameters are estimated from the data
  • Can flag departures from neutrality consistent with positive selection or with balancing selection, as in the original Drosophila analysis
  • Is described in the original paper as a conservative test, so significant results are less likely to arise from the test's own assumptions

Applications

  • Comparing sequences from the Adh region and its 5′ flanking sequence between Drosophila melanogaster and Drosophila sechellia, as in the original study
  • Screening several loci in a pair of closely related species for those whose polymorphism departs from the neutral pattern
  • Checking whether an outlier locus shows a pattern consistent with balancing selection rather than positive selection
  • Testing whether a pattern of polymorphism and divergence across loci is compatible with a constant-rate neutral model before interpreting any single locus

How it works

How it works

1

Sample sequences from at least two genomic regions in two closely related species, so that divergence between the species can be measured for each region. Intraspecific polymorphism data from the same regions are needed from at least one of the species. The number of regions and the number of segregating sites in each region both affect how much information the test has.

2

Align sequences carefully and identify the polymorphic sites within each species. Count the fixed differences between the species at each locus, and check that the data are complete enough to compute both quantities for every locus.

3

At each locus, compute within-species polymorphism and between-species divergence. Compare the polymorphism-to-divergence pattern across loci and identify loci that deviate from the rest.

4

Fit a constant-rate neutral model to the whole dataset. This estimates the parameters the neutral expectation requires, including the scaling between polymorphism and divergence, from the data themselves. For each locus, the observed polymorphism and divergence are then compared with the values expected under the fitted model, and a locus that fits poorly is flagged as a departure from neutrality. The original 1987 paper presents this as a conservative test, meaning that it is less likely to reject neutrality than a more liberal test would be. Use the exact test statistic and its null distribution as specified in the original paper.

5

A locus with significantly lower polymorphism than its divergence suggests a footprint of recent positive selection. A locus with significantly higher polymorphism than expected suggests balancing selection or other processes that maintain variation. Deviation is judged by a significance test of each locus against the fitted neutral model. Because many loci are usually tested together, the significance threshold should be corrected for multiple comparisons, since some loci will depart from the neutral model by chance. Demographic processes such as admixture can produce similar departures, so a significant deviation is a candidate signal that calls for follow-up, not proof of selection.

Common pitfalls

  • Including loci that are physically linked to a selected site: linked neutral sites can share the signal, so the test cannot separate the selected locus from its neighbours on its own
  • Keeping loci with very little polymorphism, which add noise and weak information to the neutral fit
  • Treating an outlier locus as selected without functional follow-up or a check of demographic alternatives
  • Using divergence estimates that depend on an uncertain divergence time or a poorly chosen outgroup, which can shift the neutral expectation

Frequently asked questions

What is the expected polymorphism-divergence relationship under neutrality?

Under a constant-rate neutral model, the polymorphism and divergence at a locus both reflect its mutation rate, so the ratio of polymorphism to divergence should be similar across neutral loci. A locus whose ratio departs strongly from the others is a candidate for selection, but the test is comparative: it looks at the pattern across loci rather than at absolute values.

How many loci are needed for a reliable HKA test?

The original formulation requires at least two regions for the interspecific comparison. No fixed minimum number of loci is given here. More regions and more segregating sites per region give the neutral fit more information and make it easier to see which loci depart from the common pattern. Whether a particular dataset is adequate should be judged for that dataset, for example by checking how many polymorphic sites each locus contributes.

Can the HKA test detect selection at linked loci?

Not on its own. Selection at one site reduces variation at nearby neutral sites through linkage, so a neutral locus close to a selected site can also deviate from the neutral pattern. The test does not by itself identify which of the linked loci is the target of selection.

What if polymorphism and divergence are uncorrelated across loci?

Weak or absent correlation can reflect large differences in mutation rates among loci, complex demographic history, or both. In such cases the constant-rate neutral model fits poorly, so a locus that looks deviant may reflect the model failing rather than selection. Additional loci or independent information about demography are needed before interpreting individual loci.

Related methods

Sources

  1. Hudson, R. R., Kreitman, M., & Aguadé, M. (1987). A test of neutral molecular evolution based on nucleotide data. Genetics, 116(1), 153–159.

    Open DOI reference
  2. Wakeley, J., Nielsen, R., Liu-Cordova, S. N., & Ardlie, K. (2012). The discovery of single-nucleotide polymorphisms and inferences about human demographic history. American Journal of Human Genetics, 69(6), 1332–1347.

    Open publication reference
  3. Biswas, S., & Akey, J. M. (2006). Genome-wide scan for selection on derived alleles. Evolutionary Biology, 36(1), 64–79.

    Open publication reference