bioRxivBioinformaticsPreprint
Scalable localization of clustering instability for spatial transcriptomics
Abstract
Standard spatial transcriptomics workflows rely on clustering methods to define regions of interest for downstream analyses, such as differential expression and pathway enrichment. Although researchers are presented with a single partition, most clustering methods are stochastic, meaning their output depends on random algorithmic choices, typically controlled by a seed; thus, repeating the analysis changing only the seed can yield a different result. Spatial transcriptomics data may be especially sensitive to algorithmic perturbations due to high dimensionality, sparsity, and mixed expression profiles at tissue boundaries and transitional zones; however, the extent of seed-dependent variation and its downstream impact have yet to be systematically evaluated. To bridge this gap, we present InSTability, a framework that localizes disagreement among partitions at the observation level. InSTability is built on (1) an interpretable, per-spot score that quantifies the variability of a spot's cluster assignment across partitions, and (2) an algorithm with time complexity linear in the number of spots for a specified number of runs for computing the instability score at all spots. Together, these advances enable spatially-resolved clustering instability maps for large, high-resolution datasets. Applying InSTability to repeated runs of seven established methods (BayesSpace, GraphST, Leiden, Louvain, SEDR, STAGATE, and SpiceMix) on 18 benchmark samples reveals that clustering instability varies across tissue sections, with shared spatial patterns emerging among different methods applied to the same sample. Furthermore, clustering instability correlates with poor agreement against reference annotations and propagates downstream into differential expression analyses, resulting in inconsistent gene sets across seeds. Thus, InSTability can strengthen spatial transcriptomics studies by highlighting regions where clustering is seed-sensitive and further validation is warranted. InSTability is open-source and available at https://github.com/molloy-lab/InSTability.
- Citations
- 0
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Stardust: improving spatial transcriptomics data analysis through space aware modularity optimization based clustering.
Simone Avesani, Eva Viesi, … Rosalba Giugno·GigaSciencePeer-reviewed·Jan 1, 2022
- STEAM: Spatial Transcriptomics Evaluation Algorithm and Metric for clustering performance
Samantha Reynoso, Courtney T. Schiebout, … Fan Zhang·Briefings in BioinformaticsPeer-reviewed·Aug 31, 2025
- Benchmarking clustering, alignment, and integration methods for spatial transcriptomics
- STCC: consensus clustering enhances spatial domain detection for spatial transcriptomics data
Congcong Hu, Nana Wei, … Xiaoqi Zheng·bioRxiv·Feb 25, 2024
- Spatially Aware Adjusted Rand Index for Evaluating Spatial Transcriptomics Clustering
Yinqiao Yan, Xiangnan Feng, Xiangyu Luo·BiometricsPeer-reviewed·Jul 3, 2025
- Benchmarking Computational Integration Methods for Spatial Transcriptomics Data
Yijun Li, Stefan Stanojevic, … Lana X. Garmire·bioRxiv·Aug 27, 2021