Hands-on Workshop

Practice the analysis from each chapter in Python โ€” live in Google Colab, on real RNA-seq data, no install. Click a notebook to open it in your browser.

๐Ÿงช Real datasets: the airway bulk RNA-seq study (Himes et al., 2014) for chapters 1โ€“4, and the 10x PBMC 3k single-cell dataset for chapter 5.
1
๐Ÿ“– 20 minFor CHAPTER 1

Exploring RNA-seq count data

Load a real count matrix, inspect library sizes, normalize to log-CPM, and see samples separate by PCA.

What you'll learn
  • Read a gene ร— sample count matrix with pandas
  • Why library sizes differ and why we normalize
  • CPM and log transformation
  • PCA of samples (treated vs control)
โœ๏ธ Exercises
  • Find the 10 most highly expressed genes
Open in Colab โ–ถ
2
๐Ÿ“– 35 minFor CHAPTER 2

Differential expression with PyDESeq2

Run the DESeq2 workflow in Python and reproduce the volcano, MA and heatmap figures on real data.

What you'll learn
  • Run DESeq2 (PyDESeq2) on a count matrix
  • Read a results table: fold-change, p-value, padj
  • Map Ensembl IDs to gene symbols with mygene
  • Volcano plot and clustered heatmap of DEGs
โœ๏ธ Exercises
  • Locate CRISPLD2 โ€” is it significantly changed?
Open in Colab โ–ถ
3
๐Ÿ“– 30 minFor CHAPTER 3

Pathway enrichment analysis

Turn a gene list into biological pathways with gseapy โ€” over-representation (Enrichr) and GSEA.

What you'll learn
  • Over-representation analysis with Enrichr
  • GO Biological Process and KEGG libraries
  • Enriched-terms dot plot
  • GSEA on a ranked gene list
โœ๏ธ Exercises
  • Run enrichment on the downregulated genes
Open in Colab โ–ถ
4
๐Ÿ“– 25 minFor CHAPTER 4

Interpreting & visualizing enrichment

Build an EnrichmentMap-style network of pathways and learn the interpretation cautions from Chapter 4.

What you'll learn
  • Build a pathway network with networkx
  • Jaccard gene-overlap between pathways
  • Reading clusters in an enrichment map
  • ORA vs GSEA โ€” background, cutoffs, reproducibility
โœ๏ธ Exercises
  • Change the Jaccard threshold and compare the map
Open in Colab โ–ถ
5
๐Ÿ“– 30 minFor CHAPTER 5

Single-cell RNA-seq with Scanpy

Run the full single-cell workflow on real 10x PBMC data โ€” QC, clustering (Leiden/UMAP) and marker genes.

What you'll learn
  • Load 10x PBMC data as an AnnData object
  • Quality control: mitochondrial %, gene counts
  • Normalization and highly variable genes
  • PCA, neighbor graph and UMAP
  • Leiden clustering and marker-gene identification
โœ๏ธ Exercises
  • Colour the UMAP by a marker gene (LYZ or PPBP)
Open in Colab โ–ถ

โ†— All notebooks & data on GitHub

โšก Advanced: drive Colab with an AI agent (Colab MCP Server)

Google's open-source Colab MCP Server lets an AI agent (Claude Code, Gemini CLI) create notebooks and run Python on Colab runtimes โ€” including GPUs โ€” for you. Connect it with this one MCP command, then ask your agent to build and execute an analysis:

# One-time: install uv, then register the Colab MCP server
pip install uv
# Add to your agent's MCP config:
{
  "mcpServers": {
    "colab": {
      "command": "uvx",
      "args": ["git+https://github.com/googlecolab/colab-mcp"]
    }
  }
}

This is an optional advanced track โ€” the notebooks above need nothing but a browser and a Google account.