Skip to content

Genotype PCA — Population Structure

In the app: Population & relatedness › Genotype PCA

Available on projects with variant (SNP) data, once the pipeline has delivered its genotype PCA (genotype_pca_coords.tsv).

Genotype PCA places every sample by its genotypes: samples that share more alleles sit closer together. It answers "do the samples group the way the design says — by population, line or family — and is any sample placed with the wrong group?" The coordinates are the pipeline's own PCA of the genotypes; Insights draws them and colours them by the sample annotation.

This is the genotype counterpart of the expression PCA: it reflects ancestry and relatedness, not gene activity.

Genotype PCA — example output

Example output from a demonstration project with synthetic data.

Findings

  • Separation — whether the groups of the Colour by column separate on the X-axis component ("The Group Name groups separate on PC1"), naming any sample placed with another group — check Sample Relatedness for a swap — or that the groups overlap.
  • ⚠️ Relatedness flags — samples flagged in Sample Relatedness (for example duplicate, unexpected unrelated) are named and ringed on the plot. A swapped sample sits with the individual whose DNA it actually carries.
  • Variance — how much of the variance the first two components hold. When it is modest, the finding suggests trying PC3 before concluding that two groups overlap.

Filters

X axis / Y axis

Which components to plot. Defaults PC1 and PC2; the list holds the components the pipeline delivered.

Colour by

Colour the samples by a column of the sample annotation — for example Group Name, Sex, Individual or Batch — or by relatedness_flag, or (none). Defaults to Group Name when present. The separation finding follows this choice.

3D

Off by default. On, the plot becomes three-dimensional using a third component. Disabled when fewer than three components were delivered.

Charts

Genotype PCA

One point per sample, labelled with its name, coloured by the chosen column. Axis titles give the variance each component explains. Samples with a relatedness flag are ringed, with relatedness flag in the legend.

Variance explained

The percentage of variance each delivered component explains (% variance), with the value on each bar.

Raw data

Raw data — PC coordinates

Column Meaning
sample Sample name
PC1 … The sample's coordinate on each delivered component

Report settings that apply

None of the filter settings in the Report settings panel change this report. Appearance sets the plot styling (see Report Settings).

Reading it

  • Samples from one population, line or family should form a cluster. Clear separation between groups on PC1 usually reflects ancestry.
  • A sample sitting inside another group's cluster is the classic sign of a sample swap or mislabelling. Check it in Sample Relatedness and against the declared sex in Variant QC.
  • Population structure can confound Association: if groups differ both in ancestry and in the trait, ancestry differences can look like associations.