Find clusters in SNN graph using a community detection algorithm and if possible, using a specified resolution.
Source:R/clustering.R
run_graph_based_clustering.Rd
Find clusters in SNN graph using a community detection algorithm and if possible, using a specified resolution.
Usage
run_graph_based_clustering(
graph_snn,
is_integration,
algorithm = c("louvain", "walktrap", "leiden"),
resolution = 0.8
)
Arguments
- graph_snn
(input target) An object of class
igraph
.- is_integration
A logical scalar: if
TRUE
, clusterings will be named ascluster_int_*
, otherwisecluster_*
.- algorithm
A character scalar: community detection algorithm:
louvain
:igraph::cluster_louvain()
walktrap
:igraph::cluster_walktrap()
leiden
:igraph::cluster_leiden()
- resolution
A numeric scalar: resolution of the
algorithm
(not used inwalktrap
). Higher values result in more fine-grained clusters.