I like the idea of vcf filtering framework, so I tried to use that for my project. To be able to use that fluently, i've added few changes.
The file is given on the command line, so not all the possible arguments are known the first time command line is parsed. So it was necessary to slightly change the command syntax to
vcf_filter.py --optionals input filter1 [--filter1-optionals]
This way the arguments can be parsed filter by filter and checked for correctness.
add ability to load ad-hoc filters to vcf_filter.py
fixups for vcf_filter
vcf_filter.py command syntax redux
This is super cool, thanks very much.
I just need to check this out and update the tests, before it gets merged. Unless they are already passing?
Hey @libor-m do you want to submit your filters for inclusion? Would be great to get them in before I cut the next release.
The filters I was using for my project are in https://github.com/libor-m/scrimer/blob/master/pyvcf_filters.py . Check them and if any of them seems sensible - and reuasble for the others - to you, you're welcome to include those in pyvcf.