Heatmap by Sample — Sample-to-Sample Similarity¶
In the app: Expression › Heatmap by Sample
Heatmap by Sample shows how similar every pair of samples is, computed on the VST (variance-stabilising transformation) expression matrix. It is a square matrix with the samples on both axes. In a well-behaved experiment, replicates of the same group resemble each other most; an outlier sample, a batch effect or a mislabelled sample shows up as a row that does not fit its group.

Example output from the sample project.
Findings¶
- The number of samples and the range of the measure between pairs (e.g. "pearson r between pairs ranges 0.73 to 0.93").
- The most similar pair and the least similar pair.
- A note that a Batch strip appears when the project's annotation records a batch (New Project → Selected Runs).
- On a single-cell project, a note that pseudobulk samples are named
{celltype}-{group}-{replicate}, so they correlate by cell type first and condition second — that separation is expected there.
Filters¶
Measure¶
- Pearson correlation (default) — do the two samples' profiles move together?
- Euclidean distance (DESeq2) — the sample-distance heatmap from the DESeq2 vignette. Unlike correlation, it also registers a shift in overall expression level.
Order¶
- Sample name (default) — alphabetical.
- Clustered — average-linkage clustering, as pheatmap does, so samples that resemble each other sit together.
Batch-corrected VST (display only)¶
Appears only when the pipeline delivered a batch-corrected matrix (all.vst.batchcorrected.tsv) covering the same samples. Switching it on draws the heatmap from that file; it changes this view only, not any statistics.
Heatmap¶
Titled Sample-to-Sample Pearson Correlation (VST) or Sample-to-Sample Euclidean Distance (VST), with Sample on both axes.
- Correlation is coloured from −1 (blue) through 0 (white) to 1 (red).
- Distance is coloured in blues, darkest at 0 (identical samples).
- With up to 20 samples, each cell also shows its value.
Above the matrix, an annotation strip colours each sample by Group (taken from the sample name, with the trailing replicate number dropped) and, when recorded, by Batch. The plot grows with the number of samples so labels stay readable.
Raw data¶
Raw data — Correlation matrix (or Distance matrix) — open by default; the full sample × sample matrix, rounded to four decimals, with Download CSV.
Report settings that apply¶
None of the analysis settings. Plot Width and Plot Height in Appearance act as a minimum; the plot is enlarged automatically for many samples. See Report Settings.
Reading it¶
Correlations between RNA-seq samples are usually high overall, so look at the relative pattern rather than the absolute number. If samples cluster by batch rather than by group — easiest to see with Order: Clustered and the Batch strip — consider the Batch Effect report. PCA shows the same structure in two dimensions.