Search
Question: WGCNA: Exporting MEs with Subject/Sample Identification
0
gravatar for Tox_scientist20
4 months ago by
Tox_scientist200 wrote:

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.

 

 

ADD COMMENTlink modified 4 months ago • written 4 months ago by Tox_scientist200
0
gravatar for Peter Langfelder
4 months ago by
United States
Peter Langfelder1.3k wrote:

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 COMMENTlink written 4 months ago by Peter Langfelder1.3k
0
gravatar for Tox_scientist20
4 months ago by
Tox_scientist200 wrote:

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

ADD COMMENTlink written 4 months ago by Tox_scientist200
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 335 users visited in the last hour