Learn R Programming

SLICER (version 0.2.0)

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

Description

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

Usage

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

Run this code
# NOT RUN {
genes = select_genes(traj)
k = select_k(traj[,genes])
# }

Run the code above in your browser using DataLab