Ensure that each cell's number of neighbours does not exceed a cutoff
Arguments
- object
A
Seuratobject- graph.name
name of a
GraphorNeighborinstance 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
Neighborobject. If not specified (default), the default assay is used- verbose
whether to print messages. Set to
FALSEto disable
