Hello everyone, I'm new to WGCNA analysis... I'm trying to carry out one by using WGCNA Bioconductor Package. Being a newbie, I'm sticking to the official tutorial. In the Section 4 of the Tutorial it's explained how to create a heatmap correlating the previously obtained modules with sample quantitative traits (such as, for instance, phenotypical, measurable traits), as shown below:
However, I'd need a heatmap showing the correlations between the previously obtained modules and sample conditions instead. This will significantly help me to pick the most significant modules and further analyze them in Cytoscape, highlighting how they correlate with my experimental conditions immediately (for instance, the red module has a positive correlation with samples injected with the pathogen, the purple one with samples collected from root... and so on). The heatmap would look similar to this one (however, here the correlation is between modules and samples, not between modules and samples clustered by condition...from this other tutorial.
Any suggestions about how to create this kind of heatmap?
Thanks in advance for your help, have a nice day.