coloc module#
Focused on differential co-localization
Observed vs Expected log2 ratios filtered by p-value obtained from comparing them against a background distribution |
|
Observed vs Expected log2 ratios filtered by adjusted p-value from a per-pair background distribution. |
|
Check if a cell group (niche/type/category) is contained in a cell type pair |
|
(Differential) co-localization network |
|
Compute a kNN-based co-localization probability matrix between cell type pairs. |
|
Compute a radius-based co-localization probability matrix between cell type pairs. |
|
Differential co-localization test with table of scores and p-values as output |
|
Vectorized calculation of cell type pair co-localization probabilities per sample (sum across spots of probabilities of each cell type pair being in the same spot) |
|
Transforms matrix obtained with getColocProbs into a matrix of CT pairs x samples CTcoloc=previously obtained colocalisation matrix from getColocprobs complete=list with repeated values (ct1_x_ct2 and ct2_x_ct1) |
|
Plot cell types in spatial data (MERFISH / visium slices) |
|
Plot niches in spatial data (MERFISH / visium slices) |
|
Plot a single cell type proportions in spatial data (MERFISH / visium slices) |