Snpsift to filter a number of genes
0
0
Entering edit mode
8.7 years ago
kay ▴ 380

Hello,

I have a VCF file, and would like to pull out all variants in various genes of interest (I have about 200 genes)

I created a txt file with all my genes of interest.

cat variants.vcf | java -jar SnpSift.jar filter --set input.txt "EFF[*].GENE in SET[0]" > filtered.vcf

This seemed to filter out all the variants, and I got an empty VCF File without any variants.

  • Is the SET function not meant to be used like this ?
  • Do I have to use a loop instead ?

Could someone help with this ?

Thanks, K

SNP variant annotation snpsift snpeff • 3.1k views
ADD COMMENT
1
Entering edit mode

old questioun, but I need exactly the same and get it to work using ANN[*].GENE

ADD REPLY

Login before adding your answer.

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