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 with qualimap/rnaseq module #1492

Closed
drpatelh opened this issue Jul 14, 2021 · 1 comment · Fixed by #1498
Closed

ZeroDivisionError with qualimap/rnaseq module #1492

drpatelh opened this issue Jul 14, 2021 · 1 comment · Fixed by #1498
Labels
bug: module Bug in a MultiQC module

Comments

@drpatelh
Copy link
Contributor

Description of bug

I hate to say it but I found another one of those ZeroDivisionError puppies after I upgraded MultiQC to 1.11 within the nf-core/rnaseq pipeline. I haven't changed the test data so maybe it was something introduced whilst fixing #1258 ?

Running multiqc -f . in the test data attached should reproduce the error.

File that triggers the error

test.tar.gz

MultiQC Error log

/// MultiQC 🔍 | v1.11

|           multiqc | Search path : test
|         searching | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 32/32
|          bargraph | Tried to make bar plot, but had no data
╭────────────────────────────────────────────────────────── Oops! The 'qualimap' 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: ./raw_data_qualimapReport/coverage_profile_along_genes_(total).txt                         │
│                                                                                                                                                                   │
│ Traceback (most recent call last):                                                                                                                                │
│   File "conda/envs/multiqc-1.11/lib/python3.9/site-packages/multiqc/multiqc.py", line 624, in run                              │
│     output = mod()                                                                                                                                                │
│   File "conda/envs/multiqc-1.11/lib/python3.9/site-packages/multiqc/modules/qualimap/qualimap.py", line 47, in __init__        │
│     n["RNASeq"] = QM_RNASeq.parse_reports(self)                                                                                                                   │
│   File "conda/envs/multiqc-1.11/lib/python3.9/site-packages/multiqc/modules/qualimap/QM_RNASeq.py", line 163, in parse_reports │
│     self.qualimap_rnaseq_cov_hist_percent[s_name][k] = (v / total) * 100.0                                                                                        │
│ ZeroDivisionError: float division by zero                                                                                                                         │
│                                                                                                                                                                   │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
|           multiqc | No analysis results found. Cleaning up..
|           multiqc | MultiQC complete
ErikDanielsson added a commit to ErikDanielsson/MultiQC_TestData that referenced this issue Jul 17, 2021
@ewels ewels added the bug: module Bug in a MultiQC module label Jul 19, 2021
ewels added a commit to MultiQC/test-data that referenced this issue Nov 7, 2021
@ewels
Copy link
Member

ewels commented Nov 7, 2021

Fixed by @ErikDanielsson in #1498 👏🏻

vladsavelyev pushed a commit to vladsavelyev/MultiQC_TestData that referenced this issue Apr 16, 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