No retraction, correction or concern found when last checked on Oct 15, 2026.
UCell: Robust and scalable single-cell gene signature scoring
Massimo Andreatta, Santiago J. Carmona
Computational and Structural Biotechnology Journal · 2021 · CC BY
doi:10.1016/j.csbj.2021.06.043
Abstract
UCell is an R package for evaluating gene signatures in single-cell datasets. UCell signature scores, based on the Mann-Whitney U statistic, are robust to dataset size and heterogeneity, and their calculation demands less computing time and memory than other available methods, enabling the processing of large datasets in a few minutes even on machines with limited computing power. UCell can be applied to any single-cell data matrix, and includes functions to directly interact with Seurat objects. The UCell package and documentation are available on GitHub at https://github.com/carmonalab/UCell.
Full text
From PubMed Central, U.S. National Library of Medicine, as current on Oct 15, 2026. Paragraph numbers are ours, so an answer can point at one.
Introduction
In single-cell RNA-seq analysis, gene signature (or “module”) scoring constitutes a simple yet powerful approach to evaluate the strength of biological signals, typically associated to a specific cell type or biological process, in a transcriptome. Thousands of gene sets have been derived by measuring transcriptional differences between different biological states or cell phenotypes, and are collected in public databases such as MSigDB. More recently, large-scale efforts to construct single-cell atlases, are providing specific gene sets that can be useful to discriminate between cell types. For example, Han et al. have used single-cell RNA sequencing to quantify cell type heterogeneity in different tissues and to define gene signatures for >100 human and murine cell types. Given such a gene set, signature scoring aims at quantifying the activity of the genes in the set, with the goal to characterize cell types, states, active biological processes or responses to environmental cues. The Seurat R package is one of the most comprehensive and widely used frameworks for scRNA-seq data analysis. Seurat provides a computationally efficient gene signature scoring function, named AddModuleScore, originally proposed by Tirosh et al.. However, because genes are binned based on their average expression across the whole dataset for normalization purposes, the method generates inconsistent results for the same cell depending on the composition of the dataset. Inspired by the AUCell algorithm implemented in SCENIC, we propose UCell, a gene signature scoring method based on the Mann-Whitney U statistic. UCell scores depend only on the relative gene expression in individual cells and are therefore not affected by dataset composition. We provide a time- and memory-efficient implementation of the algorithm that can be seamlessly incorporated into Seurat workflows.
Methods
UCell calculates gene signature scores for scRNA-seq data based on the Mann-Whitney U statistic. Given a g × c matrix X of numerical values (e.g. gene expression measurements) for g genes in c cells, we first calculate the matrix of relative ranks R by sorting each column in X; in other words, we calculate a ranked list of genes for each cell in the dataset. Because in scRNA-seq not all molecules in the original sample are observed, transcript counts matrices contain many zeros, resulting in a long tail of bottom-ranking genes. To mitigate this uninformative tail, we set rg,c = rmax + 1 for all rg,c > rmax, with rmax = 1500 by default (matching typical thresholds used for quality control for minimum number of genes detected). To evaluate a gene signature s composed of n genes (s1,…,sn), we calculate a UCell score U’ for each cell j in X with the formula:where U is the Mann-Whitney U statistic calculated by:and R′ is obtained by sub-setting R on the genes in signature s.
We note that the U statistic is closely related to the area-under-the-curve (AUC) statistic for ROC curves, therefore we expect UCell scores to correlate with methods based on AUC scores such as AUCell. Internally, UCell uses the frank function from the data.table package for efficient ranks computations. Large datasets are automatically split into batches of reduced size, which can be processed serially (minimizing memory usage) or in parallel through the future package (minimizing execution time) depending on the available computational resources.
Results
UCell is an R package for the evaluation of gene signature enrichment designed for scRNA-seq data. Given a gene expression matrix or Seurat object, and a list of gene sets, UCell calculates signature scores for each cell, for each gene set. In the following illustrative example, we applied UCell to a single-cell multimodal dataset of human blood T cells, which were annotated by the authors using both gene (scRNA-seq) and cell surface marker expression (CITE-seq) (Fig. 1A). Provided a set of T cell subtype-specific genes (Table 1), UCell helps interpreting clusters in terms of signature enrichment in low-dimensional spaces such as the UMAP (Fig. 1B). Importantly, UCell scores are based on the relative ranking of genes for individual cells, therefore they are robust to dataset composition. Evaluating a CD8 T cell signature on the full dataset or on CD8 T cells only, results in identical score distributions for CD8 T cells in the two settings (Fig. 1C). Conversely, AddModuleScore from Seurat normalizes its scores against the average expression of a control set of genes across the whole dataset, and is therefore dependent on dataset composition. CD8 T cells analyzed in isolation or in the context of the full T cell dataset are assigned highly different AddModuleScore scores, with median ~1 in the full dataset and median ~0 for the CD8 T cell subset (Fig. 1D). Another widely-used method for single-cell signature scoring, AUCell, is also based on relative rankings and therefore has the same desirable property as UCell of reporting consistent scores regardless of dataset composition. Compared to AUCell, UCell is about three times faster (Fig. 1E) and uses significantly less memory (Fig. 1F). For example, AUCell requires over 64 GB of RAM to process 100,000 single-cells, while UCell uses only 5.5 GB of peak memory (Fig. 1F), making it suitable even for machines with limited computing power.
UCell is available as an R package at https://github.com/carmonalab/UCell, and is accompanied by vignettes for signature scoring and for seamless integration with Seurat pipelines. Source code to reproduce the results in this manuscript is available at the following repository: https://gitlab.unil.ch/carmona/UCell_demo.
Funding
This research was supported by the 10.13039/501100001711Swiss National Science Foundation (SNF) Ambizione grant 180010 to SJC.
CRediT authorship contribution statement
Massimo Andreatta: Conceptualization, Methodology, Software, Formal analysis, Visualization, Writing - original draft, Writing - review & editing. Santiago J. Carmona: Conceptualization, Methodology, Software, Formal analysis, Writing - original draft, Writing - review & editing, Funding acquisition.
Declaration of Competing Interest
The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
References 11
- 1.
Liberzon A., Birger C., Thorvaldsdóttir H., Ghandi M., Mesirov J.P., Tamayo P. The Molecular Signatures Database (MSigDB) hallmark gene set collection. CellSyst. 2015;1:417-425.
Not in our library10.1016/j.cels.2015.12.004
- 2.
- 3.
Han X., Zhou Z., Fei L., Sun H., Wang R., Chen Y. Construction of a human cell landscape at single-cell level. Nature. 2020;581:303-309.
Not in our library10.1038/s41586-020-2157-4
- 4.
Stuart T., Butler A., Hoffman P., Hafemeister C., Papalexi E., Mauck W.M. Comprehensive integration of single-cell data. Cell. 2019;177:1888-1902.e21.
Not in our library10.1016/j.cell.2019.05.031
- 5.
Tirosh I., Izar B., Prakadan S.M., Wadsworth M.H., Treacy D., Trombetta J.J. Dissecting the multicellular ecosystem of metastatic melanoma by single-cell RNA-seq. Science. 2016;352:189-196.
Not in our library10.1126/science:aad0501
- 6.
Aibar S., González-Blas C.B., Moerman T., Huynh-Thu V.A., Imrichova H., Hulselmans G. SCENIC: single-cell regulatory network inference and clustering. Nat Methods. 2017;14:1083-1086.
Not in our library10.1038/nmeth.4463
- 7.
Mann H.B., Whitney D.R. On a test of whether one of two random variables is stochastically larger than the other. Ann Math Stat. 1947;18:50-60.
Not in our library10.1214/aoms/1177730491
- 8.
Mason S.J., Graham N.E. Areas beneath the relative operating characteristics (ROC) and relative operating levels (ROL) curves: Statistical significance and interpretation. Q J R Meteorol Soc. 2002;128:2145-2166.
Not in our library10.1256/003590002320603584
- 9.
Dowle M, Srinivasan A. data.table: Extension of ‘data.frame’. R package version 1.14.0. 2021.
Not in our library
- 10.
Bengtsson H. A Unifying Framework for Parallel and Distributed Processing in R using Futures. ArXiv200800553 Cs Stat 2020.
Not in our library
- 11.
Cited by papers we hold 13
- Integrative multiomics analysis reveals the subtypes and key mechanisms of platinum resistance in gastric cancer: identification of KLF9 as a promising therapeutic target · 2025Not checked
- Distinct myeloid-derived suppressor cell populations in human glioblastoma · 2025No notice
- Cancer cells impair monocyte-mediated T cell stimulation to evade immunity · 2024No notice
- irGSEA: the integration of single-cell rank-based gene set enrichment analysis · 2024No notice
- An atlas of cells in the human tonsil · 2024No notice
- Hydrogel crosslinking modulates macrophages, fibroblasts, and their communication, during wound healing · 2024No notice
- Mitochondrial integrated stress response controls lung epithelial cell fate · 2023No notice
- Multiomic spatial landscape of innate immune cells at human central nervous system borders · 2023No notice
- A Review of Single-Cell RNA-Seq Annotation, Integration, and Cell–Cell Communication · 2023No notice
- Early cellular mechanisms of type I interferon-driven susceptibility to tuberculosis · 2023No notice
- hdWGCNA identifies co-expression networks in high-dimensional transcriptomics data · 2023No notice
- Transcriptomic and proteomic retinal pigment epithelium signatures of age-related macular degeneration · 2022Not checked
- Microglia ferroptosis is regulated by SEC24B and contributes to neurodegeneration · 2022No notice
Reads
Read by people on this page
None yet.
Checked or read by AI through naulon
None yet.
A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.
Are you an author?
Is this your paper?
Claim it to add your note and be paid when agents cite it. Free.