Exact Expectation of Complete Spatial Randomness for Nearest Neighbor G(r): A Scalable Alternative to Permutations

最近邻 G(r) 的完全空间随机性的精确期望:一种可扩展的置换方法

阅读:1

Abstract

Spatial analysis is becoming increasingly important for studies, from epidemiology to tissue biology, as technologies advance and experimental costs decrease. However, the widespread use of spatial metrics such as Nearest Neighbor G(r) is affected by the fact that biological systems rarely satisfy the assumption of stationarity, which is required to appropriately use theoretical complete spatial randomness (CSR) measures. As a result researchers often use computationally expensive permutations to empirically estimate CSR for subsets of points or cells. Here, we present closed form analytical solutions for both the mean and variance of the sample-specific CSR for Nearest Neighbor G(r) to allow for fast and reproducible calculation without permutations. Using a multiplex immunofluorescence sample of clear cell renal cell carcinoma, we show that the theoretical G(r) for cytotoxic T cells overestimates CSR at low radii (due to spatial constraints between cells) while drastically underestimating CSR at radii between 20 and 90 pixels. In a simulated sample of 30 points, our analytical solution for the mean is identical to the average of G(r) measured on all 142,506 unique combinations of 5 marked (or positive) points. On the real clear cell renal cell carcinoma sample, our exact CSR is similar in speed to estimating CSR with 1000 permutations while our optimized Rcpp implementation is ~30x faster and consuming ~20x less memory than 1000 permutations. This permutation-free approach dramatically enhances computational efficiency and reproducibility, enabling scalable and reproducible analysis for studies in epidemiology, multiplex immunofluorescence, spatial transcriptomics, and related fields where accurate, sample-specific null expectations are important for comparisons.

特别声明

1、本页面内容包含部分的内容是基于公开信息的合理引用;引用内容仅为补充信息,不代表本站立场。

2、若认为本页面引用内容涉及侵权,请及时与本站联系,我们将第一时间处理。

3、其他媒体/个人如需使用本页面原创内容,需注明“来源:[生知库]”并获得授权;使用引用内容的,需自行联系原作者获得许可。

4、投稿及合作请联系:info@biocloudy.com。