Entering edit mode
23 months ago
derealme
•
0
Hello,
I'd like to filter germline mutations from BCF generated by bcftools calls. If I understand correctly there should be a VAF tag available to filter by, however when I try to add the VAF tag I get an error:
bcftools +fill-tags test.bcf -- -t bcftools +fill-tags test.bcf -- -t AF
Warning: cannot add the VAF/VAF1 annotations, the required FORMAT/AD tag is missing at chr1:10352.
and then when I try to add the AD tag I get:
Error parsing "--tags AD": the tag "AD" is not supported
what is the right way of adding VAF to variant calling bcf file (or mpileup)?
Thanks, D
You can't fill AD tag from VCF file. This tag is creating when you're calling variants from count of reads. Some people write AD field in INFO column, and you can carry it over to SAMPLE column first.
I see - so rerunning the mpileup this time requesting the AD tag will allow me later to add VAF? is this the right way?
Yes, if you did the variant call with bcftools, you can add the AD tag while doing the pileup with
annotate
parameter. https://samtools.github.io/bcftools/bcftools.html#mpileupcool, thank you. So I'm doing the following:
would that work? also, to exclude potential germline variants, roughly what VAF should I filter out?
Just
FORMAT/AD
should be enough for VAF. Also, bcftools give example of VAF command like so: https://samtools.github.io/bcftools/howtos/plugin.fill-tags.html