Population Genetics Practical 3: Different mechanisms behind genotype proportions
Learning objectives
Calculate offspring genotype expectations under specified mating rules; distinguish identity by state from identity by descent; explain the inbreeding genotype model; and show how population structure can create a pooled heterozygote deficit without within-population inbreeding.
All examples use base R and hypothetical populations. We calculate deterministic expectations, not biological realizations or fitted inbreeding estimates.
1. Specify the mating rule
A parent with genotype AA transmits A with probability 1, AB with probability 0.5, and BB with probability 0. For a specified pair of parents with transmission probabilities \(t_1,t_2\), Mendelian transmission gives
Question 1. Can an offspring population have heterozygosity above 0.5?
Suggested answer
Yes. AA-by-BB crosses produce AB offspring with probability 1. The maximum of 0.5 in \(2pq\) applies to random union of gametes from one common pool, not every mating rule.
Compare random pairing and pairing by genotype
Suppose adult genotype proportions are HWE proportions at \(p_A=0.6\). Under random pairing, pair weights are the products of adult genotype frequencies. Under a hypothetical same-genotype rule, AA pairs only with AA, AB with AB, and BB with BB. Each genotype contributes parents in proportion to its adult frequency, and every pair has equal reproductive output.
Show R code
p <-0.6q <-1-padult <-c(AA=p^2,AB=2*p*q,BB=q^2)transmission <-c(AA=1,AB=.5,BB=0)random_pairs <-outer(adult,adult)same_genotype_pairs <-diag(adult)# Pair weights sum to one; rows/columns refer to the two parental roles.offspring_expectation <-function(pair_weights) {stopifnot(all(pair_weights >=0),abs(sum(pair_weights)-1)<1e-12) result <-c(AA=0,AB=0,BB=0)for(i in1:3) for(j in1:3) { result <- result + pair_weights[i,j]*cross_probabilities(unname(transmission[i]),unname(transmission[j])) } result}random_offspring <-offspring_expectation(random_pairs)assortative_offspring <-offspring_expectation(same_genotype_pairs)knitr::kable(rbind(Adults=adult,Random_pairing=random_offspring,Same_genotype_pairing=assortative_offspring),digits=3)
AA
AB
BB
Adults
0.36
0.48
0.16
Random_pairing
0.36
0.48
0.16
Same_genotype_pairing
0.48
0.24
0.28
Show R code
stopifnot(max(abs(random_offspring-adult))<1e-12,max(abs(assortative_offspring-c(AA=.48,AB=.24,BB=.28)))<1e-12)# Recover A frequency from offspring genotype proportions.c(random_p_A=random_offspring["AA"]+random_offspring["AB"]/2,assortative_p_A=assortative_offspring["AA"]+assortative_offspring["AB"]/2)
random_p_A.AA assortative_p_A.AA
0.6 0.6
Question 2. Which quantity changes under the same-genotype rule: genotype proportions or allele frequency?
Suggested answer
Genotype proportions change: heterozygosity falls from 0.48 to 0.24. A frequency remains 0.6 because parental allele contributions are unchanged. Unequal reproductive output or genotype-dependent selection could change it. This example specifies mating by genotype, not genealogical relatedness; its heterozygote deficit does not establish identity by descent.
2. Distinguish state from descent
Two A copies are identical by state because they have the same allele label. They are identical by descent (IBD) relative to a specified ancestral base if they descend from the same ancestral allele copy. A homozygous AA genotype alone does not identify which history produced it.
For an individual, pedigree inbreeding \(F\) is the probability that its two allele copies at a locus are IBD under the pedigree and founder assumptions. The additive relationship diagonal is \(A_{ii}=1+F_i\); parental kinship is \(A_{sd}/2\).
A small pedigree calculation
Take two unrelated, noninbred founders, each with two distinct ancestral allele-copy identities. Two of their offspring are full siblings. If those siblings mate, their offspring can receive the same ancestral copy through both parents.
For either sibling’s transmitted copy, each of the four founder copies has probability 1/4 under Mendelian transmission. Averaging over the siblings’ inheritance and transmissions, the probability of a match is \(4(1/4)^2=1/4\).
This is an expectation from a declared pedigree, not the fraction of homozygous genotypes observed in one individual. Founders are assumed unrelated and noninbred relative to this base; changing the base or assumptions changes the interpretation.
3. Derive the inbreeding genotype model
Let A have frequency \(p\) and B frequency \(q=1-p\) in the reference pool. In the simple model, with probability \(F\) both copies are IBD and share one ancestral draw; with probability \(1-F\) they are independent draws from that pool. Then
IBD pairs contribute no heterozygotes. Relative to HWE, each homozygote increases by \(Fpq\), and AB decreases by \(2Fpq\). This model preserves the supplied allele frequency; it is not a complete model of drift, selection or a multigeneration breeding programme.
Figure 1: Genotype expectations at a fixed A frequency of 0.6 for three supplied IBD probabilities.
Question 3. Why does complete homozygosity not imply that A is fixed?
Suggested answer
At \(F=1\), the model gives AA proportion \(p\) and BB proportion \(q\), with no heterozygotes. Both alleles can remain present in different individuals. Homozygosity describes how copies are paired; fixation describes absence of an allele from the population.
4. Pool populations with different frequencies
Now consider two equally weighted populations. Each has HWE genotype expectations and no IBD inbreeding under its own specified base, but their A frequencies are 0.9 and 0.1. Pool records without allowing mating between the populations.
This is the Wahlund effect: pooling populations creates a heterozygote deficit relative to HWE at the pooled frequency, even when each population follows its own HWE expectation.
For weights \(w_k\) summing to one, \(\bar p=\sum_k w_kp_k\). The difference is
It is twice the weighted variance of population allele frequencies. In this toy example the pooled heterozygosity is 0.18, while the pooled HWE expectation is 0.5.
5. The same proportions can have different explanations
For nonzero expected heterozygosity, define the descriptive deficit ratio \(D=1-H_O/H_E\). It summarizes a comparison with a chosen reference, but is not automatically a pedigree IBD probability or a calibrated inbreeding estimator.
Question 4. Can these three genotype proportions establish that pedigree inbreeding is 0.64?
Suggested answer
No. Our mixture has exactly the same proportions as a one-population IBD model supplied with \(F=0.64\). The counts do not distinguish the mechanisms. Population labels, pedigree information, sampling design and additional genomic evidence may be needed, with explicit methods and reference definitions. A descriptive deficit ratio can also be negative under heterozygote excess; an IBD probability cannot.
Exercises
At \(p_A=0.5,F=0.25\), calculate the genotype proportions and recover allele frequency.
Give both populations the same A frequency. What happens to the Wahlund deficit?
Change mixture weights to 0.8 and 0.2. Calculate pooled frequency and compare heterozygosities.
For AA-by-BB offspring, calculate the descriptive deficit relative to HWE at \(p_A=0.5\). Why is it not a pedigree inbreeding coefficient?
The first proportions are 0.3125, 0.375 and 0.3125. Equal population frequencies remove the mixture deficit. Unequal weights change the pooled frequency to 0.74; pooled heterozygosity remains 0.18 here because both groups have the same heterozygosity. AA-by-BB offspring have deficit ratio \(-1\), reflecting complete heterozygote excess, not negative IBD probability.
Package connections and the next topic
Population summaries and reference-dependent expectations belong in gpop; current gpop scientific interfaces remain proposed. A supplied pedigree can be validated through gsim public interfaces, while biological inheritance remains a simulation responsibility. This practical adds no package APIs and does not turn a descriptive deficit into an estimator.
The next topic is genetic diversity: observed heterozygosity, gene diversity, sample size and reference-population definitions.