Kaiju: division by zero
kayobianco opened this issue ยท comments
kayobianco commented
Description of bug
Hi all,
I have the following problem.
(base) kayobianco@arqueas:~$ multiqc -m kaiju --outdir /home/kayobianco/Documentos/MiSeq_Arqueas_RBD/kaiju --filename kiaju_teste /home/kayobianco/Documentos/MiSeq_Arqueas_RBD/kaiju
/// MultiQC ๐ | v1.17
| multiqc | Only using modules: kaiju
| multiqc | Search path : /home/kayobianco/Documentos/MiSeq_Arqueas_RBD/kaiju
| searching | โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 100% 184/184
| kaiju | Found 46 reports
โญโโโโโโโโโโโโโโโโโ Oops! The 'kaiju' MultiQC module broke... โโโโโโโโโโโโโโโโโโโฎ
โ Please copy this log and report it at โ
โ https://github.com/ewels/MultiQC/issues โ
โ Please attach a file that triggers the error. The last file found was: โ
โ /home/kayobianco/Documentos/MiSeq_Arqueas_RBD/kaiju/13_S13_L001_R1_001_kaiju โ
โ .out.tsv โ
โ โ
โ Traceback (most recent call last): โ
โ File "/home/kayobianco/miniconda3/lib/python3.8/site-packages/multiqc/mult โ
โ output = mod() โ
โ File "/home/kayobianco/miniconda3/lib/python3.8/site-packages/multiqc/modu โ
โ self.kaiju_stats_table() โ
โ File "/home/kayobianco/miniconda3/lib/python3.8/site-packages/multiqc/modu โ
โ self.kaiju_sample_unclassified[s_name] * 100 / self.kaiju_sample_total_r โ
โ ZeroDivisionError: division by zero โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
| multiqc | No analysis results found. Cleaning up..
| multiqc | MultiQC complete
File that triggers the error
MultiQC Error log
No response
Before submitting
- I have read the troubleshooting documentation.
- I am using the latest release of MultiQC.
- I have included a full MultiQC log, not truncated.
- I have attached an input file (.zip if necessary) that triggers the error.
Vlad Savelyev commented
Thank you @kayobianco for creating the issue,
I added a workaround for this in #2179
Note that your data doesn't seem to reproduce the error for me. The read numbers sum up to a non-zero count, and the module works fine without a division by zero error. So I added a made-up example into MultiQC_TestData: https://github.com/ewels/MultiQC_TestData/pull/303/files, but if you have a real example that triggers the error handy, please add it! Unless I'm misunderstanding something.