call_infomap_clusterset: Perform Community Detection Using the infomap Algorithm...

View source: R/gene_clustering.R

call_infomap_clustersetR Documentation

Perform Community Detection Using the infomap Algorithm (internal function)

Description

Applies the infomap algorithm for community detection on a graph derived from the input data in a 'ClusterSet' object. Outputs the resulting clusters to a specified file and updates the parameters in the 'ClusterSet' object.

Usage

call_infomap_clusterset(object, modularity = FALSE, nb.trials = 10)

Arguments

object

A 'ClusterSet' object.

modularity

See igraph::cluster_infomap().

nb.trials

See igraph::cluster_infomap().

Details

This function reads a graph from the input file defined in the 'ClusterSet' object, processes the graph using the infomap community detection algorithm from the 'igraph' package, and return the clusters enclose in the 'ClusterSet'.

Value

The modified 'ClusterSet' object with updated parameters, including the infomap algorithm results

Examples

# Restrict vebosity to info messages only.
set_verbosity(1)
# Load a dataset
load_example_dataset("7871581/files/pbmc3k_medium")
# Select informative genes
res <- select_genes(pbmc3k_medium,
                    distance = "pearson",
                    row_sum=5)

# Cluster informative features
res <- gene_clustering(res, method="closest_neighborhood",
                       algorithm="infomap")


dputhier/scigenex documentation built on Feb. 28, 2025, 1:24 a.m.