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

Error when no variants on VEP stats file #1446

Closed
fgvieira opened this issue Jun 10, 2021 · 5 comments · Fixed by #1450
Closed

Error when no variants on VEP stats file #1446

fgvieira opened this issue Jun 10, 2021 · 5 comments · Fixed by #1450
Labels
bug: module Bug in a MultiQC module

Comments

@fgvieira
Copy link
Contributor

Description of bug:

MultiQC gives an error when no variants are present in the VEP stats file.

MultiQC Error log:

╭────────────────────────────────────────────────────────────── 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: stats/variants/delly/real.annot_vep.stats                                                     │
│                                                                                                                                                                      │
│ Traceback (most recent call last):                                                                                                                                   │
│   File "lib/python3.9/site-packages/multiqc/multiqc.py", line 604, in run                   │
│     output = mod()                                                                                                                                                   │
│   File "lib/python3.9/site-packages/multiqc/modules/vep/vep.py", line 40, in __init__       │
│     self.parse_vep_txt(f)                                                                                                                                            │
│   File "lib/python3.9/site-packages/multiqc/modules/vep/vep.py", line 151, in parse_vep_txt │
│     existing = values[1].split("(")[0].replace(" ", "")                                                                                                              │
│ IndexError: list index out of range                                                                                                                                  │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

File that triggers the error:

The issues occurs when the file has no SNVs (only SVs), and VEP sets line Novel / existing variants to -:

[...]
[General statistics]
Lines of input read     6
Variants processed      6
Variants filtered out   0
Overlapped genes        49
Overlapped transcripts  49
Overlapped regulatory features  0
Novel / existing variants       -

[Variant classes]
deletion        6

[Consequences (most severe)]
transcript_ablation     1
frameshift_variant      3
upstream_gene_variant   2

[...]

MultiQC run details (please complete the following):

  • Command used to run MultiQC: multiqc .
  • MultiQC Version: MultiQC v1.1dev0
  • Operating System: Ubuntu 20.04
  • Python Version: Python 3.9
  • Method of MultiQC installation: conda
@ewels ewels added the bug: module Bug in a MultiQC module label Jun 13, 2021
@ewels
Copy link
Member

ewels commented Jun 13, 2021

Thanks @fgvieira - I'll take a look.

Is it possible to attach the full log as a file instead of a snippet please? Then I can run MultiQC on it myself to replicate the issue and be sure that I've fixed it.

@fgvieira
Copy link
Contributor Author

The full log or the full file that triggers the error?

@ewels
Copy link
Member

ewels commented Jun 13, 2021

The file that triggers the error - a minimal test case that I can run locally to reproduce the error. But a full file, as there are often secondary errors when fixing this type of bug..

@fgvieira
Copy link
Contributor Author

File that triggers error:

delly.annot_vep.txt

log:

multiqc_variants_annot.log

@ewels
Copy link
Member

ewels commented Jun 15, 2021

Many thanks @fgvieira!

@ErikDanielsson has just fixed this for you in #1450 - now available in version 1.11dev. Let us know if you hit any problems with it 👍🏻

Phil

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