Differential Single-Cell RNA-seq Analysis

Research
Introduced by
Multiple contributors; pseudobulk framework formalized by Squair et al. (2021); Seurat/FindMarkers by Satija lab (~2015)
Year
2015–2021
Type
Computational bioinformatics pipeline
Family
Bioinformatics / omics

What does it do?

Differential single-cell RNA-seq (scRNA-seq) analysis is a computational pipeline that compares transcriptomic profiles across biological conditions, such as treated versus untreated, disease versus healthy, or successive time points, at single-cell resolution.

It identifies which genes and cell types change between conditions, which bulk RNA-seq comparisons cannot resolve. The pipeline combines clustering, cell-type annotation, and statistical testing, and typically aggregates cells into pseudobulk profiles per sample so that the donor, rather than the individual cell, is the unit of replication.

The intuition behind the method

Imagine two groups of tissue samples, one diseased and one healthy, where every cell in each sample has been sequenced. Bulk RNA-seq reports the average change across all cells mixed together. Single-cell differential analysis asks which specific cell types drove the change, whether a rare immune subpopulation expanded or contracted, and whether a cell state appeared only under disease. Cells must be grouped by type before conditions are compared. Multiple cells from the same donor are also not independent replicates, and treating them as if they were independent inflates false discoveries.

History

Single-cell RNA-seq became practical with droplet-based platforms such as Drop-seq and 10x Chromium. Early differential analysis relied on adapted bulk methods or cell-level rank tests. From around 2015 the Seurat toolkit (Satija lab) popularised graph-based clustering and marker-gene workflows. Squair et al. (2021) examine false discoveries in single-cell differential expression, and pseudobulk aggregation with DESeq2 or edgeR is one approach used to address this problem. Differential abundance testing developed later through tools such as MiloR and scCODA.

When to use it

Use differential single-cell RNA-seq analysis when you have multi-condition scRNA-seq data (at least two biological replicates per condition, ideally three or more) and want to identify condition-specific changes within individual cell types or cell states. It is the appropriate choice when bulk RNA-seq has masked heterogeneity, or when cell-type composition shifts are suspected alongside gene expression changes. Do not apply it when fewer than two biological replicates exist per condition, because single-replicate designs cannot support pseudobulk testing and lead to false discoveries. Avoid cell-level (non-pseudobulk) tests such as Wilcoxon rank-sum applied directly to cells as the primary statistical framework, as cells within a donor are not independent observations. The method requires scRNA-seq data; it is not suitable for spatial transcriptomics or bulk RNA-seq without modification.

Limitations and considerations

  • Requires at least two, preferably three or more, biological replicates per condition; with fewer donors there is no replicate-level variance to estimate, and the pseudobulk test cannot be calibrated.
  • Rare cell types contribute few cells per sample, so their pseudobulk profiles are noisy and the tests have little power for them.
  • Clustering, integration, and neighbour-graph construction are computationally heavy for large datasets and require substantial memory.
  • Cell-type annotation errors propagate into every downstream test, because genes are tested only within the cell types that were assigned.
  • Batch effects from different processing runs can mimic condition effects, and correction must remove technical variation without removing the biological difference under study.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Resolves cell-type-specific expression changes that bulk RNA-seq averages away.
  • Pseudobulk aggregation makes donors the unit of replication, so the test reflects the number of biological replicates rather than the much larger number of cells.
  • Applies established bulk-style negative binomial models (DESeq2, edgeR) to pseudobulk counts, so the statistical behaviour of those tools carries over to the single-cell setting.
  • Pseudobulk tables can be modelled with the same design terms used for bulk data, which accommodates two-group, multi-group, and matched designs.
  • Each cell type's differential gene list can be passed to enrichment analysis, linking cell-level changes to biological functions.

Applications

  • Identifying cell-type-specific transcriptomic signatures in tumor microenvironments compared to healthy tissue.
  • Characterizing immune cell activation states and abundance changes following drug treatment or vaccination.
  • Mapping developmental trajectory shifts between wild-type and knockout conditions in developmental biology.
  • Discovering rare disease-associated cell states in neurological or metabolic disorders using patient versus control atlases.
  • Profiling temporal gene expression dynamics across time points in wound healing or differentiation studies.
  • Comparing cell composition and gene expression across patient cohorts in large clinical single-cell atlases.

How it works

How it works

1

Raw count matrices are filtered to remove empty droplets, doublets, and low-quality cells. Counts are normalized, for example by log-normalization, by scran pooling, or by regularized negative binomial regression as described by Hafemeister and Satija (2019), and highly variable genes are selected. PCA followed by UMAP or t-SNE then gives a low-dimensional embedding that keeps local cell-cell relationships.

2

Cells are grouped by graph-based community detection (for example Leiden or Louvain) applied to the nearest-neighbour graph built in PCA space. The resolution parameter sets the granularity of the clusters, so the analyst should check that the clusters are stable across a range of resolutions. A good cluster corresponds to one biologically coherent population.

3

Clusters receive cell-type labels from known canonical marker genes, from reference-based label transfer (for example SingleR or Seurat anchors), or from manual curation. Annotation matters here because differential testing is done within cell types, so a wrong label moves cells into the wrong comparison.

4

For each cell type and each biological replicate, raw counts are summed across the cells of that type to form a pseudobulk profile. This step turns many cells from one donor into one replicate, which lets bulk-style tools such as DESeq2 or edgeR model the biological variability between donors.

5

Pseudobulk profiles are tested between conditions with negative binomial generalized linear models in DESeq2 or edgeR, with the donor as the experimental unit. For each cell type, the model is fitted to the pseudobulk counts with a design such as batch plus condition, so that batch is adjusted for and the condition coefficient is the contrast of interest. Matched donors are handled by adding a pairing term to the design, and multi-group comparisons are handled by specifying the group contrasts explicitly. The contrast that is reported should be stated with the results. P-values are adjusted for multiple testing with the Benjamini-Hochberg procedure, typically across genes within each cell type. Changes in cell-type composition are tested separately with differential abundance methods such as MiloR or scCODA.

6

Differentially expressed genes are passed to pathway enrichment or gene set enrichment analysis to summarise the biological functions affected. For each cell type, report the genes that pass an adjusted p-value cut-off together with an effect-size threshold chosen before analysis, and read log fold-changes alongside adjusted p-values so that the size of each effect is judged with its statistical support. Dot plots, volcano plots, and UMAP feature plots show the results. Expression results should be interpreted together with differential abundance output, because a shift in cell-type proportions can appear as an expression change at the gene level. Check that the main findings hold across a range of clustering resolutions.

Common pitfalls

  • Using individual cells as replicates (cell-level Wilcoxon or t-test without pseudobulk) inflates the sample size artificially and can produce large numbers of false positives. Squair et al. (2021) address false discoveries in single-cell differential expression, and the pseudobulk approach described here is designed to avoid this problem.
  • Testing differential expression before cell-type annotation, or collapsing all cells regardless of type, mixes signals from distinct populations and hides differences that are specific to one population.
  • Reporting only differential gene expression without testing whether cell proportions shifted can attribute a composition effect to per-cell transcriptional change.
  • The number of clusters depends on the resolution parameter. A single setting can merge distinct subtypes or split one continuous state, and the differential results change accordingly, so a sensitivity check across resolutions is needed.
  • Skipping batch correction when samples were processed in different runs introduces technical differences that look identical to biological effects in the test results.

Frequently asked questions

Why should I use pseudobulk aggregation instead of testing cells directly?

Cells from the same donor share biological and technical variability, so they are not independent replicates. Testing each cell as an independent observation inflates the effective sample size, which can produce very small p-values even for trivial or technical differences. Pseudobulk aggregation collapses cells to the donor level before testing, so donors are the unit of replication. This removes the false positives that come from counting cells as replicates, but error control still depends on having enough biological replicates per condition.

How many cells and replicates do I need?

For reliable pseudobulk differential expression you need at least two, ideally three or more, biological replicates per condition. A very small number of cells of a given type in a sample makes that sample's pseudobulk estimate unstable, so check per-sample cell counts for each cell type before testing and treat cell types with very few cells as low-confidence. Power is driven primarily by the number of biological replicates, not the number of cells sequenced.

What is the difference between differential expression and differential abundance?

Differential expression tests whether a gene's average expression level changes within a given cell type across conditions. Differential abundance tests whether the proportion or count of a cell type itself changes. Both analyses are complementary and should be conducted together, because a composition shift can masquerade as differential expression if only gene-level tests are run.

Can I apply this pipeline to spatial transcriptomics data?

The core logic of pseudobulk aggregation and statistical testing applies conceptually, but spatial transcriptomics introduces additional structure (spatial autocorrelation, spot-level rather than cell-level resolution) that requires method adaptations. Tools designed specifically for spatial differential analysis should be used rather than applying scRNA-seq pipelines directly.

Which software tools implement this pipeline?

The standard R/Bioconductor ecosystem includes Seurat or Bioconductor SingleCellExperiment for preprocessing and clustering, DESeq2 or edgeR for pseudobulk differential testing, MiloR or scCODA for differential abundance, and clusterProfiler for pathway enrichment. Python-based alternatives include Scanpy for preprocessing, PyDESeq2 for pseudobulk testing, and diffxpy for exploratory analyses.

Related methods

Sources

  1. Hafemeister, C., & Satija, R. (2019). Normalization and variance stabilization of single-cell RNA-seq data using regularized negative binomial regression. Genome Biology, 20, 296.

    Open publication reference
  2. Squair, J. W., Gautier, M., Kathe, C., Anderson, M. A., James, N. D., Hutson, T. H., Lefoulon, E., Tani, N., Bhatt, D. L., Rossetti, A., & Courtine, G. (2021). Confronting false discoveries in single-cell differential expression. Nature Communications, 12, 5692.

    Open publication reference