Evolution & microbiome · Step-by-step guide

Population Genetics: a step-by-step guide

Population Genetics summarises allele frequencies and HWE, estimates Weir–Cockerham Fst, runs genotype PCA and admixture, and computes sequence diversity with Tajima’s D. This guide follows the four analysis tabs.

Before you start

  • A genotype table with sample, population and SNP dosages, or a VCF plus a sample/population sheet.
  • At least two samples per population for a meaningful summary, and more for Fst or admixture.
  • An aligned FASTA for the sequence-diversity tab.
The sequence-diversity tab has a Load demo alignment button.

Step by step

  1. Load the genotype data

    Drop a genotype table or a VCF with a sample sheet. Every sample needs a population value; the app reports the samples that are missing one.

  2. Open Frequencies & HWE

    The table reports per-population alt frequency, observed heterozygosity (Ho), expected heterozygosity (He) and an exact HWE p-value. A large HWE deviation can indicate genotyping error, selection or population structure.

  3. Open Differentiation (Fst)

    The app computes Weir–Cockerham θ with a bootstrap interval and a pairwise population matrix. Report the estimator and the interval, not only the point estimate.

  4. Open Structure (PCA & admixture)

    Linkage-disequilibrium pruning runs before PCA. The admixture model scans K = 1–6 by EM and reports BIC, log-likelihood and iterations.

  5. Choose K with the BIC curve

    Inspect the BIC across K rather than selecting the smallest value automatically. A clear minimum supports a K; a flat curve means the data do not choose one cleanly.

  6. Open Sequence diversity

    Load an aligned FASTA. The app reports segregating sites, π, Watterson θW and Tajima’s D with sliding windows. It needs at least four sequences.

  7. Record the sampling

    Fst and admixture depend on sample size and sampling design. Keep the population definitions and the number of individuals per population with the result.

How to read the results

OutputWhat it tells you
Frequencies table (Population, alt freq, Ho, He, HWE p)Within-population variation and departures from HWE. Ho much lower than He suggests inbreeding, structure or null alleles.
Fst table and pairwise matrixHow much variation is partitioned between populations. Fst is relative to the populations you sampled; it is not an absolute species boundary.
PCA and admixture (K, BIC, ancestry proportions)Genetic structure and individual ancestry estimates. The proportions are model-based summaries, not genealogies.
Diversity table (Segregating sites, π, θW, Tajima’s D)Sequence variation and its frequency spectrum. A negative Tajima’s D can reflect expansion or purifying selection; it is not a stand-alone test of either.

Common problems

The population column is missing.
Add a population column after the sample ID, or add it to the sample sheet for a VCF. The app cannot compute population statistics without it.
A sample has no population value.
Every sample needs a population. The app reports the first missing names; fill them in and rerun.
There are fewer than two samples.
The genotype summary needs at least two samples. Fst and admixture need more, and the result quality depends on the number per population.
K is outside the allowed range.
Choose K between 1 and the smaller of 6, the number of samples and the number of markers. A K larger than the data cannot be estimated.
Tajima’s D refuses the alignment.
It needs at least four sequences. Check that the sequences are aligned and that the FASTA contains nucleotides, not proteins.

Limits

  • Exploratory summaries; Fst and admixture depend on sampling and sample size.
  • Use PLINK, ADMIXTURE or STRUCTURE for publication analyses of large panels.
  • The admixture scan is limited to K = 1–6.

The app records its tool, version, parameters and input checksum in the methods log. The documentation on reproducibility explains how that record becomes a methods paragraph, and the Report Builder collects the figures into one export.

How to cite this analysis

Cite the Workbench using the Zenodo DOI on the Cite page (/cite). Report the estimator, K range, pruning settings, population definitions and sample sizes. Citation, DOI and BibTeX.

Last reviewed: 2026-11-10. If a screen does not match this guide, the app is the source of truth; tell us so the guide can be corrected.

Need a hand?

Run this analysis with support.

Send the files and the question; we reply with a fixed price and a named analyst. Or keep exploring the free apps.