WGCNA: Matching eigengenes to samples
0
0
Entering edit mode
Jack • 0
@jack-18692
Last seen 5.9 years ago

When using WGCNA it would be useful to match eigengene values to the corresponding sample IDs, but I can't seem to find a way to do this. 

Taken from the tutorial (part I.2a.), blockwiseModules takes a data expression file (datExpr), with sample IDs:

net = blockwiseModules(datExpr, power = 6,
                     TOMType = "unsigned", minModuleSize = 30,
                     reassignThreshold = 0, mergeCutHeight = 0.25,
                     numericLabels = TRUE, pamRespectsDendro = FALSE,
                     saveTOMs = TRUE,
                     saveTOMFileBase = "femaleMouseTOM",

verbose = 3)

Within net, you then have the dataframe MEs, which contains the modules in the columns and has a number of rows equal to the number of samples imported, but they are unlabelled. I suspect these represent the samples in the order they were imported, but I am not sure. Does anyone know if this is the case, or if it is possible to generate a table containing the eigengene values and sample names?

Hope someone can help!

Jack

 

 

wgcna wgcna package • 2.1k views
ADD COMMENT
0
Entering edit mode

Yes, you are right. The MEs data frame contains module (columns) Eigen values for each sample (rows). Just label row names of MEs with the sample names of your input expression data matrix.

ADD REPLY

Login before adding your answer.

Traffic: 848 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6