Q&A-6Define pre-analysis RNA-seq QC.
Answer
What I'd say first (60–120s)
Assumptions: Illumina short reads, human or mouse, poly(A)-selected, 2x100, aligned with STAR to the matching Ensembl release, quantified with featureCounts. Every band below shifts for total-RNA, single-cell, or a non-model organism.
Pre-analysis QC is the measurements taken on raw reads and on the aligned BAM before quantification, plus the rules that turn them into keep / fail / review. It is triage, not a gate: the job is to separate "this sample is broken" from "this sample looks unusual for a reason I can name". A sample that fails QC and gets quantified anyway does not just waste a lane: it enters the design matrix as a global expression shift and drags the differential-expression result with it.
The checks, grouped by where they run
| stage | tool | typical band (human poly(A), 2x100) | what a miss means |
|---|---|---|---|
| raw reads | FastQC / fastp | per-base median Q30+; FastQC warns below median Q25, fails below Q20 | quality collapse at the 3' end |
| adapters | FastQC adapter module | <1% | insert shorter than read length; read-through |
| duplication | FastQC | rises with depth: 20–30% at 20M pairs, 50%+ at 100M | high duplication alone is not a defect |
| rRNA | RSeQC / Picard CollectRnaSeqMetrics | <5–10% | poly(A) selection or ribo-depletion failed |
| alignment | STAR log | >85% unique | wrong reference, contamination, degradation |
| distribution | RSeQC read_distribution | 60–80% exonic | intronic load = gDNA or degradation |
| strandedness | RSeQC infer_experiment | >0.90 in one fraction for dUTP | flat ~0.25 across all four = wrong protocol |
| insert size | Picard CollectInsertSizeMetrics | median above read length | median below read length = adapter read-through |
| batch | MultiQC | sample-sample correlation, PCA, sex check | swap, batch effect |
Worked trace: one failing sample in a 24-sample batch
S7: FastQC per-base median Q36, adapter 0.4%, duplication 61%. Duplication looks alarming, but the batch was sequenced to 90M pairs, so 61% is in line with the other 23 samples. STAR: 71% unique, 22% multi-mapped. RSeQC read_distribution: 45% intronic against a batch median of 12%. CollectRnaSeqMetrics: 12% rRNA against a batch median of 1.5%. infer_experiment: 0.24/0.25/0.25/0.26. No strandedness signal at all, where the rest of the batch sits at 0.94.
That combination is not a threshold problem. Flat strandedness plus 12% rRNA plus 45% intronic says the library prep failed, not that the sample is biologically odd. Arithmetic: 45% of 60M reads is 27M reads not measuring exons, leaving 33M effective. Under the 40M the DE design needs. Exclude and re-prepare; do not lower the cutoff.
Trade-offs
Fixed global thresholds are cheap and reproducible but break on total-RNA and non-model organisms. Per-batch adaptive thresholds (median ± 3 MAD) catch a single outlier but are blind to a batch-wide failure, because every sample moves together. The rule I use: hard-gate only metrics whose failure is unrecoverable downstream. Adapter read-through, wrong strandedness, <50% mapping. Everything confounded by depth or biology goes into a review band with a written reason.
Failure modes and how each is caught
- One universal threshold: plot each metric against sequencing depth across the batch; a deep library failing a duplication cutoff is the tell.
- Outlier dropped after seeing the DE result: procedural. Freeze the exclusion list with a timestamp before the DE run.
- Sample swap: genotype concordance at common SNPs, or a sex check against metadata.
- Batch-wide failure missed: compare batch medians to a historical baseline, not to each other.
- Tool-version drift: pin versions in the workflow and diff the MultiQC version table; a STAR bump changes multi-mapping defaults and moves mapping rate with no sample change.
- Partial report read as complete: MultiQC silently omits modules whose inputs are missing. Assert the expected module list is present before sign-off.
Curated: · Written: · Reviewed:
Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.