Fnn {Sconify} | R Documentation |
This function is a wrapper around FNN package functionality to speed up the KNN process. It uses KD trees as default, along with k set to 100. Selection of K will vary based on the dataset. See k.selection.R.
Fnn(cell.df, input.markers, k = 100)
cell.df |
the cell data frame used as input |
input.markers |
markers to be used as input for knn |
k |
the number of nearest neighbors to identify |
nn: list of 2, nn.index: index of knn (columns) for each cell (rows) nn.dist: euclidean distance of each k-nearest neighbor
Fnn(wand.combined, input.markers)