PyWGCNA icon indicating copy to clipboard operation
PyWGCNA copied to clipboard

Error appearance in PyWGCNA (version 1.2.4) in Google colaboratory

Open YoshifumiMiyagi opened this issue 1 year ago • 4 comments

I ran PyWGCNA under Google colaboratory environment.

① pyWGCNA_CC.findModules() →UnboundLocalError: local variable 'merge' referenced before assignment

② pyWGCNA_CC.analyseWGCNA() →ValueError: 'box_aspect' and 'fig_aspect' must be positive

Details are below. PyWGCNA problem

We welcome your valuable input. Thank you in advance.

YoshifumiMiyagi avatar Jun 20 '23 03:06 YoshifumiMiyagi

Hi, as you see in your pip installation, there is an Error regarding your numpy version.

Please try to install numpy below 1.25. The one that I have is numpy==1.24.3.

nargesr avatar Jun 21 '23 18:06 nargesr

Thank you for your input. The dependency issue arose and I was able to install the library with PyWGCNA 1.2.3 -> numpy update (1.24.3)-> PyWGCNA 1.2.4.

PyWGCNA problem 2

However, the error message remains in the analysis. I will consider trying in the Local environment, but I think it would improve the usability if I could analyze it in Google colab as well.

YoshifumiMiyagi avatar Jun 21 '23 21:06 YoshifumiMiyagi

I'm going to run it on Google Collab and will update you

nargesr avatar Jun 21 '23 22:06 nargesr

I used python==3.11,numpy==1.24.3,PyWGCNA==1.2.4 on my windows10 computer, and I also have this problem. Hopefully the author will fix it.

li1553770945 avatar Jul 14 '23 22:07 li1553770945