← All methods
Population Structure

Population Structure (PCA & ADMIXTURE)

Decompose your germplasm into ancestral subpopulations before GWAS or selection.

How it works

Principal Component Analysis (PCA) on the genotype matrix gives a fast, model-free view of population stratification. The top PCs are essential covariates in GWAS — without them, subpopulation differences inflate false positives. We complement PCA with an ADMIXTURE-style ancestry analysis that estimates fractional ancestry from K subpopulations and uses cross-validation error to choose the best K.

Formula

PCA: eigendecomposition of the centered, scaled genotype matrix. ADMIXTURE: maximum-likelihood estimation of Q (ancestry) and P (allele-frequency) matrices under a model of K ancestral populations.

What you get

  • PC1–PC4 scatter plots with percent variance explained
  • Ancestry-proportion stacked bars for K=2..8
  • Cross-validation error curve to select K

When to use it

  • Before any GWAS run on a diverse panel
  • When sampling parents for a breeding program from multiple gene pools
  • To verify dataset composition before genomic selection

Inputs

Genotype matrix
VCF / HapMap / numeric CSV
LD-pruned recommended (r² < 0.2) to avoid PC domination by LD blocks.

Parameters

NameDefaultDescription
K range2–8ADMIXTURE fits every K in the range; CV error picks the best.
LD prune r²0.2Applied before PCA to keep PCs from tracking LD blocks.
PCs to display4Extra PCs remain available as GWAS covariates.

Workflow

  1. 1. Prune
    Sliding-window LD pruning to independent markers.
  2. 2. PCA
    Eigendecomposition of the standardised marker matrix.
  3. 3. ADMIXTURE grid
    Fit K = 2..8, compute cross-validation error at each K.
  4. 4. Pick K
    Elbow of CV error; visualise stacked ancestry bars sorted by K=best.

Interpreting results

  • Clear cluster separation on PC1/PC2 = strong subpopulation structure; use ≥3 PCs downstream.
  • Flat ADMIXTURE bars with fractions near 0.5 across all K = admixed material.
  • PC-variance-explained percentages are a quick check on how much of the panel's diversity is structural.

Common pitfalls

  • Skipping LD pruning makes PC1 track a single high-LD region rather than genome-wide structure.
  • Reporting a single 'true' K is over-confident — always show the CV curve.
  • Related individuals (sibs) collapse to the same PC point and bias K selection.

Worked example

Rice-413 indica/japonica split
PC1 (18.2% variance) cleanly separates indica from japonica; ADMIXTURE CV error minimised at K = 4, matching known indica-I/II and japonica-temp/trop subgroups.

Try it — interactive example

Rough guide for choosing K in a structure/admixture run using an AIC-style penalty on log-likelihood.

Expected outputs
Free parameters at K
30600
Recommended # PCs as GWAS covariates
4
Rule of thumb: K + 1 principal components.
SNPs per parameter
98.04
Prefer > 5 to avoid overfitting.

Numbers are quick analytical estimates for planning — actual runs incorporate the full data, covariates, and QC pipeline.

References

Run Population Structure on your data

Open the module and upload a CSV.

Open module