# InSituPy: a framework for histology-guided, multi-sample analysis of single-cell spatial omics data

**Authors:** Johannes Wirth, Anna Chernysheva, Birthe Lemke, Isabel Giray, Katja Steiger

PMC · DOI: 10.1093/bioinformatics/btag073 · Bioinformatics · 2026-02-15

## TL;DR

InSituPy is a new framework for analyzing spatial omics data that integrates multiple samples and enables collaboration between researchers and pathologists.

## Contribution

InSituPy introduces a scalable framework for multi-sample spatial omics analysis with integrated visualization and metadata handling.

## Key findings

- InSituPy provides a hierarchical data structure for organizing spatial omics data and metadata.
- The framework includes interactive visualization tools for integrating histopathological expertise.
- InSituPy supports standardized workflows and interfaces with external analytical tools.

## Abstract

Spatial omics data provides unprecedented insights into disease biology, yet its complexity introduces significant challenges in data analysis. Comprehensive analysis requires frameworks that integrate diverse modalities and enable joint processing of multiple datasets and corresponding metadata.

To address these challenges, we introduce InSituPy, a versatile and scalable framework for analyzing spatial omics data from the multi-sample level down to the cellular and subcellular level. Its hierarchical data structure organizes all relevant data modalities per sample and links them to their corresponding metadata, enabling scalable analysis of large patient cohorts using spatial omics technologies. Interactive visualization tools within InSituPy enable seamless integration of histopathological expertise, promoting collaborative hypothesis generation in translational research. Additionally, InSituPy includes built-in analytical algorithms and interfaces with external tools, establishing a standardized workflow for multi-sample spatial omics data analysis.

The Python package InSituPy is publicly available on GitHub (https://github.com/SpatialPathology/InSituPy) and PyPi (https://pypi.org/project/insitupy-spatial/), and archived on Zenodo (DOI: 10.5281/zenodo.18459471). Tutorials and documentation for InSituPy are available at https://insitupy.readthedocs.io/. All code to replicate the results shown in this manuscript can be found in the GitHub repository. Scripts to connect QuPath and InSituPy can be found at https://github.com/SpatialPathology/InSituPy-QuPath. All data required to complete the tutorials is publicly available, and functions to download the data have been implemented. A Zulip community chat for user support and discussion is accessible at https://insitupy.zulipchat.com.

j.wirth@tum.de, katja.steiger@tum.de

## Full-text entities

- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12988772/full.md

## Figures

1 figure with captions in the complete paper: https://tomesphere.com/paper/PMC12988772/full.md

## References

29 references — full list in the complete paper: https://tomesphere.com/paper/PMC12988772/full.md

---
Source: https://tomesphere.com/paper/PMC12988772