MakeKnnList {Sconify} | R Documentation |
Takes the KNN function output and the cell data, and makes list where each element is a matrix of cells in the KNN and features.
MakeKnnList(cell.data, nn.matrix)
cell.data |
tibble of cells by features |
nn.matrix |
list of 2. First element is cells x 100 nearest neighbor indices. Second element is cells x 100 nearest neighbor distances |
a list where each element is the cell number from the original cell.data tibble and a matrix of cells x feautures for its KNN
ex.knn <- Fnn(wand.combined, input.markers, k = 30) knn.list <- MakeKnnList(wand.combined, ex.knn)