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

Don't assume we have multiple SVTYPE entries #7

Merged
merged 1 commit into from
Jun 14, 2018

Conversation

adamnovak
Copy link
Member

I saw an invalid svtype: 0|0 message in my console, which only makes sense if we are reading out of the vector and getting some other string that is laying around in memory.

The VCF spec specifies that SVTYPE has Number=1. Moreover, even if there were supposed to be multiple SVTYPE entries (one per alt), we can't guarantee that the VCF actually has them, so we can't go directly indexing them out of a vector without checking its length.

@adamnovak adamnovak merged commit 24ca71a into vgteam:master Jun 14, 2018
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.

1 participant