WGCNA: Exporting MEs with Subject/Sample Identification
1
0
Entering edit mode
@tox_scientist20-13424
Last seen 6.7 years ago

I am trying to export module eigengene values, calculated using 'Tutorial I.2a. Automatic network construction and module detection'.

I can extract the MEs using:

MEs = net$MEs

Which contains the information I need - MEs per subject (sample). However, the sample identification is lost, and replaced with numbered values. How can I tie these results back to the original sample information? Are these simply listed in the same order as the originally imported samples?

 

Thank you.

 

 

WGCNA • 1.3k views
ADD COMMENT
0
Entering edit mode
@peter-langfelder-4469
Last seen 1 day ago
United States

The simplest way to do it, assuming your expression data carry valid rownames:

rownames(MEs) = rownames(datExpr)

(replace datExpr with the object that carries our expression data).

More generally, you can add a column to MEs that has sample ID, or multiple columns that have all the information you need, from the datTraits data frame (calculated in Section 1 of the tutorial).

HTH,

Peter

ADD COMMENT
0
Entering edit mode

Thank you for the quick response, Peter. This worked perfectly. Much appreciated!

ADD REPLY

Login before adding your answer.

Traffic: 685 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