Merge probability matrix based on annotations
Value
A probability matrix, describing the probability of each cell being in each cellular neighborhood.
Examples
data("spe_test")
spe <- readHoodData(spe, anno_col = "celltypes")
fnc <- findNearCells(spe, k = 100)
pm <- scanHoods(fnc$distance)
#> Tau is set to: 22747.4
pm2 <- mergeByGroup(pm, fnc$cells)