Skip to content

Sample QC — Does Any Sample Stand Apart?

In the app: QC & samples › Sample QC

Available on RNA projects with DESeq2 results and a normalised count matrix (all.normalised_counts.tsv).

Sample QC asks whether any sample looks unlike its own replicates before you read a single result. It works from the normalised count matrix, so it covers what the counts can show: how many genes each library detected, how much of each library a few genes take up, and how far apart the samples sit. Read-level QC — Q30, adapters, mapping rate, rRNA, strandedness — is in Read QC.

Samples are judged against their own group, not against fixed cutoffs, because what is normal depends on tissue and protocol.

Sample QC — example output

Example output from the sample project.

Findings

Either "No sample stands apart from its replicates on detected genes or top-gene dominance (N samples)." or a warning such as "⚠️ 1 of 12 samples stand apart from their replicates:" followed by one line per flagged sample and its reason:

  • fewer detected genes than its group
  • more of the library in its top 10 genes than its group

A sample is flagged when its value is far from its group's median (a robust, median-based score, so one bad sample cannot hide itself by widening the spread). It is compared with its own group when the group has at least three samples, otherwise with all samples ("than the other samples"). Only the problem direction is flagged: more detected genes than the replicates is not a concern.

The warning ends: "One measure is not grounds to exclude a sample. Check it on PCA and Heatmap by Sample, and against the pipeline's read-level QC, before deciding."

Charts

Detected genes

One bar per sample, coloured by group: the number of genes with a normalised count above zero (Genes > 0). A low count suggests low depth or low library complexity.

Library share of the top 10 genes (%)

The share of each sample's normalised counts taken by its ten most abundant genes. A high share means a few transcripts — often mitochondrial, rRNA or haemoglobin — take most of the library, which lowers the effective depth for everything else.

Sample distance (VST, clustered)

A heatmap of the Euclidean distance between every pair of samples on VST-transformed expression, with samples ordered by clustering so that similar samples sit together. Replicates should form blocks of small distances along the diagonal; a sample that is far from its own group stands out as a row of large distances. Shown when the project has all.vst.tsv.

Raw data

Raw data — Per-sample metrics

Column Meaning
sample Sample name
group The group the sample belongs to
detected_genes Genes with a normalised count above zero
top10_pct % of the sample's normalised counts in its 10 most abundant genes
top_gene The single most abundant gene
flags Why the sample was flagged, if it was

Interactive / All options

Interactive (the default) shows the library metrics and the sample distance heatmap above. All options shows the full report, which adds:

  • Sample identity: sex markers — an XIST vs Y-linked Genes scatter (log2 of XIST against log2 of the summed Y-linked genes such as RPS4Y1, DDX3Y and KDM5D), with dotted lines at a normalised count of 10. Female samples sit bottom-right, male samples top-left. When the sample annotation has a Sex column, each prediction is checked against it, and a mismatch is reported as a possible sample swap; a sample expressing both XIST and Y genes is reported as possibly mixed or contaminated. A Raw data — Sex-marker table lists XIST, Y-linked sum, Predicted, Annotated and Issue per sample. The check applies to human and mouse when gene symbols are available.
  • RNA integrity (RIN) — a RIN per Sample bar chart and findings, when the sample annotation has a RIN column.
  • QC sign-off — a record of a decision for every sample: Include, Exclude or Undecided, with a Reason. Administrators record decisions with Save decisions; project owners see the record. An exclusion needs a reason. Decisions are a record for the pipeline and the reader: the reports in Insights still show every sample. The current state is also summarised on Project Summary.

In All options the charts follow the Appearance settings in the Report settings panel (see Report Settings).

Reading it

  • On a single-cell project each column is a pseudobulk sample of one cell type, and cell types differ in detected genes by nature. Compare samples within a cell type.
  • A sample flagged here is a reason to look, not to exclude. Check whether it also stands apart on PCA, in Sample Correlation and in Read QC.