select_k: Select the number of nearest neighbors for LLE to use

Description Usage Arguments Value Examples

View source: R/SLICER.R

Description

select_k uses the alpha-hull to determine which value of k yields an embedding that most resembles a trajectory.

Usage

1
select_k(exp_mat, kmin = 5, kmax = 50, by = 5)

Arguments

exp_mat

Matrix of expression levels

kmin

Smallest value of k to try

kmax

Largest value of k to try

by

Increment

Value

The optimal value of k

Examples

1
2
3
4
5
## Not run: 
genes = select_genes(traj)
k = select_k(traj[,genes])

## End(Not run)

jw156605/SLICER documentation built on May 20, 2019, 5:21 a.m.