Hi all
I apologise for what may be a very stupid question, but I am currently trying to interpret my WGCNA results, and I could not find anything online about what the following means.
I am interested in this module turquoise (Module-trait relationship table). There is a fairly weak correlation between this module and traits "3" and "6". However, when I plot gene significance (the degree of association between genes in the turquoise module with traits 3 and 6) vs module membership (the degree each gene is associated with these modules), I get very dissimilar degrees of association.
For example, for trait 3, there really is nothing there (as expected, based on the trait-relationship association described on the table). However, for trait 6, there is a strong correlation between GS and MM - but why is this not reflected on the trait/module correlation calculated in the trait-module relationship table (link above)? Is WGCNA correcting for something else when the table is calculated?
I hope this makes sense!
Thanks!
For trait 6 I do not see anything wrong.
None of the hub genes (genes with the highest module membership) in the turquoise module show a strong correlation with the trait 6. Also, the majority of the genes in the turquoise module show a correlation (pearson) < 0.1 with that trait:
This explain why the Module eigengene (1st Principal component) of the turquoise module poorly correlate with the trait 6 (Module-trait relationship table).
Perhaps, I would plot the heatmap of each module to see if the gene expression in your modules is in agreement with your experiment design. I suppose that the gene in the turquoise module are co-expressed only in few samples
To plot the heatmaps, try this:
Dear Andres,
I have a similar question also regarding the difference between Module-trait correlation and GS - MM correlation. I strugle understanding what exactly these numbers represent and why are they so different.
In example, in my yellow module, for my trait DG_brain_region I have module-trait correlation == - 0.8 (pval = 3e-05) but when I plot GS vs MM for this trait in module yellow I get cor=0.51, p = 2e-37.
This module is highly correlated with another brain region CA3 - according to module-trait heatmap correlation is 0.69, pval = 9e-04. When I plot GS va MM, I get cor=0.34, p = 3.3e-16.
So frrm the scatterplots it looks like yellow module is actually more corelated with DG and not with CA3 while the heatmap shows the opposite. Or do I misunderstand the plots?
Could you please explain why these values are so different?
Hi Anna,
Are you working with a signed or unsigned network? Can you show the heatmap of the yellow module?
Hello, sorry for my late response. this is the heatmap:
https://drive.google.com/file/d/165fizcsWcA2uzRPVV2cKNPOcqM1d2WfG/view?usp=sharing
I also have another very similar question, I posted it here: Calculation of module membership in WGCNA
Hi Anna,
thank you for posting the heatmap of the yellow module.
By looking at the yellow modules, I can see you are working with an unsigned network, which is the default analysis in all WGCNA tutorials. When it comes to module-trait correlations and GS-MM correlation plots, would be much easier to interpret the results if you build a signed network instead.
Try it and let me know
Hi Andres,
Thank you very much for this suggestion. I was confused a bit with that, I will try signed. or hybrid-signed? What the difference is?
edit: I found this article about the network types, by P. Langfelder https://peterlangfelder.com/2018/11/25/signed-or-unsigned-which-network-type-is-preferable/
Hi again,
I used a signed network but I think, at first glance, the modules are quite similar. My trait-data are binary so I wonder if in this case the unsigned network could still be ok?
I mean, there are modules of the same color in both analysis correlated to similar traits, in example the blue module and brown module, they seem the same in both heatmaps. Please see the module-trait heatmaps linked below:
https://drive.google.com/drive/folders/1hd2NEraQFTlqBPTIaRxNxTsCi8GxZTf6?usp=sharing
Hi,
how did you build the signed network? The type of network you are trying to build must be specified in the following functions:
It doesn't matter if the traits are binary or continuous. Finally, without looking at the data is very difficult to understand what is going on with your modules. Would you mind to share the datExpr (normalized expression matrix? You can change the gene name into gene1, gene2 ect ect
Hi,
Please find the datExpr here: https://drive.google.com/file/d/1yBTnl1wqhpdbTejsmApXgVXEhPh1DcHW/view?usp=sharing
I used the code from the tutorial, blockwiseModules function:
Should I use the other way instead?
Also, when I checked soft Thresholds for "signed" network, it is now different than the default, the power 12 or 14 seems to be adequate...
Here we go:
Prepare the data
Calculation of network adjacencies and Topological Overlap Matrix (TOM)
Clustering and module identification
Merge modules sharing similar expression profiles
Plot an heatmap for each module (mergedColors)
If you check the pdf file with the heatmaps of each module you will definitely see that almost every module is strongly associated with your experimental traits. Here is some example:
Go ahead with the module-trait relationship analysis and remember that the final modules and the module eigengenes are in
mergedColors
andmergedMEs
, respectivelyThank you very much! This is a very kind of you and very helpful, thank you!
Thank you for the datExpr
This is ok. The soft Thresholds for signed networks almost double.