deepsignal2 icon indicating copy to clipboard operation
deepsignal2 copied to clipboard

FloatingPointError: underflow encountered in exp

Open Fatihlrcfs opened this issue 2 years ago • 8 comments

Hi, I am getting this error when ı type "tombo resquiggle singlefast5/ wholegenome.fasta --processes 10 --corrected-group RawGenomeCorrected_000 --basecall-group Basecall_1D_000 --overwrite" ı search on internet but couldnt get solution is there anyone who has the solution. thanks

Fatihlrcfs avatar Aug 19 '22 15:08 Fatihlrcfs

I got a similar error

 File "/opt/conda/lib/python3.9/site-packages/scipy/stats/_continuous_distns.py", line 3820, in _pdf
    return np.sqrt(2.0/np.pi)*np.exp(-x*x/2.0)
FloatingPointError: underflow encountered in exp

This was solved by downgrading scipy to v1.7.3 for me.

rowanhowellGE avatar Aug 22 '22 13:08 rowanhowellGE

hi @rowanhowellGE , sorry for my silly question I did not downgrade my scipy. I tried conda remove/ uninstall and remove scipy package and reinstall again also. Could you say me how did you do it? thansks

Fatihlrcfs avatar Aug 22 '22 15:08 Fatihlrcfs

conda install scipy=1.7.3 should specifically install v1.7.3

rowanhowellGE avatar Aug 22 '22 15:08 rowanhowellGE

Hi @rowanhowellGE ,

I tried but when ı checked the version with "conda list| grep "numpy|scipy" " it shows the version as numpy 1.23.2 and scipy 1.9.0 it was not downgraded?

Fatihlrcfs avatar Aug 22 '22 15:08 Fatihlrcfs

Try removing scipy then try conda install scipy=1.7.3 again?

rowanhowellGE avatar Aug 22 '22 15:08 rowanhowellGE

Hi @rowanhowellGE , I tried removing with conda remove scipy but it says there is no package as scipy. I am confused ..

Fatihlrcfs avatar Aug 22 '22 16:08 Fatihlrcfs

Hmm I think this seems like an issue with conda, rather than deepsignal/tombo.

rowanhowellGE avatar Aug 22 '22 16:08 rowanhowellGE

Hi @rowanhowellGE , yes, it might be ı am going to remove my environment and rebuilt it again. thanks for your time. have a great day.:)

Fatihlrcfs avatar Aug 22 '22 16:08 Fatihlrcfs