mergeCloseModules(exprData, colors,
consensusQuantile = 0,
cutHeight = 0.2,
MEs = NULL,
impute = TRUE,
useAbs = FALSE,
corFnc = cor, corOptions = list(use = 'p'),
iterate = TRUE,
relabel = FALSE,
colorSeq = NULL,
getNewMEs = TRUE,
getNewUnassdME = TRUE,
useSets = NULL,
checkDataFormat = TRUE,
unassdColor = ifelse(is.numeric(colors), 0, "grey"),
trapErrors = FALSE,
verbose = 1, indent = 0)checkSets). See
checkDataStructure below.MEs should have the same format as exprData.
If they are not given, they will be calculated.NA entries will cause the eigengene calculation to fail and eigengenes will be
replaced by their hubgene approximation. See x which is used to pass the actual data to calculate the correlation of.colors are not numeric, and to integers starting from 1 if
colors is numeric.TRUE will force the calculation of the unassigned eigengene in the returnedexprData and MEs for correct
multi-set structure. If single set data is given, it will be converted into a format usable for the
function. If FALSE, incorrect structure of input data will trigger TRUE, errors will be trapped and the
function will return the input colors. If FALSE, errors wilcolors: if the input colors is numeric, character and
factor, respectively, so is the output. Note, however, that if the fnction performs relabeling, a
standard sequence of labels will be used: integers starting at 1 if the input colors is
numeric, and a sequence of color labels otherwise (see colorSeq above).iterate was set TRUE, this will be the dendrogram of the merged
modules, otherwise it will be the dendrogram of the original modules.useSets.useSets.TRUE.trapErrors==TRUE, the list only contains these components:FALSE.cutHeight and modules on each branch are merged.
The process is (optionally) repeated until no more modules are merged.If, for a particular module, the module eigengene calculation fails, a hubgene approximation will be used.
The user should be aware that if a computational error occurs and trapErrors==TRUE,
the returned list (see below) will not contain all of the components returned upon normal execution.