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.
Exploring RNA-seq count data
Load a real count matrix, inspect library sizes, normalize to log-CPM, and see samples separate by PCA.
- 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)
- Find the 10 most highly expressed genes
Differential expression with PyDESeq2
Run the DESeq2 workflow in Python and reproduce the volcano, MA and heatmap figures on real data.
- 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
- Locate CRISPLD2 โ is it significantly changed?
Pathway enrichment analysis
Turn a gene list into biological pathways with gseapy โ over-representation (Enrichr) and GSEA.
- Over-representation analysis with Enrichr
- GO Biological Process and KEGG libraries
- Enriched-terms dot plot
- GSEA on a ranked gene list
- Run enrichment on the downregulated genes
Interpreting & visualizing enrichment
Build an EnrichmentMap-style network of pathways and learn the interpretation cautions from Chapter 4.
- Build a pathway network with networkx
- Jaccard gene-overlap between pathways
- Reading clusters in an enrichment map
- ORA vs GSEA โ background, cutoffs, reproducibility
- Change the Jaccard threshold and compare the map
Single-cell RNA-seq with Scanpy
Run the full single-cell workflow on real 10x PBMC data โ QC, clustering (Leiden/UMAP) and marker genes.
- 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
- Colour the UMAP by a marker gene (LYZ or PPBP)
โ 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.