📚 Lecture 5 · Transcriptomics Prof. Quanhua Mu · 30 Sep 2026
Same genome, different performance. The transcriptome is the layer that changes — and quantification is about which correction comes first.
101 · L5 Transcriptomics — From Reads to Single Cells
Lecture 5 · Transcriptomics (Prof. Quanhua Mu)
Fifth lecture of ABCT5101 — Prof. Quanhua Mu, the bioinformatics block. Lecture 4 read the genome; this one measures what it is doing. On the 14 Oct midterm (Lectures 1–6).
| Item | Value |
|---|---|
| Human genome | ~20,000 genes |
| microRNA | ~21 nt, processed by DICER |
| piRNA | 29–30 nt |
| tRNA | 74–95 nt |
| lncRNA | ~2.2 kb – ~17 kb |
| Most abundant RNA by molecule number | rRNA |
| Library strategies | PolyA enrichment (misses non-polyA) vs rRNA depletion (costs more, keeps them) |
| Named aligner | STAR; also HISAT2, BOWTIE2, Kallisto |
| Differential expression tool | DESeq2; volcano = log2FC (x) vs −log10 p (y) |
| PCA | PC1 holds the most variance — but PCs are linear combinations |
Master Logic — the transcriptome is the layer that changes
The genome is identical in every cell, so it cannot explain why a hepatocyte differs from a neuron. The transcriptome differs by cell type, tissue and time — which is why it is both biologically informative and commercially actionable. The lecture arc: what RNA exists → how to measure it → how to quantify it → how to compare conditions → how to find patterns → one cell at a time.
| Layer | Molecule | -omics name |
|---|---|---|
| DNA → (transcription) | Genome | Genomics |
| RNA → (translation) | Transcriptome | Transcriptomics |
| Protein | Proteome | Proteomics |
1 · Key Terms — the RNA classes and their sizes
Sizes: microRNA ~21 nt shortest; tRNA 74–95; mRNA kb; lncRNA longest (2.2–17 kb).
Size predicts function — a short RNA can only base-pair with a target; a kb-scale RNA can fold into a scaffold.
| Class | Size | What it does |
|---|---|---|
| mRNA (coding) | kb scale | Carries the code: 5′cap, 5′UTR, open reading frame (start/stop), exon/intron, Poly-A tail |
| microRNA | ~21 nt | DICER-processed; binds mRNA to block translation or trigger degradation |
| piRNA | 29–30 nt | Germline-associated small RNA |
| tRNA | 74–95 nt | The physical adapter — must fold, so it must be long enough: acceptor stem, TψC loop, D-loop, variable loop, anticodon loop |
| snRNA / snoRNA / sbRNA | intermediate | Splicing and RNA-processing machinery |
| lncRNA | ~2.2 kb – ~17 kb | Scaffold / regulator. HOTAIR recruits PRC2 and LSD1 to silence metastasis suppressor genes via H3K27me |
The non-coding RNA slide cites nobelprize.org/prizes/medicine/2024 — the microRNA discovery. That citation is the lecturer's own framing of why ncRNAs matter.
2 · Measuring the transcriptome — abundance decides the method
rRNA dominates; choose poly(A) enrichment (fast, misses non-polyA) or rRNA depletion.
By number of molecules, rRNA dominates — which is why library preparation exists at all.
| Strategy | How | Gain / lose |
|---|---|---|
| PolyA enrichment | Denature → hybridise the poly(A) tail (oligo-dT) → elute | Cheap, mRNA-focused. Misses non-polyA transcripts and degraded RNA |
| rRNA depletion | Remove 18S and 28S rRNA, then fragment | Keeps non-polyA transcripts (many lncRNAs; FFPE/degraded). Costs more, needs more input |
| Technology | Principle | Limitation |
|---|---|---|
| Microarray | Fluorescent cDNA hybridised to an array: binding means the gene is expressed | Only sees what is on the array — cannot discover new transcripts |
| RNA-seq | Fragment → reverse transcribe → sequence → map | Read length bounds what you can resolve |
| Nanopore | Strand threaded through a motor protein and reader protein; ionic current decoded by basecalling | Lower per-base accuracy, but full-length reads give the complete isoform repertoire — “No assembly required” |
3 · From reads to numbers — mapping and quantification
Splice-aware aligners (STAR, HISAT2); Trinity for de novo assembly.
Splice-aware aligners are needed. Mature mRNA has had its introns removed, so a read spanning an exon–exon junction is contiguous in the transcript but thousands of bases apart in the genome — the aligner must split the read into blocks. Named tool STAR (also HISAT2, BOWTIE2, Kallisto); assembly is reference-guided (TopHat + Cufflinks) or de novo (Trinity).
3a · Why raw read counts are not comparable
Two effects — gene length + sequencing depth — make raw counts misleading.
Suppose one sample gives these counts for three genes. Nothing has been normalised yet:
| Gene | Length | Reads mapped | Total mapped in sample |
|---|---|---|---|
| A | 2,000 bp = 2.0 kb | 240,000 | 3,000,000 |
| B | 600 bp = 0.6 kb | 100,000 | |
| C | 3,000 bp = 3.0 kb | 64 |
Gene A looks 2.4× "bigger" than B, but that is misleading twice over:
| Trap | Why the raw count lies |
|---|---|
| Length | A is 2.0 kb and B is 0.6 kb. A longer transcript simply collects more reads at the same expression level, the way a longer street collects more litter. Left uncorrected, every length comparison is really a length measurement. |
| Sequencing depth | Run the same library twice as deep and every gene's count doubles. The number says how much you sequenced, not how much the cell expressed. |
So there are two corrections to make. The only question is which one you apply first — and that single choice is the entire difference between RPKM/FPKM and TPM.
3b · RPKM and FPKM — length first
RPKM/FPKM: divide by length first, then by total reads; totals vary between samples.
Reads Per Kilobase per Million mapped reads. Two steps, in this order:
- Divide the count by the gene's length in kb → this removes the length advantage.
- Divide by (total mapped reads ÷ 1,000,000) → this removes the depth advantage.
| Gene | Step 1: reads ÷ length (kb) | Step 2: ÷ 3.0 | RPKM |
|---|---|---|---|
| A | 240,000 ÷ 2.0 = 120,000 | 120,000 ÷ 3.0 | 40,000 |
| B | 100,000 ÷ 0.6 = 166,667 | 166,667 ÷ 3.0 | 55,556 |
| C | 64 ÷ 3.0 = 21.3 | 21.3 ÷ 3.0 | 7.1 |
The ranking changed. By raw reads A beat B by 2.4×; by RPKM B beats A. Raw counts had it backwards, and that reversal is the whole point of the metric.
FPKM is the same formula for paired-end data, where both mates come from one physical fragment. Counting fragments instead of reads matters because a fragment is the real molecule; counting its two reads separately would inflate long fragments. On single-end data RPKM and FPKM are numerically identical.
3c · TPM — depth first
TPM: divide by length first, then rescale to a fixed million — comparable across samples.
Transcripts Per Million. Same two corrections, opposite order:
- Divide each count by its length in kb.
- Add up those length-corrected values, then express each as a share of that total × 1,000,000.
| Gene | Step 1: reads ÷ length (kb) | Step 2: share of 286,688 × 106 | TPM |
|---|---|---|---|
| A | 120,000 | 120,000 ÷ 286,688 | 418,574 |
| B | 166,667 | 166,667 ÷ 286,688 | 581,352 |
| C | 21.3 | 21.3 ÷ 286,688 | 74 |
| Total | 1,000,000 | ||
Note what TPM did not change: B still beats A. Within one sample the two metrics rank genes the same way, because both make the same two corrections. They differ only in what the numbers mean.
3d · The one difference that actually matters
Order matters: TPM sums to 1,000,000; RPKM/FPKM does not.
| RPKM / FPKM | TPM | |
|---|---|---|
| Denominator | Total mapped reads in the sample | The sum of the length-corrected values |
| Do the values sum to a constant? | No — on the example above they sum to 95,563, a number with no meaning that drifts with the sample's composition | Yes — always exactly 1,000,000 |
| Plain-English question it answers | "What fraction of my sequencing reads came from this gene?" | "What share of this sample's total expression is this gene?" |
| Comparing across samples | Shaky: if Sample 2 happens to be dominated by a few very high genes, every other gene's RPKM is pushed down for reasons that have nothing to do with that gene | Stable: each gene is a share of a fixed total, so composition changes are visible instead of hidden |
For this course, remember the dividing line: length and depth are two different confounders, and RPKM/FPKM vs TPM is nothing more than the order you remove them.
3e · log2 fold change — why there is a “2” in it
log2FC: a “2” means 4× change; the log scale symmetrises up- and down-regulation.
Fold change is just a ratio: expression in condition 2 divided by condition 1. The “log2” is only there to make the number symmetric.
| Change | Ratio | log2 of the ratio | Reading |
|---|---|---|---|
| 8× up | 8 | +3 | equal size, opposite sign — the two changes are mirror images |
| 8× down | 1/8 = 0.125 | −3 | |
| unchanged | 1 | 0 | zero means no change, so the axis has a natural centre |
On a plain ratio scale, "up 8-fold" is 8 and "down 8-fold" is 0.125 — not symmetric, and impossible to average sensibly. So log2 turns multiplication into addition: a change of +3 is the same size whether it went up or down, and doubling twice is +1 +1 = +2. Every fold change you read on a volcano plot is this scale.
3f · Why expression is said to be log-normal
Expression is multiplicative → log-normal; the log transform makes statistics tractable.
Take one sample and plot the expression value of every gene. The raw values are wildly skewed: a small number of genes sit at very high values while the mass of genes sits near the bottom, so a linear-axis histogram is one tall spike with a long tail and is hard to read or reason about.
Now take the logarithm of each value and plot that. The same data becomes roughly symmetric and bell-shaped. That is what “log-normal” means: the values themselves follow a normal distribution once you take their log — a normal shape that has been exponentiated.
| Consequence | Why it follows |
|---|---|
| Plot and cluster on a log scale | A single highly expressed gene would otherwise dominate any distance or colour scale, and every other gene would look flat by comparison |
| Summarise with a geometric mean, not an arithmetic one | On a log-normal distribution the arithmetic mean is dragged upward by the tail and describes no typical gene — the arithmetic mean of 1 and 100 is 50.5, but the geometric mean is 10 |
| A few genes carry most of the reads | This is exactly why TPM's “share of a fixed total” is the more stable way to compare samples — section 3d is this same fact seen from the other side |
- Name the two confounders: transcript length and sequencing depth.
- State the only real difference: RPKM/FPKM correct length then depth; TPM corrects depth then length, so TPM values sum to 1,000,000 and RPKM/FPKM values do not.
- Say what the numbers mean: RPKM/FPKM = share of the reads you collected; TPM = share of the sample's expression.
- Explain log2: it makes up- and down-regulation symmetric around zero, turning multiplication into addition; unlogged ratios are not symmetric and cannot be averaged meaningfully.
4 · Comparing conditions — differential expression
DE tools (DESeq2) model counts; volcano plot = effect size vs significance; correct for multiple testing (FDR).
Read results off a volcano plot: log2 fold change (x) against −log10 p-value (y). Standard tool DESeq2.
A p-value can display as 0. Below the tool's numerical precision it prints as zero — a formatting artefact, not infinite significance.
Thousands of genes are tested at once, so raw p-values produce false positives and a multiple-testing correction is required. Strictest to most permissive: Bonferroni → Bonferroni step-down → Westfall and Young permutation → Benjamini and Hochberg FDR → None.
5 · Finding patterns — GSEA, clustering, networks
GSEA tests pathways, not single genes; the leading edge is the gene set driving the score.
- GSEA tests whether a set of genes is coordinately shifted rather than testing genes one at a time: genes are ranked by correlation with the phenotype, a random walk along that ranking gives an enrichment score ES(S), the maximum deviation from zero is the score, and the leading edge subset is the part driving it. Gene sets come from MSigDB.
- Clustering / dimensionality reduction — PCA first (PC1 = most variance, then PC2, PC3), then non-linear methods. Worked example: medulloblastoma sub-grouping.
- Co-expression groups correlated genes (e.g. r = 0.7) into modules ME1–ME6.
- Regulatory networks link transcription factors (CEBP, STAT3, BHLHE40, FOSL2, RUNX1) to targets — the slide carries a literal “Target?” arrow, because inferring the target is the open problem.
- Deconvolution — CIBERSORT/CIBERSORTx infers cell-type composition from bulk. This is the bridge to single cell: if composition is the answer, bulk is not enough.
- Alternative splicing — the same data reveals splicing patterns, which can create a peptide–MHC neoantigen the genome alone would never predict.
- Integrative analysis — WES + RNA-Seq (FPKM ≥ 1) → NetMHCpan → candidate neoantigen: genomics supplies the mutation, transcriptomics proves it is expressed.
6 · Non-coding RNAs as products
ncRNAs as drugs — the 2024 Nobel recognised microRNA.
By therapeutic interest the cell is the small and long non-coding classes. lncRNA mechanisms shown: HOTAIR (PRC2/LSD1 → H3K27me), BACE1-AS, HULC (sponges miR-372), NEAT1 (paraspeckles), NRON (NFAT) — with a commercial pipeline slide from NextRNA. microRNA drugs and circular RNA are developed as products, and a 26-row table lists approved RNA medicines (see Detail Pass).
7 · Single-cell RNA sequencing
scRNA-seq: barcode per cell, UMI per molecule; drop-outs are the key artefact.
Why single cell? Bulk averages millions of cells, so a rare subpopulation vanishes into the mean. Single cell resolves the mean into its components.
| Term | Definition on the slide |
|---|---|
| UMI | Labels each individual mRNA molecule so amplification noise and bias can be removed by counting molecules instead of reads. Order matters: tag first, amplify second, de-duplicate by tag |
| Drop-out | A gene at moderate or high level in one cell but not detected in another. Causes: technical artifacts, statistical sampling, biological factors |
Because capture per cell is tiny, a zero is ambiguous — absence of evidence is not evidence of absence. The three responses, ranked by how much they assume:
- Ignore zero inflation — assume most zeros are real biology.
- Reduce dimensions — the most widely used; sidestep the zeros rather than imputing.
- Impute — e.g. MAGIC (van Dijk et al, Cell 2018), smoothing along a cell-similarity graph. Powerful, but it invents values and can manufacture structure that was not there.
Pipeline: dimensionality reduction → clustering → marker genes → annotation → downstream biology. Reduction: linear (PCA, ICA), non-linear (t-SNE, UMAP), model-based (ZIFA), deep learning (VAE, scvis, DCA), ensemble (SIMLR). PCA is a linear algebraic method and its stated limitation is that PCs are linear combinations, so it fails to find non-linear structure. Clustering is k-means, hierarchical or graph-based (node = cell, edge = similarity), with Louvain and Leiden.
8 · Spatial transcriptomics — putting the cells back
Spatial adds position back: imaging-based vs sequencing-based platforms.
Single cell's central limitation: dissociating the tissue destroys where each cell was. Spatial transcriptomics restores it — imaging-based methods (IMC, MERSCOPE, Xenium, CosMx) read targeted panels in place; sequencing-based methods (Slide-seqV2, Stereo-seq, Visium HD) capture transcriptome-wide. Analysis splits into A–G (Detail Pass); newest work is multi-omic (Nature 2024).
9 · Clinical / Business Logic
Deconvolution (CIBERSORT) estimates the cell mix from bulk — the clinical bridge.
| Angle | Slide evidence |
|---|---|
| Tissue-restricted targets | Claudin 18.2 (stomach) and NY-ESO-1/CTAG1B, a cancer/testis antigen confined to testis. Expression specificity buys the therapeutic window — the same argument as gene fusions in L4 |
| Expression as a target | ERBB2 (HER2) across TCGA cohorts; PAAD normal vs PAAD at P = 6.44 × 10−43 |
| Neoantigen vaccines | Constructs encoding NY-ESO-1, Tyrosinase, MAGE-A3, TPTE (Nature 2020, NCT02410733) |
| RNA as the drug | 26 approved RNA medicines; siRNA, ASO, aptamer, mRNA and circRNA pipelines |
| Platform economics | Single-cell and spatial platforms sell on throughput, sensitivity and protocol simplicity — the same trade-off shape as WGS/WES/panel in L4 |
Exam Focus — what is most likely to be asked
- The central dogma mapping — genomics / transcriptomics / proteomics on DNA / RNA / protein.
- RNA class sizes — miRNA ~21 nt, piRNA 29–30 nt, tRNA 74–95 nt, lncRNA kb scale.
- Why splice-aware aligners are needed — a read can span an exon–exon junction that does not exist in the genome.
- Why normalisation is needed — counts depend on length and on depth, two different confounders; TPM and RPKM/FPKM differ in the order they correct.
- Drop-out — a zero in single-cell data is ambiguous, which is why the three responses rank by how much they assume away.
PCA's limitation stated precisely — not “PCA is bad”, but “PCs are linear combinations, so PCA cannot find non-linear structure”, which is exactly why t-SNE and UMAP exist.
Detail Pass — the fuller tables from the slides
The fuller tables from the slides — the detail layer.
MSigDB collections and their sizes (the GSEA gene-set database):
| Collection | Content | Sets |
|---|---|---|
| H | Hallmark gene sets | 50 |
| C1 | Positional gene sets | 302 |
| C2 | Curated gene sets | 7,411 |
| CGP | Chemical and genetic perturbations | 3,494 |
| CP | Canonical pathways (includes BioCarta 292; KEGG_MEDICUS 436) | 3,917 |
Sets download as GMT files, keyed by gene symbol or NCBI Entrez ID. Pipeline on the slide: Molecular Profile Data + Gene Set Database → run GSEA → enriched sets.
Approved RNA medicines — the table's own columns are originator, name, site of action, platform modality/MOA and approval year. Representative rows:
| Originator | Product | Site | Modality / MOA | Year |
|---|---|---|---|---|
| Alnylam | AMVUTTRA (vutrisiran) | Hepatocytes | siRNA knockdown TTR | 2022 |
| Alnylam | LEQVIO (inclisiran) | Hepatocytes | siRNA knockdown PCSK9 | 2021 |
| Alnylam | OXLUMO (lumasiran) | Hepatocytes | siRNA knockdown HAO1 | 2020 |
The full table has 26 rows and also covers Ionis ASOs, aptamers, mRNA vaccines and Sarepta Duchenne ASOs. Note the pattern: most siRNA products target hepatocytes, because that is where GalNAc-conjugated delivery accumulates.
Single-cell platform families and what each trades away (scored + to +++ on the slide):
| Family | Examples | Throughput | Flexibility | Sensitivity | Simplicity | Adoption |
|---|---|---|---|---|---|---|
| Plate-based / sorted | Smart-Seq, CEL-Seq, Quartz-Seq | + | +++ | +++ | ++ | ++ |
| Droplet microfluidics | Drop-Seq, 10X Genomics, Bio-Rad ddSeq | ++ | + | ++ | +++ | +++ |
| Micro / nanowell | Microwell-Seq, BD Rhapsody, Singleron Matrix | ++ | ++ | ++ | + | + |
| Split / pool combinatorial | SPLiT-seq, sci-RNA-Seq, Parse Evercode | +++ | ++ | ++ | ++ | ++ |
No platform is best on all five. Plate-based wins flexibility and depth; droplet wins simplicity and adoption; split/pool wins throughput.
Marker gene to cell type — the Louvain-group table that turns clusters into biology:
| Louvain group | Markers | Cell type |
|---|---|---|
| 0 | IL7R | CD4 T cells |
| 1 | CD14, LYZ | CD14+ monocytes |
| 2 | MS4A1 | B cells |
| 3 | CD8A | CD8 T cells |
| 4 | GNLY, NKG7 | NK cells |
| 5 | FCGR3A, MS4A7 | FCGR3A+ monocytes |
| 6 | FCER1A, CST3 | Dendritic cells |
| 7 | PPBP | Megakaryocytes |
Marker-test methods: non-parametric (Wilcoxon rank sum, Student's t-test); scRNA-specific MAST (treats cellular detection rate as a covariate); bulk method DESeq2. Annotation tools are benchmarked across datasets (Pancreas, CellBench, Allen Mouse Brain, PBMC and others) — SVM_rejection, scPred and SVM are shown leading that benchmark.
Spatial platforms split by how they read the tissue:
| Category | Methods named | Breadth |
|---|---|---|
| Imaging-based | IMC, MERSCOPE, Xenium, CosMx | Targeted (antibody or probe panels) |
| Sequencing-based | Slide-SeqV2, Stereo-seq, VisiumHD | Transcriptome-wide (in situ mRNA capture, then library prep and sequencing) |
Spatial analysis categories A–G: A Image Analysis · B Cell Type Identification · C Deconvolution · D Spatial Distribution · E Cell–Cell Interaction · F Spatial Expression Patterns · G Subcellular.
Stereo-seq is worth one line of detail: a DNB patterned chip up to 174.24 cm² with 220 nm centres, giving spatially resolved transcriptomics at cellular resolution. It produced MOSTA (Mouse Organogenesis Spatiotemporal Transcriptomic Atlas) — 8 stages, 53 sections, E9.5 to E16.5 — and the companion tool Spateo for 3D reconstruction and spatiotemporal modelling.
Cell barcode vs UMI — two identifiers doing different jobs
Single-cell libraries carry two molecular tags, and confusing them is the standard error: the cell barcode says which cell a read came from, while the UMI says which original RNA molecule it came from — and only the UMI removes the PCR amplification bias.
| Tag | Answers | What bias it removes |
|---|---|---|
| Cell barcode | Which cell? | — (it is an address, not a correction). Shared by every read from one cell; "doublets" occur when two cells receive the same barcode. |
| UMI (Unique Molecular Identifier) | Which original molecule? | PCR amplification bias. All copies of one original molecule carry the same UMI, so they are counted once. Without it, a highly amplified molecule looks like high expression. |
The consequence to state in an answer: raw read counts are not expression. De-duplicating by UMI is what converts reads into molecule counts, which is what quantification should be based on.
scRNA-seq vs snRNA-seq vs PAXgene — what is actually in the tube
Three ways to get RNA out of tissue, and they do not measure the same pool: scRNA uses whole live cells (cytoplasm + nucleus, mostly mature mRNA), snRNA uses nuclei only (rich in introns and pre-mRNA, no mitochondrial RNA), PAXgene is a whole-blood collection tube giving bulk total RNA.
| Method | Input | RNA content | Use when |
|---|---|---|---|
| scRNA-seq | Intact live cell | Cytoplasmic + nuclear; predominantly mature mRNA; mitochondrial RNA present | Fresh tissue you can dissociate now; you want surface-marker and full transcriptome resolution. |
| snRNA-seq | Isolated nucleus | Abundant introns / pre-mRNA; essentially no mitochondrial RNA | Frozen or archived tissue, or cells too large / fragile to dissociate (neurons, cardiomyocytes, adipocytes). Intronic reads can also boost sensitivity. |
| PAXgene | Whole blood in a stabilising tube | Bulk total RNA from all lysed cells; mostly mature mRNA | Clinical blood sampling where immediate processing is impossible — the tube stabilises the profile at the point of draw. |
Design consequence: scRNA and snRNA are not interchangeable datasets. A dissociation step biases scRNA against fragile cell types, which is precisely why snRNA exists. Comparing the two without accounting for that is a common analysis error.
Reverse transcription — the step before any RNA sequencing
RNA cannot be sequenced directly by the standard platforms, so it must first be copied into cDNA by reverse transcriptase. This is why the library-prep step, not the sequencer, is where most RNA-seq bias is introduced.
Two consequences worth carrying: (1) any bias in reverse transcription (secondary structure, GC content, primer efficiency) is inherited by the final counts — it is a library-prep artefact, not biology. (2) Because the message is copied before amplification, the UMI must be attached before PCR (see above) for de-duplication to be valid.
Recall the two enrichment choices from the main notes — poly(A) selection (mature mRNA) versus rRNA depletion (keeps non-coding and degraded RNA) — those decide which RNA molecules reach the reverse transcription step in the first place.
GTEx — the normal-tissue baseline that makes a tumour antigen safe
GTEx (Genotype-Tissue Expression) is the reference atlas of gene expression across healthy human tissues. It is the tool that answers the safety question behind any target: is this antigen also present somewhere healthy?
Worked example from the notes: NY-ESO-1, a cancer/testis antigen. Its attractiveness as an immunotherapy target rests on expression being confined to tumour and to immune-privileged testis — and that claim is verified by checking GTEx for absence in normal somatic tissues.
This is the experimental form of the L6 target criterion “tissue distribution: primarily in diseased tissue and not healthy tissue”. GTEx is simply where you go to check it. An antigen expressed in myocardium or liver is an on-target off-tumour toxicity risk regardless of how tumour-specific it looks in a cancer cohort.