SpatialRNA: a Python package for easy application of Graph Neural Network models on single-molecule spatial transcriptomics dataset
- Author(s)
- Lyu, R; Vannan, A; Kropski, JA; Banovich, NE; McCarthy, DJ;
- Journal Title
- Bioinformatics
- Abstract
- SUMMARY: Image-based spatial transcriptomics (iST) deliver gene expression measurements of RNA transcripts in tissue slices with single-molecule resolution and spatial context preserved. Modern Graph Neural Network (GNN) models are promising methods for capturing the complex molecular and cellular phenotypes in tissues at single-transcript and single-cell levels. A key application of GNNs is the detection of spatial domains or niches, that is, groups of molecules and/or cells that collaboratively work together to produce complex phenotypes. Due to the vast number of detected transcripts in (iST) dataset, applying GNNs on RNA molecule graphs is not trivial. We present a Python package, SpatialRNA, for easy (sub)graph generation from tissue samples and provide comprehensive tutorials for convenient and efficient application of Graph Neural Network models under the PyG framework. This highly scalable tool comprehensively segments tissue into spatial domains, aiding in biological interpretation of iST data and its underlying molecular microenvironments. AVAILABILITY AND IMPLEMENTATION: The SpatialRNA package is freely accessible from online repository https://github.com/ruqianl/spatialrna and can be installed via pip. Comprehensive tutorials, guidance on parameter selection, and complete workflows of case studies are available from the documentation website https://ruqianl.github.io/spatialrna_docs/, and uploaded on Zenodo with a DOI 10.5281/zenodo.17339575.
- Publisher
- Oxford Academic
- Keywords
- *Neural Networks, Computer; *Software; *Transcriptome; *Gene Expression Profiling/methods
- Research Division(s)
- New Medicines and Diagnostics
- PubMed ID
- 41390915
- Publisher's Version
- https://doi.org/10.1093/bioinformatics/btaf659
- Terms of Use/Rights Notice
- Refer to copyright notice on published article.
Creation Date: 2026-01-29 02:00:44
Last Modified: 2026-01-29 02:01:03