run_nn: Generate nearest neighbor per sample

Description Usage Arguments

View source: R/utils.R

Description

Generate nearest neighbor per sample

Usage

1
run_nn(cells, pc_space, k = 50, dim = 30)

Arguments

cells

data.frame, containing cell metadata

pc_space

matrix, containing PCA coordinates (cols = coordiantes, rows = cells)

k

numeric, number of neighbors considered for smoothing (default k = 50)

dim,

numeric, number of PC dimensions used to compute nearest neighbor graph


anders-biostat/lcsc documentation built on Dec. 19, 2021, 2:34 a.m.