X. Jin, G. H. Putri, J. Cheng, M.-L. Asselin-Labat, G. K. Smyth, B. Phipson
Motivation: Spatial transcriptomics resolves the organisation of tissues and their cellular neighbourhoods, where cell type identification depends on reliable marker gene detection. Existing marker methods were developed for single-cell RNA sequencing and ignore the spatial coordinates of cells and transcripts, a particular problem for imaging-based platforms where transcript counts per gene per cell are extremely sparse. Results: We present jazzPanda, a method for detecting spatially informative marker genes in imaging-based spatial transcriptomics. Transcript and cell coordinates are aggregated into one-dimensional vectors by spatial binning, and gene vectors can be built directly from transcript coordinates without cell segmentation. Markers are identified either by permutation-based rank correlation for single-sample data, or by a lasso-regularised generalised linear model that accommodates multiple samples and platform-specific background signal from negative-control probes. To our knowledge, jazzPanda is the only marker detection method to account jointly for spatial distribution, replication across samples, and platform background. Benchmarked against the Wilcoxon rank sum test and t-tests on public Xenium and CosMx data, jazzPanda recovers markers with stronger spatial concordance and greater specificity, yielding smaller, more interpretable marker sets. The same vector framework also extends to cluster- and gene-level co-location analysis. Availability and implementation: jazzPanda is implemented as an open-source R/Bioconductor package, freely available at https://bioconductor.org/packages/jazzPanda. Analysis code for this article is at https://github.com/phipsonlab/jazzPanda_paper, with an accompanying analysis website at https://phipsonlab.github.io/jazzPanda_workflowr/. Datasets and scripts are deposited at https://zenodo.org/records/18149456. Contact: phipson.b@wehi.edu.au