
Create Nearest Neighbor Object
createNN.Rd
A user interface to create a NN-class object.
This is just meant to standardize the various representation of nearest neighbors that are out there. Matches dimensions with the analysis it points to.
Usage
createNN(
name,
analysis,
method,
idx,
dist,
make.igraph = FALSE,
igraph = NULL,
misc = NULL
)
Arguments
- name
The name of the nearest neighbor object. Can refer to how it was made
- analysis
Which analysis / region it was made from
- method
How the graph was generated (e.g., knn, frnn, del, snn).
- idx
The nearest neighbor indices. The first nearest neighbor of a cell is NOT itself
- dist
Distance to nearest neighbors in idx
- make.igraph
Whether to also create an igraph representation (this is space-inefficient)
- igraph
An igraph representation of the NNs
- misc
Any additional information