How does genetic ancestry estimation work?
Last updated: 12 November 2026 · By Milad EIDI · For research use only. Not for diagnostic use.
Short answer. This optional analysis compares VCF genotypes with a locally installed panel of ancestry-informative SNPs and estimates the mixture of reference populations that best fits them. Read the percentages as affinity to the available reference groups. Sparse inputs, such as targeted panels, may overlap too few markers for a useful estimate.
Genetic Ancestry Estimation
This optional analysis compares VCF genotypes with a locally installed reference panel of ancestry-informative SNPs. It estimates a mixture of reference-population allele frequencies that best fits the observed genotypes. Read the percentages as affinity to the available reference groups, with the panel's composition always in mind.
What the analysis needs
The input must contain VCF genotypes and use the same build as the installed reference. A curated variant table cannot substitute for those genotypes. Marker availability matters: an exome, targeted panel, or sparse variant-only file may overlap too few reference sites for a useful estimate. A missing VCF record is not treated as a measured homozygous-reference genotype.
From genotypes to proportions
- Load the reference. The maintainer installs a panel of biallelic autosomal SNPs with population allele frequencies and PCA reference information. The supplied builder applies frequency, call-rate, spacing, and allele-orientation filters.
- Read genotype dosage. At panel sites, the analysis uses the number of ALT copies: 0 for 0/0, 1 for 0/1, and 2 for 1/1. Calls below the configured depth or genotype-quality limits are excluded.
- Reconcile allele labels. Direct REF/ALT matches retain the dosage. If REF and ALT are swapped, dosage becomes 2 minus the original value. Incompatible sites are discarded. A swapped allele encoding is not, by itself, evidence of a strand flip.
- Check marker availability. The panel defines a minimum usable-marker count, commonly 1,000. With no usable markers, no mixture is produced. Below the minimum, exploratory components may still be shown with INSUFFICIENT_MARKERS and insufficient confidence.
- Check reference fit. The sample is projected into the reference PCA space and compared with population centroids. A distant projection triggers REFERENCE_MISMATCH.
- Fit the mixture. Non-negative population weights sum to one. The model searches for weights that maximize the likelihood of the observed diploid genotypes, then groups components below the reporting threshold into Other / unresolved.
The statistical model
For each SNP, the expected ALT frequency p is the weighted average of the reference-population frequencies. The model uses genotype probabilities (1−p)², 2p(1−p), and p² for dosages 0, 1, and 2. These probabilities assume Hardy–Weinberg proportions in the modeled population. The optimizer uses constrained mixture fitting; the references below give background on population structure and the limits of interpreting mixture proportions.
Read the quality summary before the percentages
| Result or metric | What it tells you |
|---|---|
| Reference SNPs | How many sites are available in the installed panel. |
| Observed SNPs | How many panel sites have usable genotype observations in the input. |
| Harmonized / informative SNPs | How many observations have compatible allele encodings and can enter inference. |
| Direct / reversed matches | Whether REF/ALT labels matched directly or required a dosage reversal. |
| INSUFFICIENT_MARKERS | The usable count falls below the installed model's minimum. Any displayed proportions are exploratory. |
| REFERENCE_MISMATCH | The sample is distant from the represented reference groups. Fine-scale proportions may be misleading. |
| HIGH / MODERATE / LOW confidence | A combined assessment of marker count, panel coverage, convergence, component separation, and reference fit. Marker count alone does not determine the label. |
Interpreting an example
A result such as EUR 68% · SAS 24% · Other 8% describes how the fitted mixture uses the installed reference groups. It does not establish corresponding percentages of named ancestors. Other / unresolved collects small components under the reporting threshold; it is not an identified missing population.
If REFERENCE_MISMATCH is present, review the reference panel's population coverage before interpreting the labels. Increasing the marker count cannot make an unrepresented population appear in the reference. Conversely, a compatible reference does not rescue a sample with too few informative observations.
Installing the reference
A maintainer can build a compact reference from an appropriately licensed cohort using build_ancestry_database.py. Set ANCESTRY_DATABASE_HG38 or ANCESTRY_DATABASE_HG19 to the matching resource and enable ANCESTRY_ENABLED=true. Inference uses the local reference rather than an external ancestry service.
When sharing an estimate, include the reference name and version, genome build, informative-marker count, confidence label, and all warnings. The result should remain a statement about genetic reference-population affinity.
Scientific references and further reading
| # | Citation (Vancouver style) |
|---|---|
| 1 | Pritchard JK, Stephens M, Donnelly P. Inference of population structure using multilocus genotype data. Genetics. 2000;155(2):945-59. |
| 2 | Alexander DH, Novembre J, Lange K. Fast model-based estimation of ancestry in unrelated individuals. Genome Res. 2009;19(9):1655-64. |
| 3 | Price AL, Patterson NJ, Plenge RM, Weinblatt ME, Shadick NA, Reich D. Principal components analysis corrects for stratification in genome-wide association studies. Nat Genet. 2006;38(8):904-9. |
| 4 | Patterson N, Price AL, Reich D. Population structure and eigenanalysis. PLoS Genet. 2006;2(12):e190. |
| 5 | 1000 Genomes Project Consortium, Auton A, Brooks LD, Durbin RM, Gargiulo EP, Kang HM, et al. A global reference for human genetic variation. Nature. 2015;526(7571):68-74. |
| 6 | Hardy GH. Mendelian proportions in a mixed population. Science. 1908;28(706):49-50. |
| 7 | Anderson CA, Pettersson FH, Clarke GM, Cardon LR, Morris AP, Zondervan KT. Data quality control in genetic case-control association studies. Nat Protoc. 2010;5(9):1564-73. |
| 8 | Rosenberg NA, Pritchard JK, Weber JL, Cann HM, Kidd KK, Zhivotovsky LA, et al. Genetic structure of human populations. Science. 2002;298(5602):2381-5. |
| 9 | Lawson DJ, van Dorp L, Falush D. A tutorial on how not to over-interpret STRUCTURE and ADMIXTURE bar charts. Nat Commun. 2018;9(1):3258. |
| 10 | McVean G. A genealogical interpretation of principal components analysis. PLoS Genet. 2009;5(10):e1000686. |
| 11 | Tang H, Peng J, Wang P, Risch NJ. Estimation of individual admixture: analytical and study design considerations. Genet Epidemiol. 2005;28(4):289-301. |
| 12 | Marchini J, Howie B. Genotype imputation for genome-wide association studies. Nat Rev Genet. 2010;11(7):499-511. |
| 13 | Purcell S, Neale B, Todd-Brown K, Thomas L, Ferreira MA, Bender D, et al. PLINK: a tool set for whole-genome association and population-based linkage analyses. Am J Hum Genet. 2007;81(3):559-75. |
| 14 | Hellenthal G, Busby GB, Band G, Wilson JF, Capelli C, Falush D, et al. A genetic atlas of human admixture history. Science. 2014;343(6172):747-51. |
| 15 | Kivinen J, Warmuth MK. Exponentiated gradient versus gradient descent for linear predictors. Inf Comput. 1997;132(1):1-63. |
| 16 | Martin AR, Kanai M, Kamatani Y, Okada Y, Neale BM, Daly MJ. Clinical use of current polygenic risk scores may exacerbate health disparities. Nat Genet. 2019;51(4):584-91. |
| 17 | Taliun D, Harris DN, Kessler MD, Carlson J, Szpiech ZA, Torres R, et al. Sequencing of 53,831 diverse genomes from the NHLBI TOPMed Program. Nature. 2021;590(7845):290-9. |
| 18 | Privé F, Luu K, Blum MGB, McGrath JJ, Vilhjálmsson BJ. Efficient toolkit implementing best practices for principal component analysis of population genetic data. Bioinformatics. 2020;36(16):4449-57. |