View source: R/build_knn_graph.R
build_knn_graph_nn2 | R Documentation |
"build_knn_graph"
)Build kNN graph using RANN::nn2
(used in "build_knn_graph"
)
build_knn_graph_nn2(
X,
k = min(5, ncol(X)),
mode = "all",
DoSNN = FALSE,
which.snn = c("bluster", "dbscan"),
pruning = NULL,
kmin = 0,
...
)
X |
matrix of coordinates (rows are samples and cols are coordinates) |
k |
kNN parameter |
mode |
mode of graph_from_adj_list ('all' – undirected graph, 'out' – directed graph) |
DoSNN |
whether to apply shared nearest neighbors (default is |
which.snn |
whether to use neighborsToSNNGraph or sNN for sNN graph construction |
pruning |
quantile to perform edge pruning (default is |
kmin |
keep at least |
... |
other parameters of neighborsToSNNGraph or sNN |
a list with components
graph.knn - igraph object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.