Comparisons between groups of samples #784
Labels
squidpy2.0
Everything releated to a Squidpy 2.0 release
workstream
Major workstreams for the Squidpy 2.0 release
Most functions in squidpy seem to be centered around analyzing a single sample.
For me, in the context of clinical trials, it would be important to compare between sample groups. The usual variables of interest are
A few things that came to my mind
Would be great to have dedicated functions for this, and happy about further ideas!
CC @Zethson, because this is basically "spatial pertpy"
Example data
adata = cc.datasets.codex_mouse_spleen('./data/codex_mouse_spleen.h5ad')
-> 3 vs. 6Collection of use-cases and implementation ideas
Differential neighborhood enrichment
Sharing here a very simple approach that estimates for each "niche" (e.g. tumor spots), the average neighborhood (i.e. across all spots of that niche, what's the fraction of neighboring niches). This allows to distinguish, for instance, between immune-infiltrated and immune-excluded tumors.
This results in something like this (each column a sample):
Statistics between groups of samples can be computed using a standard linear model.
Visualization idea:
(but instead color heatmap by enriched/depleted)
The text was updated successfully, but these errors were encountered: