View source: R/nearest_neighbors.R
make_nn_index | R Documentation |
Make a nearest neighbor index from the subject_matrix using either the default nearest neighbor method or the method specified in the nn_control list parameter. The function returns the index.
make_nn_index(subject_matrix, nn_control = list(), verbose = FALSE)
subject_matrix |
the matrix used to build the index. |
nn_control |
a list of parameters used to make the nearest neighbor index. See the set_nn_control help for details. |
verbose |
a boolean indicating whether to emit verbose output. |
a nearest neighbor index.
cds <- load_a549()
cds <- preprocess_cds(cds)
nn_index <- make_nn_index(SingleCellExperiment::reducedDims(cds)[['PCA']])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.