# How to restrict VCF variants using a gene list with the set function in SnpSift?

**URL:** <https://help.galaxyproject.org/t/how-to-restrict-vcf-variants-using-a-gene-list-with-the-set-function-in-snpsift/4909>\
**Category:** Uncategorized\
**Tags:** devops-administration, variant-analysis, snpeff\
**Created:** [November 25, 2020, 5:41am UTC](https://help.galaxyproject.org/t/how-to-restrict-vcf-variants-using-a-gene-list-with-the-set-function-in-snpsift/4909 "2020-11-25T05:41:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tracey](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@Tracey](https://help.galaxyproject.org/u/Tracey)\
**Post date:** [November 25, 2020, 5:41am UTC](https://help.galaxyproject.org/t/how-to-restrict-vcf-variants-using-a-gene-list-with-the-set-function-in-snpsift/4909/1 "2020-11-25T05:41:35Z")

</div>

Hello,

I am trying to restrict VCF variants using a gene list (text file) with the set function in SnpSift.  
After annotating with ANOVAR and running through SnpEff for effect prediction we have been able to set the resulting vcf file against a text file “gene of interest list” using SnpSift. We used the command:

sample.vcf | java -Xmx4G -jar SnpSift.jar filter --set gene\_of\_interest\_list.txt “ANN[0].GENE in SET[0]” \> sample\_set.vcf

I would like to be able to do this in Galaxy. In the tool for “SnpSift filter” there is no option to upload a text file to set a gene list against the vcf file.

How can I set a vcf file against a specific gene list in Galaxy?

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![wm75](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/wm75/32/56_2.png) [@wm75](https://help.galaxyproject.org/u/wm75)\
**Post date:** [November 25, 2020, 8:37am UTC](https://help.galaxyproject.org/t/how-to-restrict-vcf-variants-using-a-gene-list-with-the-set-function-in-snpsift/4909/2 "2020-11-25T08:37:06Z")

</div>

Hi @Tracey and thanks for a very good first question here,  
you are right that the Galaxy wrapper doesn’t offer an option to specify a `set` file. Looks simply like oversight during tool wrapping for Galaxy to me.  
I’ve opened [https://github.com/galaxyproject/tools-iuc/issues/3349](https://github.com/galaxyproject/tools-iuc/issues/3349) to track progress on this, and I might be able to add this functionality over the week if nobody else takes this over first.

---

<div class="post-metadata">

**Author:** ![Tracey](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@Tracey](https://help.galaxyproject.org/u/Tracey)\
**Post date:** [November 25, 2020, 11:34pm UTC](https://help.galaxyproject.org/t/how-to-restrict-vcf-variants-using-a-gene-list-with-the-set-function-in-snpsift/4909/3 "2020-11-25T23:34:25Z")

</div>

Thank you so much!
