library(tidyverse)
library(SingleCellExperiment)
library(scrapper)
library(scuttle)
library(DropletUtils)
library(MouseGastrulationData)
library(scDblFinder)
library(SingleR)
library(omicsGMF)
library(edgeR)
library(stageR)
library(patchwork)Single-cell RNA-seq
In the bulk RNA-seq lectures we modelled counts:
- with negative binomial (NB) generalised linear models,
- with the library size as offset, and
- implemented in the edgeR quasi-likelihood pipeline.
Single-cell RNA-seq (scRNA-seq) measures the expression of thousands of individual cells.
Most of these concepts carry over, but the data bring new challenges:
- Preprocessing: which droplets contain a cell, and which cells are of good quality?
- The count model: very low counts with many zeros. Are the data zero-inflated? How do we normalise?
- Exploring the cells: feature selection, dimension reduction, clustering, marker genes and cell type annotation.
- Multi-sample experiments: which cells are the experimental units? Differential expression between conditions within each cell type, and differential abundance of the cell types.
We follow the workflow of the Bioconductor book Orchestrating single-cell analysis (Amezquita et al. 2020) and the Carpentries lesson on single-cell analysis with Bioconductor, with the scrapper package, which replaces the computational functions of scran, scater and scuttle.
1 From bulk to single cell
1.1 Evolution of gene expression measurements
- Bulk RNA-seq blends all cells of the tissue: we only see the average expression.
- scRNA-seq resolves the individual cells, but the cells are dissociated from the tissue and their location is lost.
- Spatial transcriptomics measures the expression in the tissue, and keeps the location.
1.2 Protocol
- Bulk RNA-seq measures the average expression of all cells of a sample, typically with millions of reads per sample.
- scRNA-seq measures thousands to millions of cells, but with only a limited number of reads per cell.
- Hence, the counts per gene and per cell are very low, and most counts are zero.