Given a Kandinsky object containing a neighbour network, this function will identify, for each cell/node, higher order neighbours that are distant n (maxorder) number of links from each other. For more information, see nblag() function in the spdep package.
nb_expand(seurat, maxorder = 2, cumul = T)
a Seurat object containing Kandinsky data slot
numeric, link distance considered to define higher order neighbours
boolean, whether returning updated neighbour network with only higher order relationships (FALSE) or with the cumulative union of first and higher order neighbour links (TRUE)
seurat object with updated 'nb' neighbours in Kandinsky data
Other nb_funcs:
centroid_nb()
,
knn_nb()
,
membrane_nb()
,
nb_update()
,
queen_nb()
,
tri_nb()