MakeKnnList: Make list of cells by features for each KNN member

Description Usage Arguments Value Examples

Description

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.

Usage

1
MakeKnnList(cell.data, nn.matrix)

Arguments

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

Value

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

Examples

1
2
ex.knn <- Fnn(wand.combined, input.markers, k = 30)
knn.list <- MakeKnnList(wand.combined, ex.knn)

tjburns08/Sconify documentation built on May 31, 2019, 8:56 a.m.