Bcftools filtering only 10% missing and heterozygous calls
1
0
Entering edit mode
4.1 years ago
User000 ▴ 690

Hello,

I would like to keep only 90% of missinfg and heterogygous genotype on all my samples. According to link I can filter missing like this bcftools view -i 'F_MISSING<0.1' in.vcf. What about heterozygous calls?

EDIT: I tried something like this, it doesn't seem to work.

-i 'F_MISSING<0.1 & F_PASS(GT="het")<0.1'
bcftools • 2.6k views
ADD COMMENT
4
Entering edit mode
4.1 years ago
User000 ▴ 690

I solve like this, not sure it is the best way, but it works:

-i 'F_MISSING<0.1 && (COUNT(GT="0/1")/total_number_of_gen)<=0.1'
ADD COMMENT

Login before adding your answer.

Traffic: 2423 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