Spotsweeper-py: spatially-aware quality control metrics for spatial omics data in the Python ecosystem
<ns7:p> 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 <ns7:italic>z</ns7:italic> -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). </ns7:p>
Authors
- Xingyi Chen (ORCID: https://orcid.org/0009-0008-7226-2022)
- Michael S. Totty (ORCID: https://orcid.org/0000-0002-9292-8556)
- Stephanie Hicks
Institutions
- Johns Hopkins University (US)
Publication Details
- Journal
- F1000Research
- Published
- 2026-01-09
- DOI
- https://doi.org/10.12688/f1000research.175162.1
- Primary Topic
- Single-cell and spatial transcriptomics
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Johns Hopkins University
- National Institutes of Health
- Johns Hopkins Bloomberg School of Public Health
- National Institute of Mental Health
- National Institute of General Medical Sciences