-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
local variable 'merge' referenced before assignment #43
Comments
Hi, Could you give me more information about how you got this error? |
Hi, The latest version is 1.2.4. Please install that one. Also, check the exact version of all the other dependencies here. If you got the same error please send me your pickle object. |
Hey! |
I wasn't able to read your pickle file. please make sure that you can read it through |
Hi @nargesr, |
Hi, This is because you ended up with having only one modules. |
when running pyWGCNA_5xFAD.runWGCNA()
`---------------------------------------------------------------------------
UnboundLocalError Traceback (most recent call last)
Cell In [8], line 1
----> 1 pyWGCNA_5xFAD.runWGCNA()
File /opt/software/python/lib/python3.8/site-packages/PyWGCNA/wgcna.py:353, in WGCNA.runWGCNA(self)
348 """
349 Preprocess and find modules
350 """
351 WGCNA.preprocess(self)
--> 353 WGCNA.findModules(self)
355 return self
File /opt/software/python/lib/python3.8/site-packages/PyWGCNA/wgcna.py:337, in WGCNA.findModules(self, **kwargs)
334 self.datExpr.var['moduleLabels'] = [colorOrder.index(x) if x in colorOrder else None for x in
335 self.datExpr.var['moduleColors']]
336 # Eigengenes of the new merged modules:
--> 337 self.MEs = merge['newMEs']
339 # Recalculate MEs with color labels
340 self.datME = WGCNA.moduleEigengenes(self.datExpr.to_df(), self.datExpr.var['moduleColors'])['eigengenes']
UnboundLocalError: local variable 'merge' referenced before assignment`
The text was updated successfully, but these errors were encountered: