Giter VIP home page Giter VIP logo

Comments (3)

glucksfall avatar glucksfall commented on June 17, 2024 1

Hi @fbeghini,

Thanks for your reply. I found another error:

Traceback (most recent call last):
  File "../plot_cladogram.py", line 340, in <module>
    clad_tree = read_data(params['input_file'],params)    
  File "../plot_cladogram.py", line 106, in read_data
    abundances = [float(v) for v in list(zip(*rows))[1] if v >= 0.0]
  File "../plot_cladogram.py", line 106, in <listcomp>
    abundances = [float(v) for v in list(zip(*rows))[1] if v >= 0.0]
TypeError: '>=' not supported between instances of 'str' and 'float'

I fixed it with abundances = [float(v) for v in list(zip(*rows))[1] if float(v) >= 0.0].

I forgot to say that I followed the bioconda-lefse_run.sh script in the example folder to run the tests. The link there also needs a fix.

I appreciate your time,
Best regards.

from lefse.

glucksfall avatar glucksfall commented on June 17, 2024

BTW, the full command was plot_cladogram.py hmp_aerobiosis_small.res hmp_aerobiosis_small.cladogram.png --format png

from lefse.

fbeghini avatar fbeghini commented on June 17, 2024

Hi Rodrigo, yes, thank you for spotting this, we have forgot to unlist the zip content when porting to Python 3.
This have been fixed in commit 4eb6faa

I also fixed the broken link in the LEfSE tutorial on bioBakery (hmp_small_aerobiosis.txt)

Best

from lefse.

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.