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

Allow empty ancestral alleles #885

Closed
wants to merge 1 commit into from

Conversation

hyanwong
Copy link
Member

Fixes #884

Copy link

codecov bot commented Jan 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7db1d38) 87.04% compared to head (edd8c29) 87.04%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #885   +/-   ##
=======================================
  Coverage   87.04%   87.04%           
=======================================
  Files           5        5           
  Lines        1767     1767           
  Branches      310      310           
=======================================
  Hits         1538     1538           
  Misses        140      140           
  Partials       89       89           
Flag Coverage Δ
C 87.04% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hyanwong
Copy link
Member Author

There's a bug here when calculating samples.num_alleles, which assumes that none of the alleles can be '""'.

@hyanwong
Copy link
Member Author

hyanwong commented Jan 22, 2024

Hmm, actually there's an even bigger problem here, right? We simply don't allow blank alleles ("") as allelic states in SGkit, right? In fact, the VCF spec says:

For simple insertions and deletions in which either the REF or one of the ALT alleles would otherwise be null/empty, the REF and ALT Strings must include the base before the event

@hyanwong hyanwong closed this Jan 22, 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

Successfully merging this pull request may close these issues.

"Empty alleles must be at the end" error for 1000G VCFs
1 participant