Algorithm Search⌘K

Modelcore

Pritchard-Stephens-Donnelly admixture model

Also called STRUCTURE model.

A Bayesian model where each individual has ancestry proportions over K populations with their own allele frequencies, fitted by Gibbs sampling.

The Pritchard-Stephens-Donnelly model is the Bayesian model of population structure behind the program STRUCTURE. It assumes KK populations, each with its own allele frequencies at each locus and in Hardy-Weinberg and linkage equilibrium. In the model without admixture, each individual comes from one population. In the admixture model, each individual has a vector of ancestry fractions qiq_i, and each of its gene copies comes from a population drawn from qiq_i. The allele frequencies and the fractions have Dirichlet priors, so all full conditional distributions are Dirichlet or categorical, and the posterior is explored by Gibbs sampling.

The machine

Data. Individuals i=1,…,ni = 1, \ldots, n, diploid, at loci l=1,…,Ll = 1, \ldots, L. Locus ll has JlJ_l alleles. The data are the alleles xi(l,a)x_i^{(l, a)} for the two gene copies a=1,2a = 1, 2.

Parameters.

  • PP: for each population kk and locus ll, a frequency vector pkl=(pkl1,…,pklJl)p_{kl} = (p_{kl1}, \ldots, p_{klJ_l}) on the simplex.
  • QQ: for each individual, ancestry fractions qi=(qi1,…,qiK)q_i = (q_{i1}, \ldots, q_{iK}) on the simplex (admixture model only).
  • ZZ: the population of origin, ziz_i for the whole individual (no admixture) or zi(l,a)z_i^{(l, a)} for each gene copy (admixture).
  • α>0\alpha > 0: the concentration of the prior on qiq_i.

Generative process of the admixture model.

  1. For each kk and ll, draw pkl∼Dirichlet(λ,…,λ)p_{kl} \sim \text{Dirichlet}(\lambda, \ldots, \lambda), with λ=1\lambda = 1 by default.
  2. Draw α\alpha from a uniform prior on (0,10](0, 10].
  3. For each individual, draw qi∼Dirichlet(α,…,α)q_i \sim \text{Dirichlet}(\alpha, \ldots, \alpha).
  4. For each gene copy, draw zi(l,a)=kz_i^{(l, a)} = k with probability qikq_{ik}, then draw xi(l,a)=jx_i^{(l, a)} = j with probability pkljp_{klj}, all independently.

The model without admixture. Step 3 is replaced by ziz_i uniform on {1,…,K}\{1, \ldots, K\}, and every copy of individual ii comes from pzilp_{z_i l}.

Standing assumptions. The populations are in Hardy-Weinberg equilibrium and the loci are in linkage equilibrium within each population, so all copies are independent given ZZ and PP. The individuals are unrelated. KK is fixed and chosen by the user. Allele frequencies of different populations are independent a priori.

Gibbs sampler of the admixture model (Pritchard and coauthors, Algorithm 2). Repeat:

  1. Draw pkl∼Dirichlet(λ+nkl1,…,λ+nklJl)p_{kl} \sim \text{Dirichlet}(\lambda + n_{kl1}, \ldots, \lambda + n_{klJ_l}), where nkljn_{klj} is the number of copies with z=kz = k and allele jj at locus ll.
  2. Draw qi∼Dirichlet(α+mi1,…,α+miK)q_i \sim \text{Dirichlet}(\alpha + m_{i1}, \ldots, \alpha + m_{iK}), where mikm_{ik} is the number of copies of individual ii with z=kz = k.
  3. For each copy, draw zi(l,a)=kz_i^{(l, a)} = k with probability proportional to qik pklxi(l,a)q_{ik} \, p_{kl x_i^{(l, a)}}.
  4. Update α\alpha with a Metropolis-Hastings step.

Steps 1 and 2 use the conjugacy of the Dirichlet prior with categorical counts. Each sweep costs O(nLK)O(nLK) time.

A step by hand. Let qi=(0.7,0.3)q_i = (0.7, 0.3), and let a copy carry an allele with frequency 0.20.2 in population 1 and 0.80.8 in population 2. Then step 3 gives population 1 with probability 0.7⋅0.2/(0.7⋅0.2+0.3⋅0.8)=0.14/0.38≈0.3680.7 \cdot 0.2 / (0.7 \cdot 0.2 + 0.3 \cdot 0.8) = 0.14 / 0.38 \approx 0.368. If, after this step, the individual has mi=(30,10)m_i = (30, 10) copies from the two populations and α=1\alpha = 1, step 2 draws qi∼Dirichlet(31,11)q_i \sim \text{Dirichlet}(31, 11), with mean (31/42,11/42)≈(0.738,0.262)(31/42, 11/42) \approx (0.738, 0.262).

What it counts

  • The likelihood. Given PP and QQ, the probability of the data is ∏i,l,a∑kqik pklxi(l,a)\prod_{i, l, a} \sum_k q_{ik} \, p_{kl x_i^{(l, a)}}. For biallelic loci this is the likelihood of the admixture model in population structure inference, up to the binomial coefficients.
  • The posterior. The model assigns a posterior distribution to QQ, PP and ZZ. The posterior mean of qiq_i is the usual estimate of the ancestry of individual ii. In the model without admixture, the posterior of ziz_i gives the probability that individual ii belongs to each population.
  • The evidence for K. Pritchard and coauthors estimate log⁡Pr⁡(X∣K)\log \Pr(X \mid K) from the chain. With D=−2log⁡Pr⁡(X∣P,Q)D = -2 \log \Pr(X \mid P, Q) over the sampled states, mean μ^\hat\mu and variance σ^2\hat\sigma^2, the estimate is −μ^/2−σ^2/8-\hat\mu / 2 - \hat\sigma^2 / 8, which is exact if DD is normal under the posterior. The authors call it an ad hoc guide, not a test.
  • Migrants. With prior population labels, a variant of the model gives the posterior probability that an individual, a parent or a grandparent is a migrant from another population.

Relation to other models

  • Maximum likelihood. ADMIXTURE and FRAPPE maximize the same likelihood over PP and QQ with no priors. See maximum likelihood admixture estimation and expectation maximization.
  • Latent Dirichlet allocation. The admixture model is the generative model of latent Dirichlet allocation: an individual is a document, a population is a topic, and an allele at a locus is a word. The two were published independently, in 2000 and 2003.
  • Dirichlet process. Huelsenbeck and Andolfatto (2007) replaced the fixed KK of the model without admixture by a Dirichlet process prior on the partition of individuals, so that the number of populations is inferred.
  • Linkage model. Falush and coauthors (2003) let zi(l,a)z_i^{(l, a)} change along each chromosome as a Markov chain with a switch rate per unit of genetic distance. The model is then a hidden Markov model along the genome, as in local ancestry inference.
  • Correlated frequencies. In the F model of the same paper, pkl∼Dirichlet(pAl(1−Fk)/Fk)p_{kl} \sim \text{Dirichlet}\big(p_{Al} (1 - F_k) / F_k\big) around an ancestral frequency vector pAlp_{Al}, where FkF_k plays the role of the fixation index of population kk.
  • Principal components. Genetic principal components summarize the same genotype matrix with no model, and often place admixed individuals between the clusters on a line, in agreement with their fractions.

Known results in the model

  • Conjugate full conditionals. With Dirichlet priors and categorical data, the conditional of PP given ZZ and of QQ given ZZ are Dirichlet, and the conditional of each zz is categorical. So each step of the sampler above draws exactly from a full conditional, and the chain has the posterior as its stationary distribution.
  • Label switching. The posterior is unchanged by any of the K!K! relabelings of the populations, so it has at least K!K! symmetric modes. A chain usually stays near one of them, and results from several runs must be aligned before they are compared.
  • Non-identifiable fractions. With few loci, many pairs (Q,P)(Q, P) give the same likelihood, and the posterior is wide. More loci shrink it.
  • Limits of the evidence estimate. The estimate of Pr⁡(X∣K)\Pr(X \mid K) often keeps rising with KK. Evanno, Regnaut and Goudet (2005) proposed a guide based on the second difference of the estimate across successive values of KK, divided by its spread over runs.
  • Sensitivity to the design. Uneven sample sizes across groups, close relatives and continuous spatial variation all change the clusters that the model finds. The model fits discrete groups even when the true structure is a cline.

References

  1. Jonathan K. Pritchard, Matthew Stephens and Peter Donnelly, Inference of population structure using multilocus genotype data, Genetics 155(2), 2000, pp. 945-959 (the model without admixture and its Algorithm 1, the admixture model and its Algorithm 2, the priors, and the estimate of Pr(X | K))
  2. Daniel Falush, Matthew Stephens and Jonathan K. Pritchard, Inference of population structure using multilocus genotype data, linked loci and correlated allele frequencies, Genetics 164(4), 2003, pp. 1567-1587 (the linkage model as a Markov chain along the chromosome, and the F model of correlated frequencies)
  3. Blei, Ng and Jordan 2003, pp. 993-1022 (the same generative model for documents and topics)
  4. John P. Huelsenbeck and Peter Andolfatto, Inference of population structure under a Dirichlet process model, Genetics 175(4), 2007, pp. 1787-1802 (a prior on the partition of individuals with no fixed K)

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/M3YDR9/text.yaml