A computational framework named SpotGLM, developed alongside a data selection method termed SPARROW, resolves cell-type-specific differential molecular signals from spatial omics mixtures while substantially reducing processing runtime. Reporting in Nature Biotechnology, investigators Kaishu Mason, Yijia Jiang, Konstantin A. Klötzer, Sijia Huang, and Nancy R. Zhang introduced the mathematical modeling architecture to overcome two central impediments in spatially resolved biology: the presence of multiple cell types within individual barcoded capture spots and the severe computational bottlenecks created by datasets containing hundreds of thousands to millions of measurement locations. Existing statistical tools developed for spatial transcriptomic data typically restrict differential evaluations to count-based readouts and fail to generalize across non-count modalities or scale efficiently to modern experimental volumes. SpotGLM addresses this by treating spot-level observations as mixtures of cell-type-resolved generalized linear models, pairing with SPARROW’s power-preserving data distillation algorithm to conduct bounded-runtime inference across diverse tissue architectures.
To evaluate cell-type-specific niche dependencies across different molecular layers, the researchers structured SpotGLM around a generalized linear model where the conditional expectation of a given biological readout, conditioned on spatial covariates, is treated as linear following transformation by an appropriate link function. In standard spatial barcoding workflows, readouts are captured across discrete spots containing unknown combinations of cell types rather than single, isolated cells. SpotGLM directly accommodates this spot composition by modeling expected spot values as a weighted mixture of inverse-link functions applied to cell-type-specific coefficient vectors. By specifying modality-matched link functions, the framework models count-based gene expression using a logarithmic link under Poisson or negative binomial assumptions, alternative splicing proportions using a logit link under a binomial model, and continuous signals—such as chromatin accessibility scores derived from assay for transposase-accessible chromatin sequencing—using an identity link under a Gaussian family.
Alongside the mixture-aware generalized linear model, the authors introduced SPARROW to mitigate the severe computational cost of evaluating massive spatial datasets, where standard statistical testing across all spots can require days or weeks of runtime. The team reasoned that expanding spatial datasets primarily enhances the representation of rare cell states and infrequent microenvironmental configurations, whereas statistical power to detect biologically meaningful effect sizes naturally saturates beyond specific sample thresholds. Rather than using uniform random subsampling, geometric sketching, or spatial rasterization—approaches that can discard rare biological configurations, introduce sensitivity to noise, or blur localized cell interactions—SPARROW formulates subset selection through an A-optimal experimental design objective. By minimizing the trace of the inverse Fisher information matrix via a stochastic greedy selection algorithm, the method iteratively gathers informative data points that minimize coefficient standard errors, preserving power for downstream Wald tests across both common and rare spatial niches.
To validate the scalability and signal recovery of the data distillation strategy, the authors benchmarked SPARROW against random subsampling, geometric sketching, and spatial rasterization across four distinct spatial transcriptomic datasets. In a colorectal cancer dataset generated with multiplexed error-robust fluorescence in situ hybridization, profiling 500 genes across more than 750,000 cells classified into 15 cell types and five regions, SPARROW achieved greater than 90 percent recall of full-data differential signals using only 10 percent of the cells, whereas competing subsampling approaches remained below 70 percent recall. Detailed inspection of subsample compositions indicated that while baseline methods heavily oversampled dominant tumor cells, SPARROW selected balanced representations across all cell-type and regional configurations, reaching complete sampling saturation for the rarest tumor niche. Across simulations spanning 10,000 to 5 million observations, SPARROW transitioned from selecting a fixed proportion of data points in power-limited regimes to selecting a plateaued, bounded subset once the full dataset saturated power, effectively capping computation time.
The mixture deconvolution capabilities of SpotGLM were initially benchmarked against existing spatial differential tools in simulated spatial transcriptomic mixtures generated under known Poisson distributions with six cell types and ten covariates. In systematic comparisons against C-SIDE, NicheDE, spVC, and a standard baseline that assigned each spot to its dominant cell type, SpotGLM, C-SIDE, and NicheDE demonstrated low estimation errors and high statistical power across increasing sample sizes. Conversely, the dominant-cell baseline produced substantially elevated type I error rates and biased coefficient estimates, establishing that ignoring spot-level cellular mixing generates spurious differential signals. When paired with SPARROW, SpotGLM scaled efficiently across sample sizes where competing mixture-aware implementations became computationally impractical, maintaining statistical calibration while achieving bounded runtime.
The investigative team subsequently validated SpotGLM’s ability to dissect real-world biological mixtures using two Visium HD human colorectal cancer datasets containing approximately 300,000 spots across nine annotated cell classes. To bypass excessive computational overhead, SPARROW distilled the dataset to 75,000 spots, reducing processing time from roughly six days down to 22 hours on 18,000 genes. SpotGLM was deployed to identify niche-dependent transcriptional alterations within fibroblasts residing near tumor, T cell, and B cell microenvironments. To verify the accuracy of SpotGLM’s spot deconvolution, the authors analyzed matched serial tissue sections profiled at single-cell resolution using a targeted 380-gene Xenium immuno-oncology panel. Despite substantial architectural differences between platforms, fibroblast niche effect coefficients estimated by SpotGLM on Visium HD exhibited strong, statistically significant rank correlations with standard single-cell generalized linear model coefficients from Xenium, yielding Spearman correlations of 0.79 and 0.80 for tumor niches and 0.80 and 0.86 for T cell niches across two clinical participants.
Biological interrogation of the colorectal cancer data revealed distinct niche-specific fibroblast programs, with fibroblasts adjacent to tumor cells showing elevated expression of extracellular matrix remodeling genes, including COL11A1, COL5A1, COL4A1, COL1A1, COL3A1, and SPARC, which aligned with established tumor-associated cancer-associated fibroblast markers and collagen organization pathways. Conversely, fibroblasts localized within T cell-rich niches upregulated inflammatory factors such as CCL19, displaying significant enrichment for cytokine-mediated and tumor necrosis factor signaling cascades. In an additional application to healthy adult mouse kidney profiled by Visium HD across 470,883 spatial spots, the authors modeled a continuous corticomedullary osmolarity gradient derived from histological feature clustering and Euclidean distance boundaries. SpotGLM identified high-osmolarity-associated fibroblast programs characterized by continuous upregulation of Igfbp5 and Spon1, pathways that were independently validated in an unmixed Xenium mouse kidney dataset with a cross-platform coefficient correlation of 0.83.
Extending beyond standard gene count quantification, the researchers tested SpotGLM on compositional alternative splicing using spatially barcoded long-read transcriptomic data from the adult mouse olfactory bulb, comprising 918 spots and over 23,000 reference isoforms across 11 deconvolved cell types. Employing a binomial model with a logit link function, SpotGLM distinguished true within-cell-type isoform switching from shifts in total cell type abundance, evaluating 11,081 layer-contrast hypotheses across 643 genes expressing two major isoforms. At a false discovery rate of 10 percent, the model identified 128 significant instances of cell-type-specific isoform switches across 64 genes, identifying neurons and olfactory ensheathing cells as the primary sites of regulation. In the Ap3s1 gene, SpotGLM mapped an isoform transition from Ap3s1-201 in inner layers to Ap3s1-202 in intermediate layers and back to Ap3s1-201 externally, while for Myl6, it accurately assigned a transition from Myl6-201 to Myl6-206 to neurons despite shifting neuronal proportions across the tissue layers.
Finally, the authors applied SpotGLM to continuous spatial epigenomic data using spatial assay for transposase-accessible chromatin sequencing from postnatal day 22 mouse brain across 9,215 spots and 14 regions. Applying a Gaussian SpotGLM with an identity link to chromVAR transcription factor motif scores and gene activity scores near transcription start sites, the model contrasted regulatory activity between the corpus callosum and cortex. Across 24,027 genes and 746 motifs, SpotGLM identified 223 transcription factor genes and 23 transcription factor motifs significantly enriched in corpus callosum oligodendrocytes, including Sox family regulators Sox10 and Sox8 as well as Nkx2-2 and Olig1. The spatial correspondence between motif enrichment and promoter accessibility confirmed that SpotGLM reliably captures cell-type-specific epigenetic programs from aggregate, mixture-confounded spatial chromatin profiles.
The authors noted several methodological constraints inherent to the framework. Like all spot-level spatial deconvolution methods, SpotGLM depends directly on the quality of cell type proportions inferred during upstream deconvolution; in silico aggregation tests demonstrated that deconvolution errors primarily diminish sensitivity and recall while preserving high precision above 0.98. Furthermore, while SPARROW dramatically reduces data volume and computational runtime by selecting informative subsets, it does not alleviate data sparsity, meaning that high-resolution platforms with very low per-spot counts may still require spatial rasterization or spot aggregation prior to subset selection. Additionally, the framework requires pre-specified spatial niche encodings, such as discrete anatomical domains, neighborhood compositions, or continuous physiological gradients, which must be carefully selected to avoid circularity if derived directly from the evaluated transcriptomic data.
Subject of Research: Statistical framework for scalable, mixture-aware cell-type-specific differential testing in spatial omics
Article Title: A unified framework for scalable differential testing for spatial omics
Article References: Mason, K., Jiang, Y., Klötzer, K. A., Huang, S., & Zhang, N. R. (2026). A unified framework for scalable differential testing for spatial omics. Nature Biotechnology. https://doi.org/10.1038/s41587-026-03284-0
Image Credits: AI Generated
DOI: 10.1038/s41587-026-03284-0
Keywords: SpotGLM, SPARROW, spatial omics, spatial transcriptomics, differential testing, generalized linear models, A-optimal design, data distillation, Visium HD, Xenium, spatial ATAC-seq, isoform switching, cell type deconvolution, colorectal cancer, corticomedullary gradient, chromatin accessibility
News Source: Vincent Franklin. (November 23, 2026). SpotGLM and SPARROW Framework Enables Scalable Differential Testing Across Spatial Omics Technologies. Scienmag.



