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

[fix][VCF,indel] Add check for deletion in alleles #562

Closed
wants to merge 3 commits into from
Closed

Conversation

isinaltinkaya
Copy link
Collaborator

@isinaltinkaya isinaltinkaya commented Mar 4, 2023

Bug: VCF v4.2 introduced the use of asterisk notation (*) in ALTs to represent spanning deletions. If there are alternative alleles at a site, the ‘*’ allele is reserved to indicate that an allele allele is missing due to an upstream deletion. This led to segfaults in angsd VCF reading.
Fix: Add hasDelAlt func to check if there is any deletion in alleles using strcmp.

Fixes #557

Bug: VCF v4.2 introduced the use of asterisk notation (*) in ALTs to
represent spanning deletions. If there are alternative alleles at a
site, the ‘*’ allele is reserved to indicate that an allele allele is
missing due to an upstream deletion. This led to segfaults in angsd VCF
reading.
Fix: Add hasDelAlt func to check if there is any deletion * in alleles
using strcmp.

Fixes #557
@isinaltinkaya isinaltinkaya requested a review from ANGSD March 4, 2023 10:51
@isinaltinkaya isinaltinkaya changed the title [fix][VCF,indel] Add check for deletin in alleles [fix][VCF,indel] Add check for deletion in alleles Mar 4, 2023
Bug: Apparently [smallBam/small2.bcf](https://github.com/ANGSD/smallBam/blob/master/small2.bcf) contains lots of symbolic alternate alleles, and the sites with only these caused the tests to fail since hasDelAlt was called before isindel.
Fix: Add check if record d.allele is NULL before using it. Fixes PR #562 unit tests.

Add debugging mode to Makefile to enable debugging-related features easily.

Add vgcore to gitignore.
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.

Error message 'Segmentation fault'
1 participant