get_merged_mods: Merge similar modules

Description Usage Arguments Value Examples

Description

This function takes a CEMiTool object with expression and a vector of numeric labels to merge similar modules.

Usage

1
2
3
4
get_merged_mods(cem, ...)

## S4 method for signature 'CEMiTool'
get_merged_mods(cem, mods, diss_thresh = 0.8, verbose = FALSE)

Arguments

cem

Object of class CEMiTool.

...

Optional parameters.

mods

A vector containing numeric labels for each module gene

diss_thresh

A threshold of dissimilarity for modules. Default is 0.8.

verbose

Logical. If TRUE, reports analysis steps. Default FALSE

Value

Numeric labels assigning genes to modules.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# Get example expression data
data(expr0)
# Initialize new CEMiTool object with expression data
cem <- new_cem(expr0, filter=TRUE, apply_vst=FALSE)
# Calculate adjacency matrix with example beta value 8
cem <- get_adj(cem, beta=8)
# Get modules
mods <- get_mods(cem)
# Merge similar modules
merged_mods <- get_merged_mods(cem, mods)

CEMiTool documentation built on March 13, 2021, 2 a.m.