This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Get Unique variants (SNPs and Indels) using bcf tools

I completed the local alignment and have 19 VCF files. How can I get unique variants - SNPs and Indels from these 19 VCF files so the variants won't repeat in each of 19 samples using bcf tools ?

snps indels variants bcf unique

1 answer

 bcftools merge -0 indexed*.vcf.gz | bcftools view -i '(count(GT="AA")==1 && count(GT="het")==0)  ||(count(GT="AA")==0 && count(GT="het")==1)'

What does this GT="AA" and GT="het" means ?

Log in to answer this question.