A new Nature Biotechnology study unifies spatially variable gene tests under one kernel-based statistic, explaining tool disagreements and showing Moran’s I can miss real spatial signals.
A long-running problem in spatial biology is deceptively simple: how to tell when a molecular measurement is genuinely patterned in space, rather than fluctuating by chance. As spatial transcriptomics and other spatial omics technologies push into datasets with millions of measured locations and tens of thousands of features, that question has become both more urgent and harder to answer.
A new study published in Nature Biotechnology describes a unified statistical framework that aims to bring order to a fragmented landscape of “spatially variable gene” detection tools—methods used to flag genes or other molecular features whose abundance changes across a tissue. Benchmarking work over recent years has repeatedly found that popular algorithms often disagree, and that their performance can swing unpredictably between datasets. The new research argues that this inconsistency is not just an implementation problem, but a theoretical one: many tools are implicitly making different choices about what kinds of spatial patterns they can detect, and some widely used choices can fail even when strong structure is present.
One statistic to connect many methods
At the center of the work is a mathematical re-framing. The researchers show that a broad range of major approaches—including graph-based statistics, parametric regression-style tests, and non-parametric dependence measures—can be written as variations of a single quadratic-form statistic. In simplified terms, the test computes a quantity of the form zᵀKz, where z represents standardized measurements and K is a matrix encoding spatial relationships.
The apparent diversity of methods, the authors argue, largely comes down to how that spatial structure matrix is chosen—equivalently, what “kernel” is used to represent proximity and spatial smoothness. With this common formulation, disagreement between tools becomes easier to interpret: methods are not fundamentally testing different hypotheses so much as emphasizing different spatial frequencies and geometries.
The study links this quadratic-form view to established ideas in statistical dependence testing, connecting the statistic to measures of distance between the joint distribution of space and measurements and the distribution expected if they were independent. It also challenges the notion, common in some prior categorizations, that certain approaches are “kernel-free.” Graph-based methods rely on adjacency matrices, while dependence-based approaches can introduce kernels indirectly through density estimation. In the new framework, they are all kernel methods—explicitly or implicitly.
Why Moran’s I can miss real signals
One of the headline results is that several popular methods, including the classic spatial autocorrelation statistic Moran’s I, can be inconsistent under broad conditions. In statistical terms, an inconsistent test may fail to reliably detect a true signal even as the dataset grows larger.
The study traces this failure to a property of the kernel’s spectrum. Some kernels are “indefinite,” meaning their eigenvalues include both positive and negative components. In such cases, a true spatial signal can align with eigenmodes of opposing sign, effectively cancelling itself out in the test statistic and producing false negatives. Moran’s I, when expressed through a standard adjacency-matrix formulation, falls into this problematic category in the authors’ analysis.
The proposed remedy is not to abandon quadratic-form tests, but to impose general “consistency conditions” on kernel choice. Under the framework presented, a test is consistent if and only if its kernel is “strictly definite,” a spectral requirement that prevents cancellation and ensures sensitivity to any mean-shift pattern as data accumulate.
Limits of what spatial omics can prove
The work also makes a more sobering point: with the typical spatial omics setup—one measurement per feature per spatial location—quadratic-form tests are inherently limited to detecting patterns that manifest as changes in the mean across space. In principle, higher-order spatial dependencies exist, but with single observations per location they become empirically hard to distinguish from mean shifts. The authors therefore adopt a functional view of spatial patterns, treating them as elements in a mathematical space that can be expanded in frequency components.
This frequency lens also clarifies why there is no universally best kernel. Kernels that emphasize high-frequency components are tuned to sharp, localized boundaries; those emphasizing low frequencies are tuned to broad gradients. A graph Laplacian, for example, prioritizes abrupt local changes, while its inverse—related to conditional autoregressive (CAR) models—emphasizes smooth, large-scale trends. Hybrid strategies can broaden sensitivity, but the study argues that expanding coverage inevitably dilutes power at the extremes.
Making it fast enough for modern datasets
Even a principled test is of limited value if it cannot run on today’s data. Here the study claims substantial computational gains through two acceleration strategies.
For irregular tissue geometries, the researchers describe optimizing CAR-style kernels using implicit matrix–vector products combined with a randomized trace estimator, avoiding the need to construct and store dense kernel matrices. For data measured on grids, they exploit Toeplitz structure to compute quadratic forms using fast Fourier transforms, reducing time complexity to roughly N log N rather than the cubic scaling that cripples naïve implementations.
In reported demonstrations, the approach can screen for spatial variability on one million spatial locations in under a second—suggesting the framework could keep pace with rapidly scaling platforms and enable routine analysis across very large experiments, including single-cell lineage-tracing datasets where spatial structure and ancestry information intersect.
The broader message is that spatial omics pattern detection may not need an ever-growing zoo of competing statistics. Instead, the study contends, the field can converge on a shared mathematical backbone—then debate, transparently, which kernels best match the biological patterns of interest.
Why it matters
Spatial omics is moving from boutique experiments to atlas-scale projects, but the statistical tools for detecting spatial structure have remained fragmented and, in some cases, theoretically fragile. A unified framework with clear consistency guarantees could make results more reproducible across labs and platforms. If the promised speedups hold broadly, it may also remove a major bottleneck in analyzing datasets that are now too large for many standard methods to handle.