Get neighbor indices for a cell from either a neighbor list or Seurat object
get_neighbors(cell_name, seu, nn_list = NULL, nn.name = NULL)
Arguments
- cell_name
Cell name (character)
- seu
Seurat object
- nn_list
Optional list of neighbors by cell
- nn.name
Optional character. If neighbors are already present in the Seurat object, this specifies the name of the neighbor graph to use (e.g. `"SCT"` or `"RNA"`).
Value
Integer vector of neighbor indices