View source: R/05_phylogenomic_profiling.R
cluster_network | R Documentation |
Cluster the synteny network using the Infomap algorithm
cluster_network(
network = NULL,
clust_function = igraph::cluster_infomap,
clust_params = NULL
)
network |
A network represented as an edge list, which is a 2-column data frame with node 1 in the first column and node 2 in the second column. In a synteny network, node 1 and node are the anchor pairs. |
clust_function |
Function to be used to cluster the network. It must be one the functions from the cluster_* family in the igraph package (e.g., cluster_infomap, cluster_leiden, etc). Default: igraph::cluster_infomap. |
clust_params |
A list with additional parameters (if any) to be passed to the igraph clustering function. Default: NULL (no additional parameters). |
A 2-column data frame with the following variables:
Gene ID.
Cluster ID as identified by infomap.
data(network)
clusters <- cluster_network(network[1:500, ])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.