Sign in

Abstract

MotivationSpatial transcriptomics resolves the organisation of tissues and their cellular neigh-bourhoods, 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. ResultsWe 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 accommo-dates 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 distri-bution, 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 implementationjazzPanda 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. Contactphipson.b@wehi.edu.au

02 /Specification & Classification

Click any tag to browse matching papers

In-depth summary

✦ Multi-agent verified full-text synthesis

Claude Opus 5.5 · xhigh effort · 8 Nov 2026 · from the full text of version 3 (6 Aug 2026) · CC BY 4.0

Binning transcript and cell coordinates into spatial vectors lets jazzPanda call smaller, spatially concordant marker sets than Wilcoxon or t-tests on Xenium/CosMx data, while modelling replicates and negative-control background.

Standard marker tests (Wilcoxon, t-test) were built for scRNA-seq, ignore cell and transcript positions, and on sparse imaging-based panels call much of the panel significant per cluster with many non-specific genes. jazzPanda instead asks whether a gene's spatial pattern matches a cluster, a question the authors separate from spatially variable gene detection, and they describe it as, to their knowledge, the only marker method that jointly handles spatial distribution, replicates and platform background.

Key results

  1. ShownCompared with the Wilcoxon rank sum test and limma's moderated t-test, both jazzPanda modes returned far fewer markers per cluster, largely nested within the standard tests' sets, and jazzPanda-glm placed spatially correlated genes at the top of its ranking more consistently.

    CosMx liver and two-sample Xenium breast cancer, large, medium and small cluster each; standard-test markers at adjusted p below 0.05 with positive log fold-change. Top-50 cumulative mean spatial correlation: highest for jazzPanda-correlation on the single liver sample (favoured by construction); jazzPanda-glm's top gene was usually strongly correlated; Wilcoxon and t-test varied across clusters. · Comparison of jazzPanda with single cell marker…; Wilcoxon rank sum test; limma

  2. SuggestedIn null simulations with spatially uniform genes, permutation p-values alone gave inflated false positives in many clusters; adding a correlation cut-off as small as 0.05 kept the false positive rate below 1%, and modelling negative-control background in jazzPanda-glm meant no uniform gene was assigned to a cluster.

    100 simulated datasets of 100 uniform genes on the CosMx human liver cancer layout. Median gene-cluster Spearman −0.028. Permutation-only positives ranged from near 0% to over 40% by cluster; a 0.05 correlation cut-off kept the false positive rate below 1% in all clusters. In glm, negprobe or falsecode was the top-ranked term in 89.27% and 10.73% of cases respectively, so no gene was assigned to a cluster. · Type I error rate control: null simulations; Simulation

  3. ShownOn real tissue, jazzPanda recovered known cell-type markers whose transcripts are spatially concordant with the cluster: IGFBP7 for stellate cells in CosMx healthy human liver, and IL7R for T cells across two Xenium HER2+ breast cancer replicates.

    Liver (1,000 genes, 332,877 cells, 15 cell types, 40 × 40 bins): jazzPanda-correlation called 130 stellate markers, top IGFBP7 (Spearman 0.904, adjusted permutation p 0.0018); jazzPanda-glm with background called 40, also led by IGFBP7. Xenium (313 genes, nine shared clusters): glm with sample and two background covariates called 31 T cell markers, top IL7R. · jazzPanda identifies specific, spatially…

  4. SuggestedOn the Xenium breast cancer data, jazzPanda-glm markers stayed largely the same across grid sizes, though the coarsest grid missed some markers. The authors advise choosing bins so that every cluster averages at least one cell per tile.

    Square grids from 10 × 10 to 100 × 100 for a large, medium and rare cluster: the largest upset intersection was genes shared by all grids; 10 × 10 missed markers found at other sizes. Mean pairwise Jaccard index of top markers was 0.73 to 0.85 for clusters with well-populated marker sets, lower only where markers were very few. · Effect of grid size on marker gene detection; Robustness and computational performance

  5. ShownjazzPanda runs much slower than the standard tests, because of the permutation step (correlation) and spatial-vector construction, its most time-consuming step. Even so, it finished a MERSCOPE sample of over 490 million transcripts within 50 minutes on five cores.

    Four datasets, HPC with 12 cores and 300 to 400 GB: jazzPanda-correlation roughly 20 to 50 min (permutation step), jazzPanda-glm about 40 min on the largest (MERSCOPE breast cancer), Wilcoxon and moderated t-test 10 seconds to 4 minutes. Peak memory highest for glm, roughly 8 to 30 GB; vector construction time driven mainly by transcript count. · Computational complexity; Robustness and computational performance

Methods, data and reproducibility

Tissue is tiled into square, rectangular or hexagonal bins; per-bin transcript sums give gene vectors and per-bin cell counts give cluster vectors. Markers come from Spearman correlation with a cell-label permutation null (one sample) or a per-gene lasso (ten-fold cross-validation) then a linear model with sample and negative-control background covariates.

  • CosMx healthy human liver sample (single-sample marker analysis and method comparison) · human · n = 1,000 genes, 332,877 cells, 15 annotated cell types
  • Xenium HER2+ human breast cancer, two biological replicates (multi-sample glm, comparison, grid-size robustness) · human · n = 313 genes, nine shared clusters, 2 replicates
  • CosMx human liver cancer sample (basis for null simulations; runtime profiling) · human · n = 1,000-gene panel
  • MERSCOPE human breast cancer sample (cluster and gene co-location; runtime profiling) · human · n = over 490 million transcripts
  • Null simulations: genes and negative controls placed uniformly over the tissue window, with real cluster vectors · human (layout and clusters from the CosMx liver cancer sample) · n = 100 datasets of 100 genes
Methods & tools
jazzPanda (R/Bioconductor), Seurat 5.3.0 (FindMarkers, Wilcoxon rank sum), limma 3.64.1 (moderated t-test), speckle 1.8.0 (normCounts), peakRAM 1.0.2, workflowr 1.7.1, 10x Xenium, Nanostring CosMx, Vizgen MERSCOPE
Software & environment
R 4.5.1; Seurat 5.3.0, limma 3.64.1, speckle 1.8.0, peakRAM 1.0.2, workflowr 1.7.1; package versions per script in the Session Information on the workflowr site.
Assay conditions & compute
WEHI HPC cluster with 12 cores and 300 to 400 GB memory; jazzPanda parallelised over five cores. Runtimes roughly 20 to 50 min (correlation) and about 40 min (glm, largest MERSCOPE dataset) vs 10 seconds to 4 minutes for Wilcoxon and t-test; glm peak memory roughly 8 to 30 GB.
Reproducibility gaps
Dataset-specific quality control and clustering, plus the grid-size and complexity procedures, are described only in Supplementary Methods, which are not part of this text.
Limitations (6)
  • Works best when clusters are spatially separable, especially for markers unique to one cluster; over-clustered data can degrade results, and the authors suggest merging similar clusters (cluster-cluster correlations can flag spatial overlap). · stated by the authors
  • Power depends on cluster size: larger clusters yield more significant markers than small ones, an effect most marked for jazzPanda-glm. · stated by the authors
  • The correlation approach cannot adequately model background signal or covariates such as sample or sex, and its permutation p-values must be read with a correlation cut-off to avoid false positives. · stated by the authors
  • Grid size and bin shape are user choices: a 10 × 10 grid appeared too coarse for the Xenium data, and hexagonal bins are slightly more faithful but substantially costlier to compute. · stated by the authors
  • No ground-truth marker set is used; specificity is inferred from smaller marker lists, nesting within standard-test sets and spatial correlation with the cluster, a metric close to what jazzPanda itself optimises. · noted in this summary
  • Type I error was simulated only with uniform placement on one CosMx liver cancer sample, and grid-size robustness was tested only on the two-sample Xenium breast cancer data. · noted in this summary

Who should read:Read this if you annotate clusters in Xenium, CosMx or MERSCOPE data and want short, spatially concordant marker lists that account for replicates and negative-control background, or a simple binned co-location analysis.

Reproducibility ledger

Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.

Sign in to file a reproducibility report.

Similarity Map
SelectedSame fieldCross-field
THISNelson '21Zhang '23Sun '20Laubscher '24Shi '23Yuan '26
66% semantic matchBioinformatics
M. E. Nelson, Simone G. Riva, Ana Cvejic·bioRxiv·Apr 8, 2021· 9 citations