Correlating WGCNA modules to Diseased/Not-Diseased Trait
1
0
Entering edit mode
5.2 years ago
RNAseqer ▴ 270

Hello all,

I have a dataset I am performing WGCNA analysis using the . The tutorial materials on Steve Hovarth's website are excellent but one question I have not found an answer to is this: When you have a trait that is not a continuous variable but rather a binary state such as diseased/not diseased and you are trying to correlate the modules to it, how should you encode the trait?

Should you assign a 0 and a 1 for non-diseased and diseased respectively? What about a 1 and a 2? Would both work equally well?

When so encoded how would the step where you correlate modules to traits work?

If you reversed this coding so that non-diseased was encoded as 2, and diseased was coded as 1 would you expect modules that negatively correlate to being diseased show up as a positive correlation?

Also, what if you had three conditions: Control, Traumatized, Diseased. Would encoding them as 1,2,3 make sense? Or would you want to limit your test to just those samples that were traumatized and diseased, if you were primarily interested in traum vs. diseased comparison.

I'd appreciate any advice you can offer!

WGCNA Modules Traits • 1.8k views
ADD COMMENT
2
Entering edit mode
5.2 years ago

Should you assign a 0 and a 1 for non-diseased and diseased respectively? What about a 1 and a 2? Would both work equally well?

Binary traits should contain only 1 and 0

what if you had three conditions: Control, Traumatized, Diseased. Would encoding them as 1,2,3 make sense?

if you have three conditions is: 1 vs All (0)

When so encoded how would the step where you correlate modules to traits work?

Look at the section 3.a of this tutorial; the object datTraits is the binary matrix

ADD COMMENT
0
Entering edit mode

For calculating the correlation p-value, the tutorial uses Student's t-test [corPvalueStudent()]. Should this be modified while using a categorical/binary variable?

ADD REPLY
1
Entering edit mode

Hi Arindam,

you can use the corPvalueStudent function

ADD REPLY

Login before adding your answer.

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