Code Monkey home page Code Monkey logo

Comments (4)

ctokheim avatar ctokheim commented on June 12, 2024 2

This is actually a bug in rpy2 itself (see conda-forge/rpy2-feedstock#28). Apparently, rpy2 2.9.x does not work with numpy 1.17.

Here are some version numbers that worked in a clean install environment:
scipy-0.19.1
pandas-0.25.2
python-3.6.9
matplotlib-3.1.1
numpy-1.15.4
pysam-0.15.3

from 2020plus.

ctokheim avatar ctokheim commented on June 12, 2024

I was unaware of this problem as continuous integration (CI) hasn't yet indicated this error. My CI testing suggests rpy2 version 2.9.4 should be fine. My guess is that api changes from rpy2 version 2 to version 3 broke the code.

from 2020plus.

Jonathanyu2014 avatar Jonathanyu2014 commented on June 12, 2024

Thanks for reply. I install rpy2 v2.9.4, however, there still was something wrong. I used 2020plus v1.2.3. The command line is "python 2020plus.py --out-dir=result_compare classify -f test.features.txt" . The error is as follows:

Running Random forest . . .


AN ERROR HAS OCCURRED: check the log file


Type: <class 'ValueError'>
Exception: Buffer for this type not yet supported.
Traceback:
File "2020plus.py", line 275, in
args.func() # run function corresponding to user's command
File "2020plus.py", line 37, in _classify
src.classify.python.classifier.main(opts) # run code
....
....

The python modules I used were :
numpy==1.17.2
pandas==0.25.2
scipy==1.3.1
scikit-learn==0.19.2
matplotlib==3.1.1
PyYAML==5.1.2
pysam==0.15.3
rpy2==2.9.4
tzlocal==2.0.0
probabilistic2020==1.2.3
snakemake==5.7.4

from 2020plus.

Jonathanyu2014 avatar Jonathanyu2014 commented on June 12, 2024

Many thanks! Finally it worked for me. I reinstalled scipy-0.19.1 and numpy-1.15.4.

from 2020plus.

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.