Hi @cpad0112
I tried commands you suggested but they didn't provide optimal solution.
In case of 1st command, output VCF contained all the heterozygous variants having AB between 0.25 and 0.75. But it didn't output homozygous variants. As you suggested, I also checked AB value for homozygous calls, and it was zero for GT (1/1).
2nd command produced output VCF same as INPUT VCF. No filtering was made.
Still, looking for possible solution.
Thanks!
Try GATK variant filtration walker and example to filter by AB is provided in manual page (https://software.broadinstitute.org/gatk/documentation/tooldocs/3.8-0/org_broadinstitute_gatk_tools_walkers_filters_VariantFiltration.php) You can use snpsift or bcftools for filtering format field. What is the criteria for homozygous and heterozygous calls in your vcf?
Yeah. I've tried bcf filtering for Allele-Balance (AB). But I'm unable to get the desired output as I mentioned above. Calls having 0/0 or 1/1 are homozygous while those having GT 0/1 or 1/0 are heterozygous.
duplicate: Allele Depth (AD) / Allele Balance (AB) Filtering in GATK 4Hi @Pierre!
In that particular post, you mentioned, solution is provided based on AD not AB. That's why I had to open another question.
I see. Your question is not clear to me. You have a AB value in the INFO column but I don't understand why you say: " homozygous calls will also be kept in vcf"