mergeCloseModules(
# input data
exprData, colors, # Optional starting eigengenes
MEs = NULL,
# Optional restriction to a subset of all sets
useSets = NULL,
# If missing data are present, impute them?
impute = TRUE,
# Input handling options
checkDataFormat = TRUE,
unassdColor = ifelse(is.numeric(colors), 0, "grey"),
# Options for eigengene network construction
corFnc = cor, corOptions = list(use = 'p'),
useAbs = FALSE,
# Options for constructing the consensus
equalizeQuantiles = FALSE,
quantileSummary = "mean",
consensusQuantile = 0,
# Merging options
cutHeight = 0.2,
iterate = TRUE,
# Output options
relabel = FALSE,
colorSeq = NULL,
getNewMEs = TRUE,
getNewUnassdME = TRUE,
# Options controlling behaviour of the function
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
exprData
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 x
which is used to pass the actual data to calculate the correlation of.FALSE
for reproducibility of old code, but better results
will probably be achieved if quantile equalizatio is used."mean"
or "median"
. Controls how a reference dissimilarity
is computed from the input ones (using mean or median, respectively).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 returnedTRUE
, 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.