nanoporetech / pomoxis

Analysis components from Oxford Nanopore Research
Other
94 stars 23 forks source link

ZeroDivisionError: float division by zero #45

Closed shernadi closed 3 years ago

shernadi commented 3 years ago

Hi, I tried to use assess assembly and it worked for most of the time, but I am running into an error with one of our assembly. It seems to occur after the bed file based filtering. Could you please help what the problem could be?

The error what I am getting is the following:

File "/home/OXFORDNANOLABS/shernadi/anaconda3/envs/aa_2/lib/python3.6/site-packages/pomoxis/stats_from_bam.py", line 126, in masked_stats_from_aligned_read iden = 100 * float(match - sub) / match ZeroDivisionError: float division by zero

Thanks,

Szabolcs

ftostevin-ont commented 3 years ago

This should be fixed in the most recent version