Dr Cheng ZhangDigital Liver Group · translational systems medicine
Bioinformatics, step by step

Short videos (2.5–4 minutes) that explain the ideas and the maths behind bioinformatics analyses, one small step at a time, with a hands-on workshop that reproduces every calculation in R. Everything uses one real data set: mouse hearts after myocardial infarction (MI) or sham surgery, at day 1 and day 3 (ENA project PRJNA412001).

Start with F1 → Open the workshop

Foundations

How sequencing works, from the bench to the files: no background needed.

F12:40

From Sanger to next-generation sequencing

Sequencing means copying DNA one letter at a time and watching each letter. Chain termination, capillary electrophoresis, and what changed with massively parallel sequencing.

F22:28

Library preparation

How an RNA sample becomes a library: poly-A capture, fragmentation, cDNA synthesis, A-tailing and adapters. The anatomy of one library molecule: P5, primer sites, insert, index, P7.

F32:36

Cluster generation: bridge amplification

On the flow cell, each library molecule lands, is copied, bends over into a bridge, and doubles again and again into a cluster of about a thousand identical copies.

F42:47

Sequencing by synthesis

Dyed, blocked nucleotides: add, photograph, cut, one letter per cycle. Why quality falls along a read, how the index read sorts samples, and how read 2 reads the other end.

F52:49

FASTQ files and quality scores

Four lines per read. The Phred score, Q = −10 log₁₀ P, stored as one ASCII character per letter, and a FastQC-style check of real reads.

F62:41

Reference files: FASTA and GTF

Genome and transcriptome FASTA files, reading a header, the nine columns of a GTF file, and why the genome build and annotation release must match.

F73:33

Alignment, SAM and BAM

Splice-aware alignment of RNA reads (a real read jumping a 406-letter intron), and the SAM fields that matter: FLAG, MAPQ and CIGAR.

F82:27

The pipeline: from FASTQ to a count table

Quality control, alignment and counting, or pseudo-alignment; the count matrix and its metadata; how 30 GB of reads become a 1.4 MB table.

Transcriptomics

From a count table to statistics and pathways: bulk RNA-seq analysis, step by step.

T13:03

What does RNA-seq measure?

Counts of mRNA fragments as a proxy for gene activity, the experiment used throughout, and the road map of the transcriptomics part.

T23:56

From reads to counts

k-mers and pseudo-alignment as the intersection of compatibility sets, and the EM algorithm that shares out ambiguous reads.

T33:14

Counts, lengths and TPM

Sequencing depth and gene length biases; TPM versus RPKM, worked by hand; why TPM is a share of a fixed total.

T43:09

PCA, step by step

The line of maximum variance, built from scratch with two genes; then why raw TPM misleads and a variance-stabilising transformation helps.

T53:05

Size factors: the median of ratios

DESeq2's size factors, computed by hand on five real genes: a geometric-mean pseudo-reference and the median ratio.

T62:55

Counts are noisy: the negative binomial

Why counts vary more than Poisson predicts, variance = μ + αμ², and how DESeq2 shrinks dispersions towards a trend.

T73:24

Testing one gene: the GLM and the Wald test

The generalised linear model behind DESeq2, the log fold change as β₁, and the Wald test z = β₁ / SE, worked on real genes.

T83:34

20,000 tests at once: the false discovery rate

p-value histograms, Bonferroni and Benjamini–Hochberg by hand, and why some adjusted p-values are NA.

T94:07

From gene lists to pathways

Over-representation with the hypergeometric test, gene set enrichment's running sum, piano, and why results need a sanity check.

T102:57

Designs with more than one factor

Design formulas and model matrices, additive versus interaction models, and correcting for batch.