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

fill-tags VAF and VAF1 not working for multi-allelic sites #2338

Closed
bartcharbon opened this issue Dec 16, 2024 · 1 comment
Closed

fill-tags VAF and VAF1 not working for multi-allelic sites #2338

bartcharbon opened this issue Dec 16, 2024 · 1 comment

Comments

@bartcharbon
Copy link

When using fill-tags VAF, multiallelic genotypes like 1/2 get skipped.
Could support for these kind of ALT1/ALT2 cases be added?

@pd3
Copy link
Member

pd3 commented Jan 2, 2025

I don't think that's true. In fact, when filling VAF, the program does not look at genotypes (GT field) at all, it just converts FORMAT/AD into FORMAT/VAF. See the test in the bcftools test suite

$ bcftools +fill-tags test/fill-tags-VAF.vcf -- -t VAF,VAF1 | grep -v ^#
chr1	10153	.	AC	A,C,G	.	.	.	AD:VAF:VAF1	1,1,1,1:0.25,0.25,0.25:0.75
chr1	10153	.	AC	A,C,G	.	.	.	AD	.

@pd3 pd3 closed this as completed Jan 2, 2025
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

2 participants