Adds trait information to multi-set module eigengene structure.
addTraitToMEs(multiME, multiTraits)
A multi-set structure analogous to the input: a vector of lists, one list per set. Each list will
contain a component data
with the merged eigengenes and traits for the corresponding set.
Module eigengenes in multi-set format. A vector of lists, one list per set. Each list
must contain an element named data
that is a data frame with module eigengenes.
Microarray sample trait(s) in multi-set format. A vector of lists, one list per
set. Each list
must contain an element named data
that is a data frame in which each column corresponds to a
trait, and each row to an individual sample.
Peter Langfelder
The function simply cbind
's the module eigengenes and traits for each set. The number of sets
and numbers of samples in each set must be consistent between multiMEs
and multiTraits
.
checkSets
, moduleEigengenes