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)

Arguments

seurat

a Seurat object containing Kandinsky data slot

maxorder

numeric, link distance considered to define higher order neighbours

cumul

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)

Value

seurat object with updated 'nb' neighbours in Kandinsky data

See also

Other nb_funcs: centroid_nb(), knn_nb(), membrane_nb(), nb_update(), queen_nb(), tri_nb()