MarioniLab / miloR

R package implementation of Milo for testing for differential abundance in KNN graphs
https://bioconductor.org/packages/release/bioc/html/miloR.html
GNU General Public License v3.0
316 stars 20 forks source link

Prevention of Neighbourhood Merging of Similar Cell Types into Neighbourhood Groups #326

Closed DarioS closed 1 month ago

DarioS commented 1 month ago

I notice that neighbourhood groups will make groups of different cell types if cell types are similar. Might Milo accept some per-cell labelling from a method such as SingleR to set up a boundary not to be crossed for neighbourhood merging? For example,

image

Source: Cancer-associated Fibroblast Classification in Single-cell and Spatial Proteomics Data, Nature Communications

The graph of such a data set would be highly connected, meaning that heterogeneous neighbourhood groups are formed.

image

A split plot shows the true extent of the overlap (in two dimensions) and rampant overlplotting of dots in the overall plot.

MikeDMorgan commented 1 month ago

The function is purely for grouping neighbourhoods based on the neighbourhood adjacency matrix. It does not aim to recapitulate single-cell clustering/annotation.