Spotsweeper-py: spatially-aware quality control metrics for spatial omics data in the Python ecosystem.
Xingyi Chen, Michael Totty, Stephanie Hicks
Department of Applied Math and Statistics, Johns Hopkins University, Baltimore, Maryland, USA. · Department of Biostatistics, Johns Hopkins University Bloomberg School of Public Health, Baltimore, Maryland, USA.
Key points
From the paper's conclusion- Here, we present SpotSweeper-py, a Python equivalent package of SpotSweeper that computes neighborhood-aware z-scores for standard QC metrics such as total counts, log total counts, number of detected genes, and percentage of mitochondrial counts.
Abstract
Spatially-resolved transcriptomics (SRT) generates large and heterogeneous datasets where global (tissue-wide) quality control (QC) metrics may flag large spatially contiguous regions or miss localized deviations. Recently, spatially-aware QC metrics have been introduced in SpotSweeper, but this is limited to the R programming language, which makes it challenging to use these metrics within the Python/scverse ecosystem. Here, we present SpotSweeper-py, a Python equivalent package of SpotSweeper that computes neighborhood-aware z-scores for standard QC metrics such as total counts, log total counts, number of detected genes, and percentage of mitochondrial counts. We demonstrate the performance and usability of SpotSweeper-py on two public datasets from the 10x Genomics Visium and VisiumHD platforms. This implementation of local spatially-aware QC metrics enables direct integration with Python/scverse ecosystem, reduces false positives from global quality control while preserving tissue-specific architecture. Plotting utilities are also included for quick visualizations of flagged outliers. By making robust local QC accessible in Python, SpotSweeper-py strengthens the reliability of pipelines for analyzing SRT data. The open-source software is available on PyPI ( https://pypi.org/project/spotsweeper).
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Scale-resolved correlation functions unify spatial omics across platforms and resolutionsbioRxiv · 2026
- SpatialZoomer: multi-scale feature analysis of spatial transcriptomics.Nature biomedical engineering · 2026
- Scalable localization of clustering instability for spatial transcriptomics.bioRxiv : the preprint server for biology · 2026
- SpaceBlocks: an expert-supervised workflow for cohort-level spatial transcriptomics analysisbioRxiv · 2026
- Standardized metrics for assessment and reproducibility of imaging-based spatial transcriptomics datasetsNature Biotechnology · 2025
- Detecting cell segmentation errors using doublet methodsbioRxiv · 2026