Giter Site home page Giter Site logo

Comments (7)

francois-a avatar francois-a commented on July 22, 2024

Hi,
TensorQTL uses the qvalue package from R to estimate FDR. For this to be run, R needs to be installed with this package, together with rpy2 for Python. This is then called here, and adds the qval column to the dataframe.

from tensorqtl.

Juyeol-Jung avatar Juyeol-Jung commented on July 22, 2024

Thank you for your kindness reply.

Because of other work, I check your reply now and I try running tensorQTL.

from tensorqtl.

abiddanda54gene avatar abiddanda54gene commented on July 22, 2024

Hello @francois-a, I am running into a similar issue where I need the qval column for --mode cis_independent. I am not able to find rfunc for python and am unsure of how to get it. Could you please advise?

from tensorqtl.

francois-a avatar francois-a commented on July 22, 2024

rfunc is part of tensorQTL, and contains a wrapper for qvalue. You'll need R and rpy2, as described above.

from tensorqtl.

jonathonl avatar jonathonl commented on July 22, 2024

I'm having the same issue as @abiddanda54gene. Both R and rpy2 are installed, but rfunc is failing to import.

$ python3 -c "import subprocess; print(subprocess.call('which R', shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)); import rpy2; import tensorqtl"
0
Warning: 'rfunc' cannot be imported. R and the 'rpy2' Python package are needed.

from tensorqtl.

jonathonl avatar jonathonl commented on July 22, 2024

The issue is that Iterable as been removed from collections in python v3.10 (see https://stackoverflow.com/questions/72032032/importerror-cannot-import-name-iterable-from-collections-in-python). Modifying line 5 of rfunc.py to be from collections.abc import Iterable fixes the import error.

from tensorqtl.

francois-a avatar francois-a commented on July 22, 2024

Hi, thanks for pointing this out. Fixed in eb72058.

from tensorqtl.

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.