ABCT 101 · L5 · Transcriptomics

📚 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).

Numbers and contrasts worth memorising
ItemValue
Human genome~20,000 genes
microRNA~21 nt, processed by DICER
piRNA29–30 nt
tRNA74–95 nt
lncRNA~2.2 kb – ~17 kb
Most abundant RNA by molecule numberrRNA
Library strategiesPolyA enrichment (misses non-polyA) vs rRNA depletion (costs more, keeps them)
Named alignerSTAR; also HISAT2, BOWTIE2, Kallisto
Differential expression toolDESeq2; volcano = log2FC (x) vs −log10 p (y)
PCAPC1 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.

LayerMolecule-omics name
DNA → (transcription)GenomeGenomics
RNA → (translation)TranscriptomeTranscriptomics
ProteinProteomeProteomics

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.

ClassSizeWhat it does
mRNA (coding)kb scaleCarries the code: 5′cap, 5′UTR, open reading frame (start/stop), exon/intron, Poly-A tail
microRNA~21 ntDICER-processed; binds mRNA to block translation or trigger degradation
piRNA29–30 ntGermline-associated small RNA
tRNA74–95 ntThe physical adapter — must fold, so it must be long enough: acceptor stem, TψC loop, D-loop, variable loop, anticodon loop
snRNA / snoRNA / sbRNAintermediateSplicing and RNA-processing machinery
lncRNA~2.2 kb – ~17 kbScaffold / 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.

StrategyHowGain / lose
PolyA enrichmentDenature → hybridise the poly(A) tail (oligo-dT) → eluteCheap, mRNA-focused. Misses non-polyA transcripts and degraded RNA
rRNA depletionRemove 18S and 28S rRNA, then fragmentKeeps non-polyA transcripts (many lncRNAs; FFPE/degraded). Costs more, needs more input
TechnologyPrincipleLimitation
MicroarrayFluorescent cDNA hybridised to an array: binding means the gene is expressedOnly sees what is on the array — cannot discover new transcripts
RNA-seqFragment → reverse transcribe → sequence → mapRead length bounds what you can resolve
NanoporeStrand threaded through a motor protein and reader protein; ionic current decoded by basecallingLower 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:

GeneLengthReads mappedTotal mapped in sample
A2,000 bp = 2.0 kb240,0003,000,000
B600 bp = 0.6 kb100,000
C3,000 bp = 3.0 kb64

Gene A looks 2.4× "bigger" than B, but that is misleading twice over:

TrapWhy the raw count lies
LengthA 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 depthRun 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:

  1. Divide the count by the gene's length in kb → this removes the length advantage.
  2. Divide by (total mapped reads ÷ 1,000,000) → this removes the depth advantage.
GeneStep 1: reads ÷ length (kb)Step 2: ÷ 3.0RPKM
A240,000 ÷ 2.0 = 120,000120,000 ÷ 3.040,000
B100,000 ÷ 0.6 = 166,667166,667 ÷ 3.055,556
C64 ÷ 3.0 = 21.321.3 ÷ 3.07.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:

  1. Divide each count by its length in kb.
  2. Add up those length-corrected values, then express each as a share of that total × 1,000,000.
GeneStep 1: reads ÷ length (kb)Step 2: share of 286,688 × 106TPM
A120,000120,000 ÷ 286,688418,574
B166,667166,667 ÷ 286,688581,352
C21.321.3 ÷ 286,68874
Total1,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 / FPKMTPM
DenominatorTotal mapped reads in the sampleThe 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 compositionYes — 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 samplesShaky: 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 geneStable: each gene is a share of a fixed total, so composition changes are visible instead of hidden
The 10-second version RPKM/FPKM normalise by "per million reads I collected". TPM normalises by "per million, out of everyone else". Per-million-of-total is a moving yardstick, because the total depends on which other genes were expressed. Per-million-of-everyone is a fixed one.
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.

ChangeRatiolog2 of the ratioReading
8× up8+3equal size, opposite sign — the two changes are mirror images
8× down1/8 = 0.125−3
unchanged10zero 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.

Two things the “2” does not mean It is not a count of anything, and it is not a p-value. A gene at log2FC = 3 moved 8-fold; whether that is significant is a separate question answered by the y-axis.

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.

ConsequenceWhy it follows
Plot and cluster on a log scaleA 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 oneOn 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 readsThis 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
Do not over-extend it “Log-normal” describes the shape of the expression values. It does not mean you feed log values into the differential-expression test. DESeq2 models the raw counts with a negative binomial distribution and does its own transformation internally — the log-normal observation is for plotting, summarising and sanity-checking, not a licence to run a t-test on log TPM.
If this section is examined, these are the four answers
  1. Name the two confounders: transcript length and sequencing depth.
  2. 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.
  3. Say what the numbers mean: RPKM/FPKM = share of the reads you collected; TPM = share of the sample's expression.
  4. 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.

Two traps the slide flags itself Pseudocount. log2FC divides one condition by the other, so a gene with zero counts in one group breaks the arithmetic — add a pseudocount before taking the log.
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.

TermDefinition on the slide
UMILabels 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-outA 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:

  1. Ignore zero inflation — assume most zeros are real biology.
  2. Reduce dimensions — the most widely used; sidestep the zeros rather than imputing.
  3. 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.

AngleSlide evidence
Tissue-restricted targetsClaudin 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 targetERBB2 (HER2) across TCGA cohorts; PAAD normal vs PAAD at P = 6.44 × 10−43
Neoantigen vaccinesConstructs encoding NY-ESO-1, Tyrosinase, MAGE-A3, TPTE (Nature 2020, NCT02410733)
RNA as the drug26 approved RNA medicines; siRNA, ASO, aptamer, mRNA and circRNA pipelines
Platform economicsSingle-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 five that carry the most marks
  1. The central dogma mapping — genomics / transcriptomics / proteomics on DNA / RNA / protein.
  2. RNA class sizes — miRNA ~21 nt, piRNA 29–30 nt, tRNA 74–95 nt, lncRNA kb scale.
  3. Why splice-aware aligners are needed — a read can span an exon–exon junction that does not exist in the genome.
  4. Why normalisation is needed — counts depend on length and on depth, two different confounders; TPM and RPKM/FPKM differ in the order they correct.
  5. Drop-out — a zero in single-cell data is ambiguous, which is why the three responses rank by how much they assume away.
Two easy marks people lose PolyA enrichment vs rRNA depletion — the first misses non-polyA transcripts; the second costs more but keeps them.
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):

CollectionContentSets
HHallmark gene sets50
C1Positional gene sets302
C2Curated gene sets7,411
CGPChemical and genetic perturbations3,494
CPCanonical 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:

OriginatorProductSiteModality / MOAYear
AlnylamAMVUTTRA (vutrisiran)HepatocytessiRNA knockdown TTR2022
AlnylamLEQVIO (inclisiran)HepatocytessiRNA knockdown PCSK92021
AlnylamOXLUMO (lumasiran)HepatocytessiRNA knockdown HAO12020

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):

FamilyExamplesThroughputFlexibilitySensitivitySimplicityAdoption
Plate-based / sortedSmart-Seq, CEL-Seq, Quartz-Seq+++++++++++
Droplet microfluidicsDrop-Seq, 10X Genomics, Bio-Rad ddSeq+++++++++++
Micro / nanowellMicrowell-Seq, BD Rhapsody, Singleron Matrix++++++++
Split / pool combinatorialSPLiT-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 groupMarkersCell type
0IL7RCD4 T cells
1CD14, LYZCD14+ monocytes
2MS4A1B cells
3CD8ACD8 T cells
4GNLY, NKG7NK cells
5FCGR3A, MS4A7FCGR3A+ monocytes
6FCER1A, CST3Dendritic cells
7PPBPMegakaryocytes

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:

CategoryMethods namedBreadth
Imaging-basedIMC, MERSCOPE, Xenium, CosMxTargeted (antibody or probe panels)
Sequencing-basedSlide-SeqV2, Stereo-seq, VisiumHDTranscriptome-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.

TagAnswersWhat bias it removes
Cell barcodeWhich 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.

MethodInputRNA contentUse when
scRNA-seqIntact live cellCytoplasmic + nuclear; predominantly mature mRNA; mitochondrial RNA presentFresh tissue you can dissociate now; you want surface-marker and full transcriptome resolution.
snRNA-seqIsolated nucleusAbundant introns / pre-mRNA; essentially no mitochondrial RNAFrozen or archived tissue, or cells too large / fragile to dissociate (neurons, cardiomyocytes, adipocytes). Intronic reads can also boost sensitivity.
PAXgeneWhole blood in a stabilising tubeBulk total RNA from all lysed cells; mostly mature mRNAClinical 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.

同一個基因組,不同的演奏;定量的關鍵在次序——TPM 總和固定一百萬。