run_nn.Rd
Generate nearest neighbor per sample
run_nn(cells, pc_space, k = 50, dim = 30)
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 |