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

Division by 0 error with the malt module #1683

Closed
aidaanva opened this issue May 12, 2022 · 0 comments · Fixed by #1738
Closed

Division by 0 error with the malt module #1683

aidaanva opened this issue May 12, 2022 · 0 comments · Fixed by #1738
Labels
bug: module Bug in a MultiQC module

Comments

@aidaanva
Copy link
Contributor

Description of bug

When running multiQC within the nf-core/eager pipeline, the malt module crashes because one of the samples that I am analysing has 0 reads (ZWI001.A0101.MT1).

File that triggers the error

malt.log

MultiQC Error log

MultiQC 🔍 | v1.11

|           multiqc | MultiQC Version v1.12 now available!
|           multiqc | Only using modules: adapterRemoval, bowtie2, custom_content, damageprofiler, dedup, fastp, fastqc, gatk, kraken, malt, mtnucratio, multivcfanalyzer, picard, preseq, qualimap, samtools, sexdeterrmine, hops, bcftools
|           multiqc | Search path : /out/work/5c/a5b3dca9f4b85354e0b9529b211141/multiqc_config.yaml
|           multiqc | Search path : /out/work/5c/a5b3dca9f4b85354e0b9529b211141
|         searching | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 1006/1006  
╭────────────────── Oops! The 'malt' 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:       │
│ ./malt/malt.log                                                              │
│                                                                              │
│ Traceback (most recent call last):                                           │
│   File "/opt/conda/envs/nf-core-eager-2.4.2/lib/python3.9/site-packages/mult │
│     output = mod()                                                           │
│   File "/opt/conda/envs/nf-core-eager-2.4.2/lib/python3.9/site-packages/mult │
│     self.parse_logs(f)                                                       │
│   File "/opt/conda/envs/nf-core-eager-2.4.2/lib/python3.9/site-packages/mult │
│     float(self.malt_data[s_name]["Assig. Taxonomy"])                         │
│ ZeroDivisionError: float division by zero                                    │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
|              hops | Found 58 samples
|          samtools | Found 62 flagstat reports
|          samtools | Found 62 flagstat reports
|    custom_content | software_versions: Found 1 sample (html)
|    custom_content | nf-core-eager-summary: Found 1 sample (html)
|           multiqc | Compressing plot data
|           multiqc | Report      : multiqc_report.html
|           multiqc | Data        : multiqc_data
|           multiqc | Plots       : multiqc_plots
|           multiqc | MultiQC complete
@ewels ewels added the bug: module Bug in a MultiQC module label May 12, 2022
@aidaanva aidaanva mentioned this issue Aug 9, 2022
2 tasks
ewels added a commit to MultiQC/test-data that referenced this issue Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: module Bug in a MultiQC module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants