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

PyVCF assigns a QUAL value of '.' instead of zero #134

Closed
knewl opened this issue Mar 6, 2024 · 0 comments · Fixed by #137
Closed

PyVCF assigns a QUAL value of '.' instead of zero #134

knewl opened this issue Mar 6, 2024 · 0 comments · Fixed by #137

Comments

@knewl
Copy link

knewl commented Mar 6, 2024

Hello,

This is an issue in PyVCF where instead of a zero a '.' is written to the QUAL field of a VCF. The issue was raised a few years ago and is therefore unlikely to be addressed soon.

For example, this variant with QUAL of 0.0 in sample_name.1.vcf

MN908947.3 7576 . T TA 0.0 PASS DP=2.0;DPS=0.0,2.0 GT:GQ 1:0

has a QUAL value of '.' once it is merged into sample_name.merged.vcf

MN908947.3 7576 . T TA . PASS DP=2.0;DPS=0.0,2.0;Pool=1 GT:GQ 1:0

This causes an error in vcf_filter.py when it attempts to assess whether the quality is < 20:

TypeError: '<' not supported between instances of 'NoneType' and 'int'

My suggestion would be to ignore variants in vcf_filter.py where v.QUAL is not numeric.

@BioWilko BioWilko linked a pull request Sep 20, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant