VEP generated VCF file filtering using gnamAD, CADD , dbNSF etc with out loosing sample specific variants.
1
0
Entering edit mode
2.1 years ago
Nai ▴ 50

I have vcf annotated by VEP. I would like to filter this file on the basis on gnomAD, CADD and revel. When I am doing this via bcftools then I lost samples from vcf file. I request for help to filter in quick manner. I tried in dplyr but it failed due to missing column header information like gnomAD, CADD.

bcftools vep R VCF • 1.0k views
ADD COMMENT
1
Entering edit mode
ADD REPLY
0
Entering edit mode
2.1 years ago
Nai ▴ 50

bcftools +split-vep -c gnomAD_AF:Float all_merged_VEP_annotated_ensembl.vcf -i 'gnomADg_AF<=0.001' -Ov -o global.vcf

In this file there was sample specific variants.

bcftools +split-vep -f '%CHROM\t%POS\t%REF\t%ALT\t%CSQ\n' -d -A tab input.vcf Then outfile does not have sample columns. even i mentioned %CSQ\t%Sample1\t%Sample2...\n'

ADD COMMENT

Login before adding your answer.

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