pruneConsensusModules {WGCNA} | R Documentation |
Prune (hierarchical) consensus modules by removing genes with low eigengene-based intramodular connectivity
Description
This function prunes (hierarchical) consensus modules by removing genes with low eigengene-based intramodular connectivity (KME) and by removing modules that do not have a certain minimum number of genes with a required minimum KME.
Usage
pruneConsensusModules( multiExpr,
multiWeights = NULL,
multiExpr.imputed = NULL,
MEs = NULL,
labels,
unassignedLabel = if (is.numeric(labels)) 0 else "grey",
networkOptions,
consensusTree,
minModuleSize,
minCoreKMESize = minModuleSize/3,
minCoreKME = 0.5,
minKMEtoStay = 0.2,
# Module eigengene calculation options
impute = TRUE,
collectGarbage = FALSE,
checkWeights = TRUE,
verbose = 1, indent=0)
Arguments
multiExpr |
Expression data in the multi-set format (see |
multiWeights |
optional observation weights in the same format (and dimensions) as |
multiExpr.imputed |
If |
MEs |
Optional consensus module eigengenes, in multi-set format analogous to that of |
labels |
A vector (numeric, character or a factor) giving module labels for each variable (gene) in multiExpr. |
unassignedLabel |
The label (value in |
networkOptions |
A single list of class |
consensusTree |
A list of class |
minModuleSize |
Minimum number of genes in a module. Modules that have fewer genes (after trimming) will be removed (i.e., their genes will be given the unassigned label). |
minCoreKME |
a number between 0 and 1. If a detected module does not have at least
|
minCoreKMESize |
see |
minKMEtoStay |
genes whose consensus eigengene connectivity to their module eigengene is lower than
|
impute |
logical: should imputation be used for module eigengene calculation? See
|
collectGarbage |
Logical: should garbage be collected after some of the memory-intensive steps? |
checkWeights |
Logical: should |
verbose |
integer level of verbosity. Zero means silent, higher values make the output progressively more and more verbose. |
indent |
indentation for diagnostic messages. Zero means no indentation, each unit adds two spaces. |
Value
The pruned module labels: a vector of the same form as the input labels
.
Author(s)
Peter Langfelder