Merge probability matrix into SpatialExperiment object.
Value
A SpatialExperiment object. Cell-level neighborhood information are saved in the colData of the SpatialExperiment object.
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)
spe <- mergeHoodSpe(spe, pm2)