Ensure that each cell's number of neighbours does not exceed a cutoff
Arguments
- object
A
Seurat
object- graph.name
name of a
Graph
orNeighbor
instance stored in theSeurat object
.- new.graph
name of the trimmed graph to save in the
Seurat object
- k.max
maximum number of neigbours allowed per cell
- assay
name of the assay to use. Ignored when graph object is a
Neighbor
object. If not specified (default), the default assay is used- verbose
whether to print messages. Set to
FALSE
to disable