Shamir-Lab / Recycler

This is the codebase for Recycler, described in our manuscript: https://academic.oup.com/bioinformatics/article/33/4/475/2623362, by Roye Rozov, Aya Brown Kav, David Bogumil, Naama Shterzer, Eran Halperin, Itzhak Mizrahi, and Ron Shamir
BSD 3-Clause "New" or "Revised" License
58 stars 7 forks source link

ZeroDivisionError: float division by zero #29

Closed peng-ye closed 6 years ago

peng-ye commented 6 years ago

Hello. Thanks for introducing such a wonderful tool. Recently I tried to apply Recycler in several isolate sequence data, yet some of them got this error. Any idea how I fix this? Traceback (most recent call last): File "Recycler/bin/recycle.py", line 131, in <module> paths = enum_high_mass_shortest_paths(COMP) File "recyclelib/utils.py", line 242, in enum_high_mass_shortest_paths G.add_edge(e[0], e[1], cost = 1./get_spades_base_mass(G, e[0])) ZeroDivisionError: float division by zero

dpellow commented 6 years ago

Thanks for your interest! What version of Recycler are you working with? Can you give us a minimal example which causes this error and we'll be able to look into it more.

dpellow commented 6 years ago

This issue should be fixed now. Thanks for the feedback!