run_louvain: Python wrapper to run Louvain

View source: R/run_louvain.R

run_louvainR Documentation

Python wrapper to run Louvain

Description

Louvain on an igraph object.

Usage

run_louvain(graph, gamma = 1, nreps = 1, nb_cores = 1)

Arguments

graph

a igraph object

gamma

a vector of gamma. Default 1.

nreps

the number of repetition for each gamma, Default 1.

nb_cores

the number of processors to use. Default is 1.

Details

This functions depends on Python and louvain being installed. Make sure igraph, louvain and numpy are installed. For example with something like: 'pip install python-igraph louvain numpy'.

Value

a list with

comm

a data.frame with the community for each gamma

gamma

the input gammas corresponding to the columns of comm

Author(s)

Jean Monlong


jmonlong/scCNAutils documentation built on May 3, 2022, 4:34 a.m.