knn_g: Generate KNN graph from

View source: R/knn_clustering.R

knn_gR Documentation

Generate KNN graph from

Description

Generate KNN graph from

Usage

knn_g(dat, k = 30, jaccard_kernel = TRUE)

knn_communities(...)

Arguments

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 knn_g

Value

igraph object

cluster assignments

Functions

  • knn_communities(): Louvain community detection on KNNG


vittoriofortino84/COPS documentation built on Jan. 28, 2025, 3:16 p.m.