Entering edit mode
3.2 years ago
Maryam
•
0
Hi,
I did wgcna analysis to do the project I used 336 samples for this analysis, but in the end, it gave me 3 modules, about 16,000 genes, 12,000 in one module, 379 in one module, and 212 in another. I think I only have 3 modules and it is very unusual with these descriptions.
Based on the output below, I selected Power 10.
1- Is there a way for me to increase the number of modules?
2- I drew the following error to draw one of the diagrams.
3- Do you think it may depend on the number of modules?
4- And how to fix this error ?
Thanks.
See Peter Langfelder answer regarding having very few modules with a large number of genes: link
These kind errors are usually triggered by a matrix not properly formatted. I would carefully check the structure of each matrix in
labeledHeatmap
Thank you very much for your help I will definitely apply your suggestion
also, I checked the link you sent before and applied its suggestions, but it did not work and my large module did not change and reduced the gray module and made a module. And the result was not good.
I'm sorry, I wasn't clear enough. The whole point is:
Of 16,000 genes, you have 12,000 genes in one single module. What does this mean? You have a very strong driver of variation causing 12,000 genes clustering all together in one signle module. Increasing or reducing the power is not going to fix the problem because this kind of behaviors are caused by intrinsic factors (either technical or biological) affecting your 336 samples.
From WGCNA faq:
Hi.
Thank you for your guidance.
In your opinion, to do this, it is necessary to apply a batch effect with a deseq2 ?
You should use deseq2 to normalize your expression data via variance-stabilization or rlog-expression, and then use
limma::removeBatchEffect()
or follow this tutorial to remove the batch effect.Sorry if I am wrong, but I have the feeling that you did not check for the presence of batch effects in your dataset. For example, use deseq2 to normalize the expression data and then run the PCA on the normalized expression data. Look at the PCA plot and check how your 336 samples separate along the PC1
thanks a lot Your guidance was very helpful