STcompare: comparative spatial transcriptomics data analysis of structurally matched tissues to characterize differentially spatially patterned genes
Kalen Clifton, Vivien Jiang, Rafael dos Santos Peixoto, Srujan Singh, Ryo Matsuura, Hamid Rabb, Jean Fan
Johns Hopkins University
Key points
From the paper's conclusion- To address these limitations, we develop STcompare, a statistical framework for comparative analysis of ST data by testing for differences in spatial correlation and spatial fold-change across structurally matched locations. Using simulated data, we demonstrate how STcompare provides distinct insights from bulk differential gene expression analysis and spatially variable gene expression analysis as well as other spatial comparison methods. STcompare further robustly controls for false positives even in the presence of spatial autocorrelation common in ST data. We apply STcompare to real ST data of biological replicates of mouse brains to confirm high spatial correspondence of gene expression patterns across samples. We apply STcompare to identify genes that spatially change in mouse kidneys with acute kidney injury compared to a healthy control, revealing tissue compartment-specific molecular dysregulation. Overall, the application of this spatially-aware comparative analysis will enable the discovery of differential spatially patterned genes across various physiological and technological axes of interest.
Abstract
Abstract Motivation Comparative analysis of spatial transcriptomics (ST) data is needed to identify genes that spatially change in their expression patterns between conditions, such as in diseased versus healthy tissues. Existing methods generally fail to distinguish changes in spatial patterning by focusing only on changes in gene expression magnitude for methods adapted from non-spatial data or on changes in significance of spatial variability for methods focusing on spatially-resolved data. Results To address these limitations, we develop STcompare, a statistical framework for comparative analysis of ST data by testing for differences in spatial correlation and spatial fold-change across structurally matched locations. Using simulated data, we demonstrate how STcompare provides distinct insights from bulk differential gene expression analysis and spatially variable gene expression analysis as well as other spatial comparison methods. STcompare further robustly controls for false positives even in the presence of spatial autocorrelation common in ST data. We apply STcompare to real ST data of biological replicates of mouse brains to confirm high spatial correspondence of gene expression patterns across samples. We apply STcompare to identify genes that spatially change in mouse kidneys with acute kidney injury compared to a healthy control, revealing tissue compartment-specific molecular dysregulation. Overall, the application of this spatially-aware comparative analysis will enable the discovery of differential spatially patterned genes across various physiological and technological axes of interest. Availability STcompare is implemented as an open-source R package at https://github.com/JEFworks-Lab/STcompare with additional documentation and tutorials available at https://jef.works/STcompare/. Supplementary information Supplementary data are available at Bioinformatics online.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Joint localization and testing reveals spatial context of differential expressionbioRxiv · 2026
- Scalable localization of clustering instability for spatial transcriptomics.bioRxiv : the preprint server for biology · 2026
- Scale-Aware Compositional Inference Improves Reproducibility and Uncovers Convergent Aging Programs in Spatial Transcriptomics.bioRxiv : the preprint server for biology · 2026
- DESpace2: detection of differential spatial patterns in spatial omics data.Bioinformatics (Oxford, England) · 2026
- SYNDRI: Context-aware removal of transcript spillover in imaging-based spatial transcriptomicsbioRxiv · 2026
- SVP Maps Spatially Variable Functional Programs and Their Coupling in Spatial TranscriptomicsAdvanced Science · 2026