EnrichMap: Spatially informed enrichment analysis for functional interpretation of spatial transcriptomics
Preprint
Abstract
Advances in spatial transcriptomics (ST) allow high-resolution mapping of gene expression within intact tissues, revealing spatially regulated biology. However, accurately quantifying gene set activity in spatial contexts remains inadequate. We present EnrichMap, a Python package designed to compute gene set enrichment scores in ST data by integrating batch correction, smoothing and spatial confounder adjustment. EnrichMap generates enrichment scores for signatures or pathways, with an optional framework for incorporating gene weights. To assess performance, we benchmark EnrichMap against established scoring techniques using spatial autocorrelation metrics such as Moran’s I . Our results show that EnrichMap improves spatial coherence, producing scores that capture both local and global spatial patterns, while conventional approaches tend to exhibit higher heterogeneity or diminished spatial structure. EnrichMap is demonstrated to be generalisable across a variety of ST platforms, including Visium, Xenium, MERFISH and imaging mass cytometry, maintaining consistent performance despite differences in spatial resolution and detection chemistry. Our method offers a platform-agnostic, spatially and biologically meaningful representation of gene set activity across complex tissue landscapes.Keywords
Funding Information
- Medical Research Council (MR/T042184/1)
- Medical Research Council (MR/Y034031/1)
- Biotechnology and Biological Sciences Research Council (BB/R01356X/1)
- Wellcome Trust (204841/Z/16/Z)
This publication has 47 references indexed in Scilit:
- The spatial landscape of cancer hallmarks reveals patterns of tumor ecological dynamics and drug sensitivityCell Reports, 2025
- Macrophage diversity in human cancers: New insight provided by single-cell resolution and spatial contextHeliyon, 2024
- Ecology and evolution of dormant metastasisTrends in Cancer, 2022
- Integrated analysis of multimodal single-cell dataCell, 2021
- UCell: Robust and scalable single-cell gene signature scoringComputational and Structural Biotechnology Journal, 2021
- Colorectal Cancer Cells Enter a Diapause-like DTP State to Survive ChemotherapyCell, 2021
- Targeting Cancer Cell DormancyTrends in Pharmacological Sciences, 2019
- The hallmarks of CAFs in cancer invasionEuropean Journal of Cell Biology, 2016
- PySAL: A Python Library of Spatial Analytical Methods2009
- Systematic RNA interference reveals that oncogenic KRAS-driven cancers require TBK1Nature, 2009