jamescasbon / PyVCF

A Variant Call Format reader for Python.
http://pyvcf.readthedocs.org/en/latest/index.html
Other
404 stars 200 forks source link

Adding a new FILTER in the VCF header #313

Open saty89 opened 5 years ago

saty89 commented 5 years ago

Hi, is there a way to add a new FILTER ID to the header. I tried to add it as like key=value pair for dictionary but doesn't seem to work. For example - inputvcf_reader.filters['Test']="Filter(id='Test', desc='Add a new ID')"

Seems like not recognizing due to quotes but not sure as I get the following in the output vcf

FILTER=

Any help is appreciated. Thanks!