Get Unique variants (SNPs and Indels) using bcf tools
1
0
Entering edit mode
3.6 years ago

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.7k views
ADD COMMENT
0
Entering edit mode
3.6 years ago
 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)'
ADD COMMENT
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode
ADD REPLY
0
Entering edit mode

Thanks. I will try it.

ADD REPLY

Login before adding your answer.

Traffic: 5266 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6