WGCNA categorical trait with more than 2 levels.
2
2
Entering edit mode
5.9 years ago

Hi there!

Is it possible to use categorical traits (such as ethnicity) in WGCNA analysis? If so, shall we encode them with 0s and 1s? what if the trait is not binary and has several levels? Perhaps use 1, 2, 3,4?

Thank you in advance

wgcna categorical trait • 3.8k views
ADD COMMENT
4
Entering edit mode
5.5 years ago

You can use categorical variables, if it is binary, then you can expressed it as 0 and 1. If it has more levels then you can separate each level as an individual binary variable.

This link may help

ADD COMMENT
1
Entering edit mode

Thank you for your excellent link.

ADD REPLY
1
Entering edit mode
5.9 years ago
Renesh ★ 2.2k

WGCNA works on correlation measure. You can not use categorical variables in WGCNA analysis. You need to have quantitative variables (samples) with a number of samples at least 15 for reliable results.

ADD COMMENT
0
Entering edit mode

Thank you @Renesh for your response.

ADD REPLY

Login before adding your answer.

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