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
209 stars 48 forks source link

Visualization error #104

Closed gerapskx closed 3 months ago

gerapskx commented 3 months ago

Hi,

I have some problems with the figures. Every time i try to generate a plot, the numbers (e.g., p-values) are not complete. This occurs not only with this module-trait heatmap, also whith the heatmap of two-objects comparison. Do you have any idea of why this is occurring?

This is an example; Screenshot 2024-06-16 185946

nargesr commented 3 months ago

Hi @gerapskx

Which version of pyWGCNA are you using? Does this also happen with a provided example? Also if you saved the plot, would you be able to see the complete plot?

gerapskx commented 3 months ago

Hi @gerapskx

Which version of pyWGCNA are you using? Does this also happen with a provided example? Also if you saved the plot, would you be able to see the complete plot?

I am using 2.0.4, Actually it started to happen recently, (possible three-two weeks ago) If i save the plot, still shows like my example

nargesr commented 3 months ago

hmm... Do you mean it worked before and suddenly without any changes such as updating packages, you encountered this?

gerapskx commented 3 months ago

hmm... Do you mean it worked before and suddenly without any changes such as updating packages, you encountered this?

Yes. I uninstalled and reinstalled, still same

nargesr commented 3 months ago

I'm not sure if that's something related to PyWGCNA and unfortunately, I'm unable to reproduce your error.

one thing to check is to plot it separately with values stored at AS_OE.moduleTraitCor and AS_OE.moduleTraitPvalue using sns.heatmap().

It might be something related to your Seaborn package or its dependencies. I found this issue maybe you had the same thing??

gerapskx commented 3 months ago

I'm not sure if that's something related to PyWGCNA and unfortunately, I'm unable to reproduce your error.

one thing to check is to plot it separately with values stored at AS_OE.moduleTraitCor and AS_OE.moduleTraitPvalue using sns.heatmap().

It might be something related to your Seaborn package or its dependencies. I found this issue maybe you had the same thing??

I just did the same but for the seaborn package, now it is working. Thank you so much!