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

Fatal error when genotyping VCF with missing QUAL #506

Open
Han-Cao opened this issue Aug 15, 2024 · 1 comment
Open

Fatal error when genotyping VCF with missing QUAL #506

Han-Cao opened this issue Aug 15, 2024 · 1 comment
Assignees
Milestone

Comments

@Han-Cao
Copy link

Han-Cao commented Aug 15, 2024

Hi,

When I genotype known SVs from a VCF, Sniffles2 raise a Fatal error:

Sniffles2 Error: Error parsing input VCF: Line 211: invalid literal for int() with base 10: '.' (Fatal error, exiting.)

It seems this is due to the QUAL in my VCF is ".". It cannot be parsed by the read_svs_iter method as an integer is expected (line 315 in Sniffles/src/sniffles/vcf.py). After I manually fill in the QUAL values, Sniffles runs without error.

@hermannromanek hermannromanek self-assigned this Aug 15, 2024
@hermannromanek
Copy link
Collaborator

Hi Han-Cao,

Thanks for the report and the analysis - this is indeed an error, according to the VCF spec '.' is an allowed value for qual. I'll fix it for the next release of sniffles.

Thanks,
Hermann

@hermannromanek hermannromanek added this to the 2.5 milestone Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants