MultiQC / MultiQC

Aggregate results from bioinformatics analyses across many samples into a single report.

Home Page:http://multiqc.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kaiju: division by zero

kayobianco opened this issue ยท comments

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

kaiju_teste.zip

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.

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.