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

vcfanno is slient when the tabix index is older than the bed/vcf file #112

Closed zzupmc closed 5 years ago

zzupmc commented 5 years ago

Hi,

thanks for this excellent tool. I noticed that when the index file is older than the annotation file, the annotated vcf file has header information, but the variant line has no expected annotations.

##INFO=<ID=ClinPred_Score,Number=1,Type=Float,Description="calculated by max of overlapping values in column 6 from /home/pmi/share/genomes/Hsapiens/GRCh37/variation/clinpred.bed.gz">

vcfanno is silent in this situation.

vcfanno version 0.3.1 [built with go1.11]

If you have encountered an error, please include:

[[annotation]] file="/home/pmi/share/genomes/Hsapiens/GRCh37/variation/clinpred.bed.gz" names = ["ClinPred_Score"] columns = [6] ops = ["max"]

vcfanno produces no error message

brentp commented 5 years ago

I have pushed a fix for this--it now outputs a warning if the index has been modified more recently than the data file--to an upstream dependency. thanks for reporting.