How to prepare trait data file of categorical trait with more than two levels for WGCNA?
1
0
Entering edit mode
5.5 years ago
Reza ▴ 10

Hi everyone,

I want to do WGCNA and estimate the correlation of modules with clinical traits. The clinical information includes nominal variable with more than two levels (not binary). How I can design and create clinicaltrait.txt file? I have attached a screenshot of the trait file, please have a look on it.

Thanks

https://ibb.co/61S6TZ7

enter image description here

RNA-Seq R WGCNA • 2.9k views
ADD COMMENT
1
Entering edit mode
5.5 years ago

Well, you clearly already have the file if you are showing a screenshot of it. So, what is the problem in reading that file into R and using it in WGCNA?

There is an example, here: http://systemsbio.ucsd.edu/WGCNAdemo/

I posted a previous related answer, too: A: WGCNA modules and categorical traits relationship (and there are many other threads / questions out there)

Also, take a look at this: A: WGCNA: Relating Eigenmodules to Clinical Traits Returns Matrix of NAs

Kevin

ADD COMMENT
0
Entering edit mode

Dear Kevin, I encountered a similar trouble. I hope you can have a look at my post at: How to convert the ordinal categorical trait in the WGCNA?

Thank you so much!

ADD REPLY

Login before adding your answer.

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