Learn R Programming

Seurat (version 5.0.3)

TopNeighbors: Get nearest neighbors for given cell

Description

Return a vector of cell names of the nearest n cells.

Usage

TopNeighbors(object, cell, n = 5)

Value

Returns a vector of cell names

Arguments

object

Neighbor object

cell

Cell of interest

n

Number of neighbors to return