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!
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
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
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!
Log in to answer this question.