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

The genotype field of bcf file is missing alternate allele #3

Open
tahuh opened this issue Apr 19, 2021 · 3 comments
Open

The genotype field of bcf file is missing alternate allele #3

tahuh opened this issue Apr 19, 2021 · 3 comments

Comments

@tahuh
Copy link

tahuh commented Apr 19, 2021

Hi @heathsc

I'm using BSCall software to detect some variants from whole genome bisulfite sequencing data.

My version of bs_call is 2.1.7

When I tried to compare the result of BSCall and NA12878's germline SNP variants using gatk's GenotypeCondordance command, I encountered with the error message that

htsjdk.tribble.TribbleException$InternalCodecException: The allele with index 3 is not defined in the REF/ALT columns in the record

After some google search, I found that this is because the alternate allele index is missing (Insufficient amount of alternate allele).
There are many records genotyped 1/3 as shown below but only have 2 alternate allele.
According to this thread of biostars , I think this genotype would be 1/2 instead of 1/3.

1	28562540	.	C	A,T	114	PASS	CX=CTCCG	GT:FT:DP:MQ:GQ:QD:GL:MC8:AMQ:CS:CG:CX:FS	1/3:PASS:20:42:114:5:-45.0074,-11.452,-24.4232,-19.2041,-32.7773:9,4,0,7,0,0,0,0:37,37,37:NA:.:YTWYR:0

Is this genotype is intention or a mis calling?

@paulstretenowich
Copy link

Hi Simon,

I also have the same error message when loading the vcf in IGV:

The allele with index 3 is not defined in the REF/ALT columns in the record, for input source:

FYI I used the version corresponding to the master branch so with the latest commit ef7eb81fbf556719c5e89e979e0b740234e31a74.
I can't find any genotype being 1/2 and all 1/3 are like the one in the example of @tahuh: with only 2 alternate alleles.
Do you plan to have a fix for this @heathsc or is this intended?

Thanks in advance.

@heathsc
Copy link
Owner

heathsc commented Jun 10, 2022 via email

@paulstretenowich
Copy link

Many thanks for your super quick reply! Keep me posted when you have a fix so that I can give a try on my side and download the new version.

Paul

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

No branches or pull requests

3 participants