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

Adding matching for deletions that have longer representations #89

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

calledit
Copy link

This patch fixes an issue that comes from the fact that deletions can have different REF but still be the same rsID:

Example from vcf file:

NC_000003.12 28891307 . CT C 306.593 . AB=0;TYPE=del;technology.ILLUMINA=1 GT:DP:AD:RO:QR:AO:QA:GL 1/1:22:0,14:0:0:14:366:-32.988,-4.21442,0

Same position from dbSNP:
NC_000003.12 28891307 rs34247537 CTTTT C,CT,CTT,CTTT,CTTTTT,CTTTTTT,CTTTTTTT,CTTTTTTTTTTTT . . RS=34247537;dbSNPBuildID=126

Both represent the same deletion but due to the fact that the dbSNP contains other longer deletions dbSNP has to contain a longer slice of the reference. So will not match using SNPSifts earlier matching algorithm. This patch fixes this issue by appending the extended part of the reference ("TTT" in the example case) to the alt and to the REF then comparing again.

Like this:
"CT".concat("TTT") == "CTTTT" && "C".concat("TTT") == "CTTT"

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.

None yet

1 participant