Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeWarning: invalid value encountered in sqrt #28

Open
Freemacl opened this issue May 2, 2018 · 5 comments
Open

RuntimeWarning: invalid value encountered in sqrt #28

Freemacl opened this issue May 2, 2018 · 5 comments

Comments

@Freemacl
Copy link

Freemacl commented May 2, 2018

This warning occurs for some of my files but not all.

~/anaconda3/lib/python3.6/site-packages/recycler-0.62-py3.6.egg/recyclelib/utils.py:178: RuntimeWarning: invalid value encountered in sqrt

after I issue the recycle.py command, It will run through several "# nodes remain in component" and eventually get stuck somewhere. I've tried letting it run for several hours, but it never progresses.

@dpellow
Copy link
Collaborator

dpellow commented Jun 3, 2018

Thanks for letting us know! What versions of Recycler and SPAdes are you working with?
If you can send us an example where this happens we'll be able to look into it in more detail.

@Rachael-16
Copy link

I have the same issue, it run through my first node then produces this error.

/home/rachael/anaconda2/lib/python2.7/site-packages/recyclelib/utils.py:178: RuntimeWarning: invalid value encountered in sqrt std = np.sqrt(np.dot(wgts,(covs-mean)**2)) (1092, ' nodes remain in component\n')

assembly graph was generated using Spades v3.13.1

Has a solution to this issue been identified?

@dpellow
Copy link
Collaborator

dpellow commented May 5, 2020

What version of Recycler are you using, have you pulled the most recent version?
Also, note that our newer tool, SCAPP, may produce better results than Recycler

@Rachael-16
Copy link

Hi I'm using Recycler v0.7, it was installed using conda.

I will try SCAPP, however I think it would nice to know what going wrong here.

@dpellow
Copy link
Collaborator

dpellow commented May 5, 2020

The error means that that line is trying to evaluate the square root of a negative number. The value should not be negative, I can't tell why it occurs without being able to reproduce the error.
Can you check if the error is reproduced when installing the latest version of the tool from source (ie not using conda)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants