Code Monkey home page Code Monkey logo

Comments (7)

nargesr avatar nargesr commented on July 26, 2024

Hi,

Could you give me more information about how you got this error?
for example which version of PyWGCNA did you run?
did you change any default parameters? if yes, which one?
What was your input?

from pywgcna.

marie-minaeva avatar marie-minaeva commented on July 26, 2024

Hey,

I encountered the same error. My PyWGCNA version is 1.16.8. Could it be due to the only 1 identified module in the network?
As input, I had the preprocessed sc expression as a pd.DataFrame with genes as columns and cells as rows
Code I run:

exp_mat = pd.read_csv(dataset_path, index_col=0, header=0)
network = PyWGCNA.WGCNA(name='coexpression', geneExp=exp_mat)
network.findModules()
image And the Error I get:
Traceback (most recent call last):
  File "~/.local/lib/python3.10/site-packages/PyWGCNA/wgcna.py", line 337, in findModules
    self.MEs = merge['newMEs']
UnboundLocalError: local variable 'merge' referenced before assignment

from pywgcna.

nargesr avatar nargesr commented on July 26, 2024

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.

from pywgcna.

marie-minaeva avatar marie-minaeva commented on July 26, 2024

Hey!
I tried with the latest version and got the same error. Here is the pickle object:
coexpression.p.tar.gz

from pywgcna.

nargesr avatar nargesr commented on July 26, 2024

Hi @marie-minaeva

I wasn't able to read your pickle file. please make sure that you can read it through PyWGCNA.readWGCNA() and resend it again

from pywgcna.

marie-minaeva avatar marie-minaeva commented on July 26, 2024

Hi @nargesr,
Here is the new object. I additionally gzipped since GitHub doesn't allow sending .p files. Thanks!
coexpression.p.gz

from pywgcna.

nargesr avatar nargesr commented on July 26, 2024

Hi,

This is because you ended up with having only one modules.
I'll add warning at the end to avoid this error in future and give you warning instead of that

from pywgcna.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.