- Introduced by
- Sara Aibar, Stein Aerts (AUCell/SCENIC); David DeTomaso, Nir Yosef (VISION)
- Year
- 2017-2019
- Type
- Computational enrichment scoring pipeline
- Family
- Bioinformatics / omics
What does it do?
Single-cell gene set enrichment analysis (scGSEA) extends classical bulk GSEA to the resolution of individual cells.
Rather than testing whether a gene set is enriched in a sample-level comparison, scGSEA assigns an enrichment or activity score to each cell, enabling researchers to map pathway activity across heterogeneous cell populations, cell states, and developmental trajectories captured in single-cell RNA-seq data.
The intuition behind the method
In bulk RNA-seq you ask whether a pathway is more active in condition A versus B, averaging over thousands of cells. Single-cell data reveal that within those same samples cells are in radically different states — some proliferating, some quiescent, some undergoing differentiation. scGSEA scores each cell independently, so you can ask: which cells in my tumour express an interferon-response signature? Does a stress pathway activate in one cluster but not another? The method effectively overlays a biological interpretation layer onto the UMAP or t-SNE plots that researchers already use to visualise cell diversity.
History
Classical GSEA was developed by Subramanian et al. (2005) for bulk gene-expression data. As single-cell RNA-seq became widespread after the Macosko and Klein droplet papers of 2015, researchers needed cell-resolution pathway scoring. The AUCell algorithm, released as part of the SCENIC regulatory network toolkit by Aibar et al. in 2017, became one of the widely used cell-level approaches. Single-sample methods such as ssGSEA predate it. DeTomaso and Yosef's VISION tool (2019) added a graph-smoothing layer to handle dropout. Since then, implementations in Seurat (AddModuleScore) and Scanpy (score_genes) have made basic scGSEA a routine step in single-cell workflows.
When to use it
Use scGSEA when you have single-cell RNA-seq data and want pathway or regulon activity at cell resolution rather than per sample. Examples include finding which cell subtypes carry a disease signature, following pathway activation along a pseudotime trajectory, or annotating clusters with known biological programmes. It is most useful when the cell populations are heterogeneous enough that bulk averaging would hide biologically meaningful subgroups. Do not use it as a replacement for differential expression testing when the goal is to identify individual marker genes. Avoid very sparse or low-quality data without dropout-aware normalisation, because gene rankings become noisy and the scores unreliable. Small datasets, or conditions with few cells or few independent biological replicates, give less stable per-cell rankings and weaker statistical comparisons; a power or subsampling check on your own data is the practical way to judge whether the sample is adequate.
Limitations and considerations
- Single-cell data suffer from high dropout (zero inflation), which distorts per-cell gene rankings and can produce unreliable scores for small or lowly expressed gene sets.
- Scores are relative within a dataset; comparing absolute score values across independently processed datasets requires careful normalisation harmonisation.
- Scores are computed only from gene-set members present in the expression matrix. An identifier mismatch (gene symbols versus Ensembl IDs) or members that are rarely detected silently shrinks the effective set and changes its score.
- Computational cost scales with the number of cells times the number of gene sets; very large atlases may require approximate or parallelised implementations.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Assigns biologically interpretable pathway activity scores to each individual cell, preserving cellular heterogeneity that bulk methods erase.
- Compatible with any curated gene set resource (MSigDB, GO, KEGG, Reactome, custom regulons) without requiring re-training.
- Scores integrate naturally with standard single-cell workflows and dimensionality-reduction visualisations in Seurat or Scanpy.
- Multiple mature implementations available (AUCell, VISION, Scanpy score_genes, ssGSEA via GSVA) covering a range of complexity and speed.
- Enables pseudotime-resolved pathway dynamics and multi-condition comparisons at cell-type resolution.
Applications
- Mapping interferon-response or inflammatory pathway activity across immune cell subtypes in single-cell atlases of disease tissue.
- Tracking differentiation-programme activation along pseudotime trajectories in haematopoiesis or embryonic development datasets.
- Identifying tumour cell subpopulations with elevated hypoxia, epithelial-to-mesenchymal transition, or stemness signatures.
- Annotating cell clusters with known biological programmes when marker-gene-based annotation is ambiguous.
- Comparing pathway dysregulation across patient groups at single-cell resolution in clinical cohort studies.
How it works
How it works
The raw single-cell count matrix is quality-filtered, normalised (e.g., library-size normalisation followed by log-transformation), and, if needed, batch-corrected. Highly variable genes are typically retained. The choice of normalisation strategy affects downstream scores, so preprocessing decisions should be documented.
For each cell, expressed genes are ranked by their normalised expression level or by a metric derived from the expression distribution across all cells in the dataset. Some tools (e.g., AUCell) rank genes within each cell independently; others (e.g., VISION) use a cell-similarity graph to smooth expression before ranking, reducing the impact of dropout.
A gene set enrichment score is computed for each cell-gene-set pair. AUCell ranks all genes by expression within each cell, takes the top-k ranked genes (k is a user-set parameter), and calculates the area under the recovery curve for gene-set members up to that cutoff. The area is normalised by the maximum attainable area, so scores fall between 0 and 1, with higher values indicating that more members of the set are ranked near the top in that cell. VISION projects gene-set scores onto a low-dimensional embedding and tests for local autocorrelation. Scanpy's score_genes computes the mean expression of the gene set minus the mean expression of control genes drawn from expression-matched bins, and ssGSEA provides a further single-sample alternative.
Per-cell scores are visualised on dimensionality-reduction embeddings (UMAP, t-SNE, PAGA trajectories) to identify cell subpopulations with elevated pathway activity. Differential scoring between clusters or conditions is tested statistically (e.g., Wilcoxon rank-sum or linear mixed models for multi-sample designs), and results are linked back to marker-gene analyses and pseudotime inferences.
Common pitfalls
- Using very small gene sets. With only a few members, one or two genes can dominate the ranking, so scores are highly variable and hard to interpret. The minimum usable size depends on the implementation and the gene-set resource, so check it on your own data before interpreting results.
- Skipping normalisation and quality control. Dropout and technical zeros depend on sequencing depth and library quality. They change which genes are detected in each cell, and therefore the per-cell gene rankings and the reliability of the scores, so part of the signal may reflect technical detection differences rather than biology.
- Interpreting scores as absolute activity levels. Scores reflect relative enrichment within the dataset and should not be compared directly with scores from a different experiment without harmonisation.
- Neglecting multi-sample designs. Pooling cells from multiple donors without accounting for donor as a random effect inflates apparent statistical significance when comparing conditions.
Frequently asked questions
How is scGSEA different from standard bulk GSEA?
Bulk GSEA produces a single enrichment score per sample comparing two conditions; it cannot distinguish cell-type-specific activity. scGSEA produces one score per cell per gene set, so you can ask whether a pathway is active in a specific cell cluster, along a trajectory, or in a rare cell subpopulation, which bulk methods cannot provide.
Which tool should I use: AUCell, VISION, or Scanpy score_genes?
AUCell is one of the earliest and most widely adopted implementations and is a sensible default. It ranks genes within each cell, so its scores do not depend on absolute expression values, although dropout still alters the ranks and preprocessing matters. VISION adds graph-based smoothing and autocorrelation testing, which suits trajectory-style analyses. Scanpy's score_genes is fast and integrated into the Scanpy ecosystem, but it is a different kind of score (expression relative to control genes), so its behaviour on sparse gene sets should be checked on your own data.
How many cells do I need for reliable scores?
There is no established minimum for this method. Stability depends on the number of cells per group, the number of independent biological replicates (donors or samples), and the size of the effect being tested. With few cells per group, per-cell scores are noisy and differential testing is underpowered. A power or subsampling check on your own data, comparing how stable the group difference is as cells are removed, is the practical way to decide whether the sample is adequate.
Can I use custom gene sets, or must I use MSigDB?
Any curated list of gene identifiers can serve as a gene set input. MSigDB, GO, KEGG, and Reactome are common resources, but researcher-defined gene sets, such as a published cell-type signature or a custom regulon from SCENIC, are equally valid. Ensure gene identifiers match the format used in your expression matrix (gene symbols vs. Ensembl IDs).
Should I correct scores for cell-cycle effects before analysis?
Cell-cycle correction depends on the question. If cell-cycle variation is a confounder for the comparison, regress out cell-cycle scores during preprocessing, or include them as covariates in differential scoring models. Do not remove them automatically: when proliferation or cell-cycle state is itself the biology of interest, regressing them out can remove real signal. In that case keep cell-cycle scores as covariates and check whether the pathway result holds with and without them. G2M or S-phase signatures are the usual cell-cycle gene sets.
Related methods
Sources
Aibar, S., Gonzalez-Blas, C. B., Moerman, T., Huynh-Thu, V. A., Imrichova, H., Hulselmans, G., Rambow, F., Marine, J.-C., Geurts, P., Aerts, J., van den Oord, J., Kalender Atak, Z., Wouters, J., & Aerts, S. (2017). SCENIC: Single-cell regulatory network inference and clustering. Nature Methods, 14(11), 1083-1086.
Open publication referenceDeTomaso, D., Jones, M. G., Subramaniam, M., Ashuach, T., Ye, C. J., & Yosef, N. (2019). Functional interpretation of single cell similarity maps. Nature Communications, 10(1), 4376.
Open publication reference