View source: R/knn_clustering.R
knn_g | R Documentation |
Generate KNN graph from
knn_g(dat, k = 30, jaccard_kernel = TRUE)
knn_communities(...)
dat |
data matrix with samples on columns |
k |
number of neighbours |
jaccard_kernel |
if TRUE computes the Jaccard similarity of nearest neighbors for each sample-pair which results in a weighted graph where the weight describes the fraction of mutual nearest neighbors |
... |
passed to |
igraph
object
cluster assignments
knn_communities()
: Louvain community detection on KNNG
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.