A complete single-cell RNA-seq analysis that you can run on your own laptop. No experience needed.
Read the finished tutorial online if you only want to look at the results.
The data is blood cells from 8 people. Each person’s cells were split in two: one half left alone and one half treated with interferon (an immune signal). We find out which cell types are present and what changes in each one after treatment.
Along the way you’ll learn every standard step: cleaning the data, removing doublets, quality control, normalization, integration, clustering, naming cell types, comparing conditions, and pathway analysis.
| File | What it is |
|---|---|
tutorial.qmd |
The tutorial. Open this in RStudio. |
install_packages.R |
Installs everything the tutorial needs. Run it once. |
tutorial.html |
The finished result, the same as the online version. |
annotation_approved.csv |
The cell type names we checked by hand (step 9 of the tutorial). |
You need a Mac or Windows computer with at least 8 GB of RAM and about 5 GB of free space. Setup takes about 30 minutes, most of it waiting for installs.
R is the programming language the analysis is written in.
.pkg that matches your chip. Apple menu > About This Mac tells you if you have Apple (M1, M2, M3…) or Intel.RStudio is the program you’ll work in. It gives R a friendly window with buttons.
On Windows you may also need Rtools: https://cran.r-project.org/bin/windows/Rtools (pick the version that matches your R).
beginner folder you just unzipped, and choose tutorial.qmd.install_packages.R from the same folder.ok.If RStudio asks “Do you want to install from sources the packages which need compilation?”, type n and press Enter.
Go back to the tutorial.qmd tab. You can run it two ways.
Results are saved in a new results folder.
Install R and Quarto, then from inside this folder run:
Rscript install_packages.R
quarto render tutorial.qmd
Kang et al. 2018, Nature Biotechnology. Downloaded automatically through the Bioconductor package muscData.