This function calculates the proportion of variance of genes in each module explained by the respective module eigengene.
propVarExplained(datExpr, colors, MEs, corFnc = "cor", corOptions = "use = 'p'")
A vector with one entry per eigengene containing the proportion of variance of the module explained by the eigengene.
expression data. A data frame in which columns are genes and rows ar samples. NAs are allowed and will be ignored.
a vector giving module assignment for genes given in datExpr
. Unique values
should correspond to the names of the eigengenes in MEs
.
a data frame of module eigengenes in which each column is an eigengene and each row corresponds to a sample.
character string containing the name of the function to calculate correlation. Suggested
functions include "cor"
and "bicor"
.
further argument to the correlation function.
Peter Langfelder
For compatibility with other functions, entries in color
are matched to a substring of
names(MEs)
starting at position 3. For example, the entry "turquoise"
in colors
will
be matched to the eigengene named "MEturquoise"
. The first two characters of the eigengene name
are ignored and can be arbitrary.
moduleEigengenes