Recycler icon indicating copy to clipboard operation
Recycler copied to clipboard

RuntimeWarning: invalid value encountered in sqrt

Open Freemacl opened this issue 6 years ago • 5 comments

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.

Freemacl avatar May 02 '18 18:05 Freemacl

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.

dpellow avatar Jun 03 '18 13:06 dpellow

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?

Rachael-16 avatar May 04 '20 21:05 Rachael-16

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

dpellow avatar May 05 '20 09:05 dpellow

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.

Rachael-16 avatar May 05 '20 13:05 Rachael-16

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)?

dpellow avatar May 05 '20 17:05 dpellow