How to read a PCA plot of RNA-seq samples without fooling yourself
A PCA plot is the first picture most people make of an RNA-seq experiment, and the one reviewers look at first. It is also easy to misread. This note explains what the axes mean, what a clean plot looks like, and the four ways a plot that looks fine can still mislead you.
What a PCA plot actually shows
Each dot is one sample. Samples that sit close together have similar expression across the genes used for the plot, and samples far apart differ. PC1 is the direction along which your samples vary the most, and PC2 is the next biggest direction that is independent of the first. The axis labels give the share of variance each component captures. That share describes how much of the spread the component explains, not how much it matters biologically.
PCA is unsupervised. It never sees your condition labels, so when samples of the same condition land together, the data itself is telling you something. That is why it is a good sanity check before any statistics.
Start with the right input
Do not run PCA on raw counts. A few very highly expressed genes have the largest variance and can dominate the plot, which is why tutorials for DESeq2 use a variance stabilizing transformation first (Cornell BioHPC exercise). Also know which genes went in: the DESeq2 plotPCA function uses the 500 most variable genes by default (function documentation). Changing that number can change the picture, so state it in your methods.
What a healthy plot looks like
- Replicates of the same condition sit near each other.
- The condition you changed separates along PC1 or PC2.
- No single sample sits far away from its group without a reason you can name.
A plot that meets all three is reassuring, though it is not proof of anything. Small experiments with three replicates per group can look tidy by chance.
Four things to check before you trust it
1. Color by every column in your sample sheet. Re-plot the same PCA colored by batch, sequencing date, lane, kit, donor, sex and RNA quality. If PC1 lines up with a technical column instead of your condition, a batch effect is the largest signal in the data. If that column also lines up with condition, you have a confounded design that no model can untangle. Our note on batch effects and confounding covers how to check this from the sample sheet.
2. Look for the lone dot. One sample far from the rest may be a failed library, but it may also be a mislabeled sample. A sample that lands with the wrong condition is the classic signature of a swap. See how to find a sample swap.
3. Look beyond PC1 and PC2. A group difference that is invisible in the first two components can show up in PC3 or PC4. Plot a few more pairs, or a scree plot, before you conclude that nothing separates.
4. Check what the plot hides. PCA shows the biggest sources of variation only. A modest but real condition effect can be present while PC1 is driven by something else, and a pleasing separation can come from a handful of genes. Do not read the percent variance as a measure of effect size.
What a PCA plot cannot prove
A PCA plot cannot tell you that a result is correct, that your samples were labeled correctly at the bench, or that the right genes are differentially expressed. It will not find a problem that is spread evenly across all samples. It also cannot tell you why a sample is an outlier, only that it is. Treat it as a prompt to ask questions, then check the answers against the sample sheet, the library sizes and the lab records.
What to do next
Make the PCA plot with a transformation you can name and a gene count you can state. Color it by every variable in the sample sheet, write down anything that separates, and decide before differential expression whether to model it, investigate it or exclude the sample and say so. Keep the plot and the decision together for the methods section.
A CodeISB Audit Report includes a PCA view with these checks laid out next to the sample sheet, so a reviewer can see what was checked. The sample report shows an example built from public data.
Do not find out after it costs you
CodeISB checks your count matrix and sample sheet for swapped samples, weak libraries and batch confounding, and returns a one-page report. No raw reads or patient identifiers needed.
The first audit is free. Current prices hold for 12 months from your first project; later customers pay list.
Get your free audit