Closed davemcg closed 7 years ago
can you add a try around that if statement at 307 and print the af_val for when it fails? That will help me get a quick fix in.
code mode:
for col in self.af_cols:
af_val = variant.get(col)
try:
if af_val is None or np.isnan(af_val):
variant[col] = -1.0
except:
print(col)
print(af_val)
sys.exit()
Output (above stuff largely the same, except of course missing the the TypeError)
aaf_esp_aa_float
0.003663004
Using vcfanno 0.0.10
what does the header of the vcf show for aaf_esp_aa_float
##INFO=<ID=aaf_esp_aa_float,Number=1,Type=String,Description="calculated by lua:ratio(vals) of overlapping values in field AA_AC from /data/mcgaugheyd/genomes/1000G_phase2_GRCh37/gemini_annotation/ESP6500SI.all.snps_indels.tidy.v2.vcf.gz">
hmm, should have Type=Float. I'll have a look at vcfanno. Can you show the exact vcfanno.conf for that?
Yep that's it. Running the latest vcfanno has this:
##INFO=<ID=aaf_esp_aa,Number=1,Type=Float,Description="calculated by lua:ratio(vals) of overlapping values in field AA_AC from /data/mcgaugheyd/genomes/1000G_phase2_GRCh37/gemini_annotation/ESP6500SI.all.snps_indels.tidy.v2.vcf.gz">
Sorry, switching code over from test system to production system and didn't realize the their vcfanno was so old (0.0.10) instead of (0.1 or 0.1.1)
Seriously, I don't wake up in the morning and ask myself 'how do I waste Brent's time today?' It just happens. I try to spend at least an hour trying to fix things before heading over to github issues.
no problem. at least we know we fixed a true bug.
After annotating my VCF with vcfanno, I'm getting this error from vcf2db (latest version).
Can't figure out what the issue is. vcf2db proceeds on the vcf PRE vcfanno. I've tried removing my custom annotations for the vcfanno run, but this error keeps happening.