View source: R/fn_spongeffects_utility.R
define_modules | R Documentation |
Functions to define Sponge modules, created as all the first neighbors of the most central genes (= centrality), or with community detection methods (louvain, leiden, walktrap, optimal).
define_modules( network, central.modules = F, remove.central = T, set.parallel = T, module_creation = "centrality", param )
network |
Network as dataframe and list of central nodes. First two columns of the dataframe should contain the information of the nodes connected by edges. |
central.modules |
consider central gene as part of the module. Is ignored if community detection is used for module creation. (default: False) |
remove.central |
Possibility of keeping or removing (default) central genes in the modules (default: T) |
set.parallel |
paralleling calculation of define_modules() (default: F) |
module_creation |
c("centrality", "louvain", "leiden", "walktrap", "optimal") Which method should be used to create modules (default: "centrality") |
param |
Is used to refine the community detection methods. Will influence the resolution parameter for the louvain or leiden algorithm and the steps parameter in the walktrap algorithm. |
List of modules. Module names are the corresponding central genes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.