Hi all!
I am looking for a way to filter a list of SNPs from a VCF file.
I know that, with GATK SelectVariants or VCFtools you can exclude a list of SNPs from your VCF, however what I want is to soft-filter them (add filter info in the FILTER column of the VCF).
Any ideas? Thanks!
A small PyVCF snippet should help. I am not sure if VariantFilter just adds "filter_name" or also excludes variants.
I believe VariantFiltration adds "filter_name", but I am unsure on how provide a SNP list as a filter expression. I have never used PyVCF, I'll check that out.