cluster_network: Cluster the synteny network using the Infomap algorithm

View source: R/05_phylogenomic_profiling.R

cluster_networkR Documentation

Cluster the synteny network using the Infomap algorithm

Description

Cluster the synteny network using the Infomap algorithm

Usage

cluster_network(
  network = NULL,
  clust_function = igraph::cluster_infomap,
  clust_params = NULL
)

Arguments

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).

Value

A 2-column data frame with the following variables:

Gene

Gene ID.

Cluster

Cluster ID as identified by infomap.

Examples

data(network)
clusters <- cluster_network(network[1:500, ])

almeidasilvaf/syntenet documentation built on Oct. 12, 2024, 5:51 p.m.