bcftools filtering only 10% missing genotype
1
1
Entering edit mode
4.3 years ago
Sillpositive ▴ 20

Hello everyone,

I would like to keep only 90% of my missing genotype on all my samples. I used this option of bcftools :

bcftools view -g ^miss  variants.vcf.gz -Oz -o filtered_variants.vcf.gz

When I use this option my variant it's deleted for all the samples. I know it's possible to use regular expressions in bcftools, but I'm a little confused.

Thank you very much.

snp sequence gene sequencing next-gen • 10k views
ADD COMMENT
1
Entering edit mode

I've edited your post to a Question. The post type Tool is to advertise a new tool, not to ask questions about using tools.

ADD REPLY
0
Entering edit mode

Thank you Emily ! My mistake

ADD REPLY
7
Entering edit mode
4.3 years ago
bcftools view -i 'F_MISSING<0.1'  in.vcf
ADD COMMENT

Login before adding your answer.

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