Code Monkey home page Code Monkey logo

Comments (7)

nargesr avatar nargesr commented on July 26, 2024

Hi,

it looks like you do have negative values, right?

also, preprocess() will run goodSamplesGenes(), why did you run it before you pass your matrix?

from pywgcna.

FeedFall8 avatar FeedFall8 commented on July 26, 2024

Hello, thank you for responding.

The goodSamplesGenes() was a oversight from an earlier test and has been removed.
What do you advise for the script? Is the negative values the cause?

from pywgcna.

nargesr avatar nargesr commented on July 26, 2024

it might be but I'm not sure ...
can you send me a subset of your data that will give you the same error?
you can change the row and column names of your data with something else if your data is not publicly available

from pywgcna.

FeedFall8 avatar FeedFall8 commented on July 26, 2024

data_heart_left_ventricle_sample.csv

Here is a subset of the dataset I am using, it is from https://gtexportal.org/home/datasets

from pywgcna.

nargesr avatar nargesr commented on July 26, 2024

I was able to run PyWGCNA on the dataset you provided!
I would suggest check the version of all your all the other packages which I listed mine here
also the python version I have is 3.10.4

I also put my script bellow just in case

import PyWGCNA
import pandas as pd

tpm = pd.read_csv('data_heart_left_ventricle_sample.csv', index_col=0)

test = PyWGCNA.WGCNA(name='GTEX-111FC',
                     species='Humans',
                     geneExp=tpm,
                     TOMType='unsigned',
                     powers=[10],
                     networkType="unsigned",
                     save=True)

test.preprocess()

test.findModules()

from pywgcna.

FeedFall8 avatar FeedFall8 commented on July 26, 2024

Thank you!
I reinstalled my packages with the same versions as the PyWGCNA requirements and everything runs as intended!
Before this issue is closed, are there any plans to add support for Cytoscape networks in future versions of PyWGCNA?
https://manual.cytoscape.org/en/stable/Supported_Network_File_Formats.html

from pywgcna.

nargesr avatar nargesr commented on July 26, 2024

great!

Sorry but for now, I don't have a plan to add support for Cytoscape networks:)
but if you want to give it a shot, you're welcome to do and I will be happy to help you integrate that with PyWGCNA

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.