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

If VEP does not produce output, MultiQC fails #1681

Closed
FriederikeHanssen opened this issue May 10, 2022 · 5 comments
Closed

If VEP does not produce output, MultiQC fails #1681

FriederikeHanssen opened this issue May 10, 2022 · 5 comments
Labels
bug: module Bug in a MultiQC module

Comments

@FriederikeHanssen
Copy link

FriederikeHanssen commented May 10, 2022

Description of bug

Hi!

Whenever we use VEP with inproper data, the tool itself runs fine, but produces incorrect output. If it is then passed to MultiQC, it fails.
It would be great if MQC would just produce an empty plot instead.

cc @maxulysse

File that triggers the error

MultiQC Error log

/// MultiQC 🔍 | v1.12

|           multiqc | Only using modules: custom_content, fastqc, cutadapt, picard, samtools, qualimap, gatk, bcftools, vcftools, snpeff, vep
|           multiqc | Search path : /Users/monarchy/Projects/Coding/sarek/work/c8/9789c5d3967abee6ddbdfda35c07e5
|         searching | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 12/12  
|    custom_content | software_versions: Found 1 sample (html)
|    custom_content | nf-core-sarek-summary: Found 1 sample (html)
|               vep | Found 1 VEP summaries
╭────────────────── Oops! The 'vep' 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:       │
│ ./1234N.summary.html                                                         │
│                                                                              │
│ Traceback (most recent call last):                                           │
│   File "/usr/local/lib/python3.10/site-packages/multiqc/multiqc.py", line 65 │
│     output = mod()                                                           │
│   File "/usr/local/lib/python3.10/site-packages/multiqc/modules/vep/vep.py", │
│     self.bar_graph_consequences()                                            │
│   File "/usr/local/lib/python3.10/site-packages/multiqc/modules/vep/vep.py", │
│     if max([len(d) for d in plot_data]) == 0:                                │
│ ValueError: max() arg is an empty sequence                                   │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯
|           multiqc | Compressing plot data
|           multiqc | Report      : multiqc_report.html
|           multiqc | Data        : multiqc_data
|           multiqc | Plots       : multiqc_plots
|           multiqc | MultiQC complete
~
@ewels
Copy link
Member

ewels commented May 10, 2022

Unfortunately I can't access your user space 😉 Can you upload the file instead?

Issue is very similar to #1542 but seems like a different exception type 🤔

@FriederikeHanssen
Copy link
Author

😵‍💫 sorry, weird it didn't upload the file. it doesn't want to upload the html file. give me a sec

@FriederikeHanssen
Copy link
Author

1234N.summary.html.txt

@lukatop
Copy link

lukatop commented Aug 2, 2022

Hi, I can reproduce this issue. If there are no variants in VCF, VEP creates HTML, but MultiQC fails when it tries to parse it.

@ewels ewels added the bug: module Bug in a MultiQC module label Aug 17, 2022
ewels added a commit to MultiQC/test-data that referenced this issue Jan 7, 2023
@ewels ewels closed this as completed in d020f9f Jan 7, 2023
@ewels
Copy link
Member

ewels commented Jan 7, 2023

Fixed in d020f9f - thanks!

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

No branches or pull requests

3 participants