mortazavilab / PyWGCNA

PyWGCNA is a Python package designed to do Weighted Gene Correlation Network analysis (WGCNA)
https://academic.oup.com/bioinformatics/advance-article/doi/10.1093/bioinformatics/btad415/7218311
MIT License
192 stars 46 forks source link

How to add color for metadata consisting of continuous variables and plot the module-trait relationship? #68

Closed scuhkf closed 8 months ago

scuhkf commented 8 months ago

First,thank you for the author's excellent work. My sample metadata consists of continuous variables, instead of categorical variables as used in the tutorial. I would like to know how to visualize a module-trait relationship heatmap? I have updated sample information like this: image Then, I don't know how to add color for continuous variables and directly run object.analyseWGCNA().The row labels of the output image are displayed as numbers from the dataframe instead of column names. image I would appreciate it if you could point out where my mistake is. Thank you very much!

nargesr commented 8 months ago

Hi, Thanks for your kind comment:)

you should be able to find your answer by looking at issue #55 :)

Please don't hesitate to reopen this issue if you still have further questions.