LSMA

LONDON SCHOOL OF MULTIOMICS & AI

Free course

Free course

Introduction to R

0 of 25 lessons

Free course

4 modules · 22 lessons + 3 projects · no experience needed · by application · opens December 2026

Introduction to R

Introduction to R

Introduction to R

Learn R from the first line, then the statistics behind every analysis, figures that tell the truth, and a full RNA-seq differential expression analysis of a published experiment.

About this course

Learn R the way biologists use it. You start with your first line of code and finish by analysing a published RNA-seq experiment. Along the way you learn the statistics behind everyday analyses and how to make figures that are honest about uncertainty.

Who it is for: Anyone who analyses data in a spreadsheet today and wants a reproducible, more powerful way to work. No coding experience needed.

Free, by applicationSend us your CV and a short cover letter. Our team reviews every application and opens the lessons when it is approved. Diploma students get every free course automatically. Your progress is saved to your account, and when you finish every lesson you can claim a certificate of completion.
Apply

By the end you can

  • Write R scripts with vectors, functions, loops and data frames
  • Clean and reshape data with dplyr and tidyr, and plot it with ggplot2
  • Choose and run the right test, and report effect sizes with confidence intervals
  • Fit and interpret regression models, and control false discoveries across many tests
  • Build honest, colour-blind-safe, publication-ready figures
  • Run DESeq2 on RNA-seq counts and interpret a volcano plot

How this course works

Free and self-paced. Use RStudio on your computer, or R in your browser through Posit Cloud. Most lessons have code to copy, the output it prints, a worked example and three questions. Modules 2–4 each end with a guided project that you check yourself; nothing is submitted.

What you need, and the course files

What you need for each module

ModuleRuns inSet up once
Module 1R and RStudio, or R in the browserExplained in Module 1, lesson 1
Module 2Rinstall.packages("MASS") (often already installed)
Module 3Rinstall.packages(c("ggplot2", "dplyr", "patchwork", "pheatmap"))
Module 4R with BioconductorExplained in Module 4, lesson 1
Course filesSave these next to your scripts. The statistics lessons use datasets that come with R.
airway_samples.csvModule 1 · a sample sheet: 8 samples, donor and treatmentairway_samples_messy.csvModule 1 · the same sheet with deliberate errors, for lesson 4toothgrowth.csvModule 3 · tooth growth in 60 guinea pigs given vitamin C (R's ToothGrowth data)birthweight.csvModule 3 · 189 births: birth weight, mother's weight and age, smoking (from MASS::birthwt)expression_example.csvModule 3 · simulated log2 expression: 30 genes, 8 samplesde_results_example.csvModule 3 · simulated differential expression results for 3,000 genespractice_counts.txtModule 4 · a count table from simulated reads, for the projectpractice_samples.csvModule 4 · its sample sheet
Further readingOptional papers, guides and a glossary for each of the 4 modules, in one document. Read online or download the PDF.
Open
051015Normalised expressionGene AGene BGene CGene DGene EGene FNormalTumour
Group comparisons like this one are built and tested in Modules 2 and 3. Illustrative data.

Your route: Foundations to Advanced

Each module builds on the one before and is complete on its own, so you can stop after any module and come back later.

Ask BioTutor

Create a free website with Framer, the website builder loved by startups, designers and agencies.