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

ZeroDivisionError in kraken module #1346

Closed
davidealbanese opened this issue Nov 18, 2020 · 1 comment
Closed

ZeroDivisionError in kraken module #1346

davidealbanese opened this issue Nov 18, 2020 · 1 comment

Comments

@davidealbanese
Copy link
Contributor

davidealbanese commented Nov 18, 2020

Description of bug:
MultiQC returns a Python ZeroDivisionError on some kraken2 reports.

MultiQC Error log:

Module kraken raised an exception: Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/multiqc/multiqc.py", line 569, in run
    output = mod()
  File "/usr/lib/python3.8/site-packages/multiqc/modules/kraken/kraken.py", line 60, in __init__
    self.sum_sample_counts()
  File "/usr/lib/python3.8/site-packages/multiqc/modules/kraken/kraken.py", line 134, in sum_sample_counts
    self.kraken_sample_total_readcounts[s_name] = round(float(row['counts_rooted']) / (row['percent'] / 100.0))
ZeroDivisionError: float division by zero

File that triggers the error:
kraken_reports.tar.gz

MultiQC run details (please complete the following):

  • Command used to run MultiQC: multiqc .
  • MultiQC Version: 1.9
  • Operating System: NA (singularity shell docker://ewels/multiqc:1.9)
  • Python Version: NA
  • Method of MultiQC installation: NA

Additional context

@davidealbanese
Copy link
Contributor Author

Related to #1276.

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

1 participant