brentp / vcfanno

annotate a VCF with other VCFs/BEDs/tabixed files
https://genomebiology.biomedcentral.com/articles/10.1186/s13059-016-0973-5
MIT License
357 stars 55 forks source link

Filtering whilst annotating. #133

Closed tirohia closed 3 years ago

tirohia commented 3 years ago

Is there a way to access the vcf calls on a per-record basis as they are being annotated? Specifically, I'm looking for a way to retain only those vcf calls that have been annotated from at least one source. Don't know if this is possible, or if I have to filter out unannotated calls in a later step?

Thanks Ben.

brentp commented 3 years ago

hi, vcfanno will only annotate, not filter. so you'd have to use a downstream tool like bcftools or slivar to do the filtering.