← Guides X-Linked Locus

Core 9 min read Open the module

X-linked loci

When the sexes start with different allele frequencies, an X-linked locus zigzags between them and settles on the weighted mean (2pf + pm)/3.

Read first: Genotype frequencies and Hardy-Weinberg

Two sexes, two frequencies, one recursion

An autosomal locus has one allele frequency, p, because every individual carries two copies. An X-linked locus does not. Females have two X chromosomes and males have one, so the population has two frequencies of allele A: pf among the X chromosomes of females and pm among the X chromosomes of males. Males are hemizygous, so pm is also the proportion of males who show the A phenotype.

If pf and pm start unequal, nothing forces them together in one generation. The reason is how the X is inherited. A son receives his only X from his mother and none from his father. A daughter receives one X from each parent. The two sexes therefore sample the parents differently, and the gap between them has to be worked off over several generations.

Random mating, no selection, mutation, migration or drift, and a 1:1 sex ratio give two equations.

  • Daughters: pf(t + 1) = (pf(t) + pm(t))/2, the mean of the mother and father.

  • Sons: pm(t + 1) = pf(t), a copy of the mother.

The X-linked module iterates exactly this pair. It is deterministic, so the same inputs give the same lines every time. Once the lines have met at p̂, genotypes follow Hardy-Weinberg proportions in females. A recessive X-linked trait, carried by the allele a with frequency 1 − p̂ = 0.4333, then shows in 43% of males and in only 0.4333² = 19% of females. That ratio of 1 to q is why such traits are more common in males. The defaults are pf = 0.7, pm = 0.3 and 20 generations. Generation 1 gives pf = (0.7 + 0.3)/2 = 0.5 and pm = 0.7. The sexes have swapped sides of the mean: females were above males, and now they are below.

The default run

Figure 1. Female (first line) and male (second line) frequency of A, starting at 0.7 and 0.3. The lines cross every generation and converge on 0.5667 from both sides. At generation 10 they are 0.5668 and 0.5664.

The gap halves and flips

Let d = pf − pm be the gap. One step later the new gap is (pf + pm)/2 − pf = −(pf − pm)/2, so d(t + 1) = −d(t)/2. The gap halves and changes sign every generation. After t generations it is d(0) × (−1/2)^t.

With d(0) = 0.4 the gaps are 0.4, −0.2, 0.1, −0.05 and so on. The alternating signs draw the zigzag. The size of the gap first falls below 0.01 at generation 6, where it is 0.4/64 = 0.00625. At generation 10 it is 0.4/1024 = 0.0004.

An autosomal locus would be at Hardy-Weinberg after one generation of random mating. The X-linked locus needs 6 generations to bring the gap under 0.01, because the gap is shrinking by half and not by all of it.

Both lines converge on p̂ = (2pf(0) + pm(0))/3, not on the simple mean (pf + pm)/2. For the defaults p̂ = (2 × 0.7 + 0.3)/3 = 1.7/3 = 0.5667, where the simple mean would be 0.5. The chart does not draw p̂. You read it from the end of the lines: at generation 20 both values are 0.56667.

Exercise

Find the limit

Open the module and run the defaults (p♀ 0.7, p♂ 0.3, Gen 20). Hover the lines at generations 1, 2 and 3.

What to expect. Females and males read 0.5000 and 0.7000 at generation 1, 0.6000 and 0.5000 at generation 2, 0.5500 and 0.6000 at generation 3. Both end at 0.5667. Step 4 of the walkthrough shows the same limit.

Open the walkthrough step →

All the A copies start in males

Figure 2. Starting with pf = 0 and pm = 1. Females jump to 0.5 in generation 1 and 0.25 in generation 2. Males follow with 0 and 0.5. Both lines converge on 1/3, because only a third of the X chromosomes were in males to begin with. The mirror case, pf = 1 and pm = 0, ends at 2/3.

Exercise

Start in one sex

Set p♀ 0 and p♂ 1, then run. Swap to p♀ 1 and p♂ 0 and run again. Finally set both to 0.5.

What to expect. The first run ends at 0.3333 and the second at 0.6667. With both at 0.5 the lines stay flat at 0.5 for ever, because the gap is zero and a zero gap stays zero. Step 5 of the walkthrough shows the male-only start.

Open the walkthrough step →

Summary

  • An X-linked locus has two frequencies, pf in females and pm in males, because a son gets his X from his mother only.
  • Each generation pf becomes (pf + pm)/2 and pm becomes the old pf.
  • The gap pf − pm halves and flips sign every generation, which draws the zigzag.
  • Both lines converge on (2pf + pm)/3: 0.5667 for the defaults, 1/3 for a male-only start, 2/3 for a female-only start.
  • The gap is below 0.01 by generation 6 and 0.0004 by generation 10. The model assumes a 1:1 sex ratio and an infinite population, so there is no drift.