-
Notifications
You must be signed in to change notification settings - Fork 11
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
[I/O] KeyErrors are thrown for info columns not present in a region #150
Comments
edawson
changed the title
[I/O] Errors are thrown for info columns not present in a region
[I/O] KeyErrors are thrown for info columns not present in a region
Nov 17, 2020
Particularly problematic are the population-specific allele frequencies (AFR, AMR, EUR, EX, etc.). MEINFO throws a different error:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When passing a list of INFO fields and reading a VCF region where no variants have an entry for the field, an error is thrown. This happens with the 1000 Genomes VCF and the population-specific allele frequencies such as AFR. I assume it's because the header may be poorly formatted and the expected number does not match the real number.
More graceful behavior would be helpful, and we should probably have a test or two to catch things like this (and to declare whether or not we consider this a bug).
Example read:
Error:
The text was updated successfully, but these errors were encountered: