-
Notifications
You must be signed in to change notification settings - Fork 35
genotype_count_spec is inconsistent with VCF spec #911
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
Comments
Just to add to that, If we were to change the ordering to match VCF ordering then this variable could easily be generalized to multi-allelic variants and autopolyploids. |
+1 to introducing a generalized ordering like GL. It looks like the BTW here is the relevant test: https://github.com/pystatgen/sgkit/blob/68b983c51c2c7e08914d64f83cd7b3fd05616f1a/sgkit/tests/test_hwe.py#L139 |
Yes in general although I'm not familiar with implementation details (something on my long term todo list). |
@tomwhite I'm not sure how urgently you want to release 0.6.0 but I can try sort this tomorrow. |
Thanks Tim, that would be great - I'll try to release next week. |
- calculate variant_genotype_count if absent - remove variable genotype_count from the spec
- calculate variant_genotype_count if absent - remove variable genotype_count from the spec
- calculate variant_genotype_count if absent - remove variable genotype_count from the spec
- calculate variant_genotype_count if absent - remove variable genotype_count from the spec
- calculate variant_genotype_count if absent - remove variable genotype_count from the spec
Just a minor inconsistency I noted given that we seem to follow the VCF spec in most cases. The
genotype_count_spec
states "the 3 columns contain heterozygous, homozygous reference, and homozygous alternate counts (in that order)". The VCF genotype ordering would typically be homozygous reference, heterozygous, homozygous alternate for a diploid biallelic variant as described for the "GL" field in the spec.The text was updated successfully, but these errors were encountered: