Algorithm Search⌘K

Definitionintro

Allele frequency

Also called gene frequency.

The fraction of copies of a gene in a population that carry a given allele, the basic state variable of population genetics.

The allele frequency of an allele is the share of all gene copies at one locus that are copies of that allele. It is a number between 0 and 1, and the frequencies of all alleles at the locus sum to 1. Population genetics describes evolution at a locus mostly as the change of these numbers over time, by drift, selection, mutation and migration.

Definition

Take one locus in a population of NN diploid individuals. Each individual carries two copies of the locus, so the population holds 2N2N gene copies. Let the alleles at the locus be A1,…,AkA_1, \ldots, A_k.

Allele frequency. The frequency of AiA_i is

pi=number of copies of Ai2N.p_i = \frac{\text{number of copies of } A_i}{2N}.

So 0≤pi≤10 \le p_i \le 1 and p1+⋯+pk=1p_1 + \cdots + p_k = 1. For a biallelic locus with alleles AA and aa, this page writes pp for the frequency of AA and q=1−pq = 1 - p for the frequency of aa.

From genotype frequencies. Let PijP_{ij} be the fraction of individuals with genotype AiAjA_iA_j (with Pij=PjiP_{ij} = P_{ji} counted once). A homozygote AiAiA_iA_i carries two copies of AiA_i and a heterozygote AiAjA_iA_j carries one, so

pi=Pii+12∑j≠iPij.p_i = P_{ii} + \tfrac{1}{2} \sum_{j \ne i} P_{ij}.

For two alleles this is p=PAA+12PAap = P_{AA} + \tfrac12 P_{Aa}. The map from genotype frequencies to allele frequencies loses information: many genotype vectors give the same pp. The Hardy-Weinberg principle says which genotype vector random mating gives for a given pp.

In a sample. A sample of nn diploid individuals has 2n2n copies. If xx of them are copies of AA, the sample allele frequency is p^=x/(2n)\hat p = x / (2n). With genotype counts nAAn_{AA}, nAan_{Aa} and naan_{aa}, x=2nAA+nAax = 2 n_{AA} + n_{Aa}.

Sampling error. Let g∈{0,1,2}g \in \{0, 1, 2\} be the number of AA copies of one individual drawn at random from a large population. Then E[g]=2p\mathbb E[g] = 2p and Var⁡(g)=4PAA+PAa−4p2\operatorname{Var}(g) = 4P_{AA} + P_{Aa} - 4p^2. With PAa=2(p−PAA)P_{Aa} = 2(p - P_{AA}) and DA=PAA−p2D_A = P_{AA} - p^2, this is Var⁡(g)=2pq+2DA\operatorname{Var}(g) = 2pq + 2D_A. For nn independent individuals, p^=(g1+⋯+gn)/(2n)\hat p = (g_1 + \cdots + g_n)/(2n), so

E[p^]=p,Var⁡(p^)=pq+DA2n.\mathbb E[\hat p] = p, \qquad \operatorname{Var}(\hat p) = \frac{pq + D_A}{2n}.

Under Hardy-Weinberg proportions DA=0D_A = 0, the 2n2n copies are independent, xx has the binomial distribution Binomial(2n,p)\text{Binomial}(2n, p), and the variance is pq/(2n)pq/(2n). With an inbreeding coefficient FF, DA=FpqD_A = Fpq and the variance is pq(1+F)/(2n)pq(1 + F)/(2n): copies inside one individual are correlated, so a sample of nn inbred individuals carries less information than 2n2n independent copies (Weir 1996, chapter 2).

Other ploidies. For a haploid population of NN individuals there are NN copies, and pip_i is the count over NN. For an X-linked locus a female carries two copies and a male carries one, so with nfn_f females and nmn_m males the frequency of AA is (2nf,AA+nf,Aa+nm,A)/(2nf+nm)(2 n_{f,AA} + n_{f,Aa} + n_{m,A}) / (2 n_f + n_m).

Examples and non-examples

  • A sample of 100. Genotype counts 50 AAAA, 30 AaAa and 20 aaaa give x=2⋅50+30=130x = 2 \cdot 50 + 30 = 130 copies of AA out of 200, so p^=0.65\hat p = 0.65 and q^=0.35\hat q = 0.35. Here D^A=0.50−0.652=0.0775\hat D_A = 0.50 - 0.65^2 = 0.0775, so the standard error of p^\hat p is (0.2275+0.0775)/200≈0.0391\sqrt{(0.2275 + 0.0775)/200} \approx 0.0391, against 0.2275/200≈0.0337\sqrt{0.2275/200} \approx 0.0337 under Hardy-Weinberg proportions.
  • Same allele frequency, different genotypes. Population 1 has 25 percent AAAA, 50 percent AaAa and 25 percent aaaa. Population 2 has 50 percent AAAA, no AaAa and 50 percent aaaa. Both have p=0.5p = 0.5. Only population 1 is in Hardy-Weinberg proportions; population 2 could be a mix of two inbred lines.
  • The check value of the area. The sample with 30 AAAA, 40 AaAa and 30 aaaa has p^=(60+40)/200=0.5\hat p = (60 + 40)/200 = 0.5. The Hardy-Weinberg exact test uses this sample as its worked example.
  • Three alleles. The ABO blood group locus has the alleles AA, BB and OO. If 40 people of 100 are AOAO, 10 are ABAB, 20 are BOBO and 30 are OOOO, then pA=(40+10)/200=0.25p_A = (40 + 10)/200 = 0.25, pB=(10+20)/200=0.15p_B = (10 + 20)/200 = 0.15 and pO=(40+20+60)/200=0.60p_O = (40 + 20 + 60)/200 = 0.60. In practice the genotypes AAAA and AOAO show the same blood type, so allele frequencies of ABO are estimated from phenotypes, for example by expectation maximization.
  • Not an allele frequency: the carrier frequency. The fraction of individuals that carry at least one copy of aa is PAa+PaaP_{Aa} + P_{aa}. Under Hardy-Weinberg proportions with q=0.01q = 0.01 it is 1−p2=0.01991 - p^2 = 0.0199, about twice qq, because almost every carrier is a heterozygote.
  • Not an allele frequency: the allele fraction in reads. In sequencing data, the share of reads at a site that show the alternate base in one person is near 0.5 for a heterozygote and near 1 for a homozygote. It is a property of one genotype and of the read sampling, not of a population. The genotype likelihood turns it into evidence about the genotype.
  • Not an allele frequency: a genotype frequency. PAAP_{AA} is the share of individuals, and pp is the share of copies. They agree only when every individual is homozygous.
  • Minor and derived allele frequency. The minor allele frequency is min⁡(p,q)\min(p, q), so it is at most 0.5. The derived allele frequency is the frequency of the allele that arose by mutation; it needs an outgroup to tell the ancestral allele, and its sample counts give the unfolded site frequency spectrum.
  • Fixation and loss. An allele is fixed when p=1p = 1 and lost when p=0p = 0. Without mutation both states are absorbing in the Wright-Fisher model and the Moran model.
  • Heterozygosity. The expected heterozygosity is H=1−∑ipi2H = 1 - \sum_i p_i^2, the chance that two copies drawn with replacement differ. For two alleles it is 2pq2pq. Genetic drift makes it decay at rate 1/(2N)1/(2N) per generation.
  • Hardy-Weinberg proportions. The genotype frequencies p2p^2, 2pq2pq and q2q^2 that random mating gives in one generation; see Hardy-Weinberg principle.
  • Haplotype frequency. The frequency of a combination of alleles at two or more loci on one chromosome. Its departure from the product of the allele frequencies is linkage disequilibrium.
  • Fixation index. The fixation index compares the allele frequencies of subpopulations: it is the share of the total heterozygosity lost by the differences of pp between them.
  • Allele frequency spectrum. Over many sites, the counts of the number of copies of the derived allele give the site frequency spectrum, which the infinite sites model predicts.

References

  1. John H. Gillespie, Population Genetics, A Concise Guide, 2nd edition, Johns Hopkins University Press, 2004, Section 1.3 (genotype and allele frequencies)
  2. Rasmus Nielsen and Montgomery Slatkin, An Introduction to Population Genetics, Theory and Applications, Sinauer, 2013, Chapter 1 (allele frequencies, genotype frequencies and Hardy-Weinberg equilibrium)
  3. Bruce S. Weir, Genetic Data Analysis II, Methods for Discrete Population Genetic Data, Sinauer, 1996, Chapter 2 (estimating frequencies, and the variance of an allele frequency estimate with and without Hardy-Weinberg proportions)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/NB3A2H/text.yaml