getmutualknn: getmutualknn

View source: R/getmutualknn.R

getmutualknnR Documentation

getmutualknn

Description

Get a mutual kNN graph (M-kNN) from the latent space (LSI) of single cell profiles

Usage

getmutualknn(lsimat = lsimat, num_k = 30)

Arguments

lsimat

A dense or sparse matrix of cell (rows) x LSI (cols)

num_k

A numeric input (30 by default) for k used for graph construction

Value

A sparse matrix indicating adjacent matrix from single cells used for graph construction

Examples

## Not run: 
mknn_graph <- getmutualknn(lsimat=LSI_mat, num_k=30)

## End(Not run)



fl-yu/SCAVENGE documentation built on April 2, 2022, 10:56 a.m.