View source: R/nearest_neighbors.R
set_cds_nn_index | R Documentation |
Store the given nearest neighbor index in the cell_data_set. The reduction_method parameter tells set_cds_nn_index where in the cell_data_set to store the index.
set_cds_nn_index(
cds,
reduction_method = c("UMAP", "PCA", "LSI", "Aligned", "tSNE"),
nn_index,
verbose = FALSE
)
cds |
a cell_data_set in which to store the nearest neighbor index. |
reduction_method |
a string giving the reduced dimension matrix used to make the nn_index nearest neighbor index, and determines where the index is stored in the cell_data_set. |
nn_index |
a nearest neighbor index to store in cds. |
verbose |
a boolean indicating whether to emit verbose output. |
a cell_data_set with the stored index.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.