Filter a VCF using fields stored in a different VCF
0
1
Entering edit mode
8.8 years ago
Sean ▴ 390

Question:

Is there a way to filter variants in a VCF based on fields stored in a different VCF without merging the two files first?

Background:

I have a VCF file, and I would like to filter the variants by ExAC allele frequencies stored in a different VCF. I know I can use bcftools annotate to merge the allele counts from the ExAC VCF into my own VCF file and then use bcftools filter to filter by allele frequency. However, I'm wondering if there is a way to skip the merging process altogether.

I noticed that bcftools roh has an option called --AF-file which allows you to specify your frequencies in a different file. Does BCFtools or VCFtools offer a similar feature for filtering?

vcf bcftools vcftools allele-frequency • 3.6k views
ADD COMMENT
0
Entering edit mode

just create a filtered Exac and then only keep your variants that are present in the sub-exac ?

ADD REPLY

Login before adding your answer.

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