Spatialgater: an R Shiny webtool for in situ gating of cells in spatial omics experiments
Abstract Background Multiplexed imaging techniques generate high-dimensional datasets that contain their molecular profiles of cells combined with spatial coordinates, which can be stored in SpatialExperiment objects. Results Current analysis workflows using the SpatialExperiment class separate cells after clustering them by their bio-molecule expression levels without considering their spatial context within the tissue. While patch-/neighbourhood detection methods exist, there is no option to select single cells by their location at will. By introducing spatialgater, we aim to boost interactivity and reduce programming efforts of image analysis by enabling spatial selection of cells from SpatialExperiment objects through an intuitive web-based user interface. The package displays cells as dots on a zoom-able image and allows users to draw polygon gates directly on individual cells. An integrated k -nearest-neighbor feature automatically extends manual gates across similar spatial microenvironments. All selected cell identifiers can be exported as a CSV file and/or saved back into the original dataset as a new logical column. All manually drawn polygons are stored in a log file to guarantee traceability. Conclusion Spatialgater provides an accessible, interactive addition to spatial analysis pipelines. By using a publicly available imaging mass cytometry dataset from breast cancer tissue, we demonstrate its effectiveness in characterizing and comparing T-cells by their spatial location.
Authors
- Roland Geisberger (ORCID: https://orcid.org/0000-0002-0131-2191)
- Jan Philip Höpner (ORCID: https://orcid.org/0009-0003-1788-1297)
- Nadja Zaborsky (ORCID: https://orcid.org/0000-0002-9775-185X)
- Stephan Drothler (ORCID: https://orcid.org/0000-0001-8187-5180)
- M. Steiner (ORCID: https://orcid.org/0000-0003-4424-6347)
Institutions
- University of Salzburg (AT)
- Paracelsus Medical University (AT)
- Cancer Research Institute of the Slovak Academy of Sciences (SK)
Publication Details
- Journal
- BMC Bioinformatics
- Published
- 2026-09-12
- DOI
- https://doi.org/10.1186/s12859-026-06620-y
- Primary Topic
- Single-cell and spatial transcriptomics
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Austrian Science Fund