GetKnnDe {Sconify}R Documentation

Get the KNN density estimaion

Description

Obtain a density estimation derived from the original manifold, avoiding the lossiness of lower dimensional embeddings

Usage

GetKnnDe(nn.matrix)

Arguments

nn.matrix

A list of 2, where the first is a matrix of nn indices, and the second is a matrix of nn distances

Value

a vector where each element is the KNN-DE for that given cell, ordered by row number, in the original input matrix of cells x features

Examples

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

[Package Sconify version 1.13.0 Index]