In disease, location can matter as much as identity: two kinds of cells may behave differently simply because they are standing closer together. This study finds a way to measure that changing neighborhood across space.
Differential co-localization analysis of multi-sample and multi-condition experiments with spatialFDA
Martin Emons, Fabian Scheipl, Samuel Gunz, Elizabeth A. Purdom, Mark D. Robinson
Advances in spatial omics data generation have led to an explosion in new datasets that record the spatial location of transcripts and proteins. However, challenges remain in the analysis of spatial omics data. One important analysis is differential cellular co-localisation (CCoL): the quantification of the clustering, or spacing, of one or more cell types across multiple conditions. Our framework spatialFDA combines methodology from spatial statistics with functional data analysis to accurately quantify and test for differences between conditions in CCoL across spatial scales. Using two simulation studies, we show that spatialFDA performs well in controlled settings. Furthermore, spatialFDA recovers known biological processes in type-1 diabetes and adds insights about the CCoL strength in space. spatialFDA is readily available as an open source Bioconductor R package.
Transcript
In disease, location can matter as much as identity: two kinds of cells may behave differently simply because they are standing closer together. This study finds a way to measure that changing neighborhood across space.
New spatial measurements can describe cells in their native biological context, including where they are and what surrounds them. The central question is cellular co-localisation: finding cell types that are more often in the vicinity of other cell types than by chance.
In ordinary life, it is like noticing which people repeatedly end up standing together at a crowded event. That matters because these patterns occur in tumours, and the degree of co-localisation can differ between conditions with implications for clinical outcomes.
The challenge is that spatial measurements vary across viewing areas, samples, and conditions. If those different levels of variation are ignored, the results can become overly optimistic. A common solution is to compress a changing spatial pattern into a single number and compare that number between conditions, while accounting for measurements that are not independent.
But compressing a whole pattern into one number can lose sensitivity, because two rather different patterns can have the same single-number summary. Instead of condensing spatial measurements into single numbers, functional data analysis can compare the entire function across its range.
spatialFDA is a package designed to measure differences in cell co-localisation using the full spatial pattern rather than discarding its scale information. The approach was tested in controlled simulations and used in a cohort study of type-one diabetes to recover differences in cell co-localisation.
To compare conditions, spatialFDA examines the entire spatial measurement while accounting for variation between samples and viewing areas. The analysis compares entire spatial metrics between groups, generating model coefficients interpretable across spatial scales; this can show whether spatial patterns change and where they change.
In the simulations, spatialFDA was conservative but still showed decent ability to detect real differences compared with competing methods. The results also showed that repeated measurements need to be accounted for in complex spatial datasets.
Other approaches had different weaknesses: some had reduced statistical power, while two functional methods produced too many false discoveries in the simulations. The analysis also showed why a baseline matters: differences in the overall amount of a cell type can be confused with differences in how cells are arranged.
Some spatial measures adjust for differences in overall amount, while another does not, meaning some analyses are less affected by that confusion and another assesses both differences together. This figure shows that, in newly diagnosed type-one diabetes, two cell types had increased co-localisation compared with non-diabetic reference tissue, while long-duration disease showed no difference from the reference.
The increased co-localisation in newly diagnosed disease was strongest close to the pancreatic islets, rather than being spread evenly across distance. Across the simulations, spatialFDA was sensitive in controlled settings and controlled error rates better than most competing approaches.
In the diabetes study, it recovered known spatial effects while retaining information about the spatial scale of the interactions. That means researchers can examine how disease-related spatial effects vary with interaction distance, rather than treating all cell relationships as occurring at one scale.
The key idea is to compare whole patterns of cell spacing instead of squeezing each pattern into one number. That revealed where an important diabetes-related interaction is strongest, giving researchers a sharper map of disease biology.
CC BY 4.0 · A derivative work by Paperi · AI-generated script, voice and captions · pages and figures unaltered
Drop in a research PDF — get a narrated video walkthrough like this one, with highlights that follow the narration. Free to start.