Figures you can explain.

Publication-Ready Figures in 3 Hours. ggplot2 and ComplexHeatmap on real genomics and single-cell data, so you build each figure from your data instead of hoping a function does the right thing.

Lifetime access and every update. Seven-day money-back guarantee. Includes a one-click RStudio in the browser with every package installed.

Also free with my new book, What They Don't Teach You in Bioinformatics. See the book

ComplexHeatmap of 20 genes across 32 TCGA cancer types, split by organ, from lesson 3

Making a plot takes one line of R.

Knowing whether that plot tells the truth takes much longer.

Default heatmaps cluster first and scale second. A boxplot of five samples hides how noisy they are. Seurat's one-line wrappers quietly add noise, drop genes and reorder cells. You can't fix what you can't see, and a reviewer will ask. This course shows you what each command does to your data, so you can make the figure you meant to make and defend every choice in it.

What you will learn.

Four lessons, about three hours.

Text you can search and code that runs, on real data. Self-paced. Every lesson ends with exercises and worked solutions. Open a lesson to see what it covers.

Free preview Lesson 1, How to read (and plan) a genomics figure, is open to everyone. Read it now

Lesson 1 · How to read (and plan) a genomics figure Free preview

Read this lesson free, no sign-up

  • Six plot types cover 90% of genomics figures
  • Break a figure into x, y and plot type
  • A boxplot of five samples can fool you
  • Sequential or diverging: pick the color map for your data
  • Plot your data before you trust a number
  • Making the plot is 10% of the work
  • Your turn, with solutions
Lesson 2 · Practical ggplot2 with TCGA data
  • Six plot types, one grammar
  • Read and inspect the TCGA table (and find the mistake I left in it)
  • Scatter plots: does one gene follow another?
  • Histograms and density plots: the shape of a gene
  • Boxplots and violin plots: one gene across 32 cancer types
  • Bar plots and the factor levels behind every order
  • Line plots: only when x has an order
  • Heatmaps with geom_tile
  • From draft to figure: labels, themes, patchwork, ggsave
  • Your turn, with solutions, and a cheat sheet
Lesson 3 · Heatmaps demystified with ComplexHeatmap
  • A heatmap is three decisions
  • Distance, linkage and the dendrogram
  • Three functions, three defaults
  • Correlation distance: cluster by shape, not by size
  • Color mapping: outliers, colorRamp2() and choosing a palette
  • A real heatmap: 20 genes across 32 TCGA cancer types
  • Big matrices: rasterize the heatmap body
  • Why differential expression heatmaps look so good
  • Your turn, with solutions, and a cheat sheet
Lesson 4 · Single-cell figures from scratch
  • Where the data lives in a Seurat object
  • QC plots: VlnPlot() and FeatureScatter()
  • From counts to clusters: ElbowPlot()
  • UMAP colored by cell type: DimPlot()
  • Gene expression on the UMAP: FeaturePlot() and the order of the dots
  • Violin plots: the noise VlnPlot() adds
  • Dot plots: what the size and the color really mean
  • Heatmaps: DoHeatmap(), geom_raster() and ComplexHeatmap
  • Your turn, with solutions

The figures you will make.

Three-panel figure: scatter plot, cumulative distribution lines and EPCAM boxplots across 32 TCGA cancer types
Lesson 2 · one figure, three panels, patchwork
Boxplot of TACSTD2 in 304 cervical tumors versus 3 normal samples
Lesson 1 · 304 tumors vs 3 normals
The same heatmap with a sequential and a diverging color map
Lesson 1 · sequential or diverging colors
UMAP of PBMC 3k colored by cell type
Lesson 4 · UMAP colored by cell type
Dot plot of marker genes across PBMC cell types
Lesson 4 · what a dot plot's size and color mean

What's included.

  • Lifetime access and every update
  • 4 text lessons with all the code, about 3 hours in total
  • Real data: TCGA RNA-seq for 20 genes in 11,348 samples, and the 10x PBMC 3k single-cell dataset
  • Exercises at the end of every lesson, with worked solutions
  • A one-click RStudio in your browser with every package and the data installed, or run it on your own computer
  • The full code to download: every lesson as .qmd and plain .R scripts, plus the package versions
  • Ask questions right on each lesson section; classmates and I answer there

Who it's for

Biologists and early-career bioinformaticians who know basic R: you can read a CSV into a data frame and call library(). You make figures, but they take too long, or they come out of a package wrapper and you can't change what you need. Maybe a reviewer asked why your heatmap looks the way it does, and you weren't sure.

New to R? Start with Real World Bioinformatics with R. This course comes with it.

Ming (Tommy) Tang

Your instructor.

Dr. Ming "Tommy" Tang, Director of Bioinformatics in Big Pharma. He trained in a wet lab during his PhD, then spent over ten years in computational biology, including leading the bioinformatics analysis for large clinical trials at Dana-Farber Cancer Institute. He has written about heatmaps and single-cell figures on his blog, Diving into Genetics and Genomics, for years; this course puts it in order.

One payment. Lifetime access.

All four lessons, the data, the code, every future update, and answers to your questions on each lesson.

$199

If you sign up and feel the course isn't right for you, email within seven days for a full refund.

Enroll now

Or get it free with my new book, What They Don't Teach You in Bioinformatics: see the book.

Also included with Real World Bioinformatics with R, with Practical scRNA-seq Analysis with R and with both course bundles: see the bundles.

Already bought a course and want a bundle? Reply to your receipt and I'll credit what you paid.

Questions people ask.

How much R do I need?

Basic R. If you can read a CSV into a data frame and load a package with library(), you can follow along. Lesson 1 is free, so you can check before you buy.

Do I need to install anything?

No. The course comes with a one-click RStudio in your browser (GitHub Codespaces, free account) with every package and the data ready. If you prefer your own computer, the Welcome page lists the packages and a script that downloads the data.

How long does it take?

About three hours: lesson 1 takes about 25 minutes, lessons 2 and 4 about an hour each, and lesson 3 about 45 minutes. One lesson per sitting is fine.

Is it really free with the book?

Yes. Founding readers of What They Don't Teach You in Bioinformatics get this course free, together with two other bonus courses, until Saturday, December 5, 11:59 pm ET. It's in your account the moment you buy the book.

I have the R course or the single-cell course. Do I need to buy this?

No. This course comes with Real World Bioinformatics with R, with Practical scRNA-seq Analysis with R and with both course bundles. Log in and it is in your account.

How do I access the course after buying?

Within minutes of checkout you get an email. Log in at learn.chatomics.com with your purchase email; we send you a login link, no password needed.

How can I ask questions?

Right on the lesson: every section has a button to ask about it and to read what classmates already asked. I answer there.