Thanks finswimmer. it works.
• 1 views
•
link
Hi All,
I downloaded vcf files from gnomad , I want to filter some SNPs which are 'missense_variant' in vep annotation.
vep=A|missense_variant|MODERATE|ABCB1|ENSG00000085563|Transcript|ENST00000265724|
However, I cannot find any effective way to filter and extract these SNPs with bcftools
bcftools view -f PASS -i 'INFO/AF[0] > 0.1 & vep{1} =="missense_variant"' gnomad.exomes.r2.1.sites.chr13.vcf.bgz
Any suggestions?
Thanks.
Hello Shicheng Guo ,
try this:
$ bcftools view -f PASS -i 'INFO/AF[0] > 0.1 & INFO/vep ~ "missense_variant"' gnomad.exomes.r2.1.sites.chr13.vcf.bgz
fin swimmer
You can just use the filter options that ship with the VEP.
Log in to answer this question.
Can you share the header and first few lines of the file?