Spotsweeper-py: spatially-aware quality control metrics for spatial omics data in the Python ecosystem
Abstract
Spatially-resolved transcriptomics (SRT) generates large and heterogeneous datasets where global (tissue-wide) quality control (QC) metrics often over-aggressively remove biologically meaningful regions or miss localized artifacts. 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).
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 1
- FWCI
- 2.09
- Field percentile
- top 21%
- Assay
- Research Focus
- Approach
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
- SpotSweeper: spatially-aware quality control for spatial transcriptomics
Michael S. Totty, Stephanie C. Hicks, Boyi Guo·Nature MethodsPeer-reviewed·Jun 6, 2025
- SpatialArtifacts: a computational framework for tissue artifact detection in spatial transcriptomics data
Jiali Harriet He, Jacqueline R. Thompson, … Stephanie C. Hicks·bioRxiv·May 18, 2026
- SPArrOW: a flexible, interactive and scalable pipeline for spatial transcriptomics analysis
Lotte Pollaris, Bavo Vanneste, … Yvan Saeys·bioRxiv·Jul 4, 2024
- SpaceTrooper: a quality control framework for imaging-basedspatial omics data
Benedetta Banzi, Dario Righelli, … Silvio Bicciato·bioRxiv·Dec 26, 2025
- SpotClean adjusts for spot swapping in spatial transcriptomics data
Zijian Ni, Aman Prasad, … Christina M. Kendziorski·Nature CommunicationsPeer-reviewed·May 27, 2022
- NoButter: An R package for reducing transcript dis-persion in CosMx Spatial Molecular Imaging Data
Beibhinn O'Hora, Roman Laddach, … Jelmar Quist·bioRxiv·Nov 25, 2024