MakeKnnList {Sconify} | R Documentation

## Make list of cells by features for each KNN member

### 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

    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

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

[Package Sconify version 1.0.4 Index]