detect_modules: Detect modules for Network

Description Usage Arguments Details Value Author(s) Examples

Description

This function detects modules for a network.

Usage

1
detect_modules(netGraph, cluster = "louvain", cutoff = 5)

Arguments

netGraph

an object of class 'networkGraph', created by link{pmartRseq_igraph}

cluster

which clustering method to use. Must be one of 'edge_betweenness', 'fast_greedy', 'infomap', 'label_prop', 'leading_eigen', 'louvain', 'optimal', 'spinglass', or 'walktrap'. Default is 'louvain'.

cutoff

Any modules which come back with a total of less than this number of members will all be grouped together.

Details

A network graph is created for the network(s) that were generated.

Value

An object of class 'modData', with group designations for every vertex in the graph.

Author(s)

Allison Thompson

Examples

1
2
3
4
5
6
7
8
## Not run: 
library(mintJansson)
data(rRNA_data)
mynetwork <- network_calc(omicsData = rRNA_data)
mygraph <- pmartRseq_igraph(netData = mynetwork, coeff=0.6, pval=NULL, qval=0.05)
mymods <- detect_modules(netGraph = mygraph)

## End(Not run)

pmartR/pmartRseq documentation built on May 25, 2019, 9:20 a.m.