From 1244fff6780bf1d4b0884d8aab6065bdfc07302a Mon Sep 17 00:00:00 2001 From: Francisco Pina Martins Date: Fri, 25 Aug 2017 23:34:32 +0100 Subject: [PATCH] Fixes an undefined variable error --- addTaxonToBlast/addTaxonToBlast.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addTaxonToBlast/addTaxonToBlast.js b/addTaxonToBlast/addTaxonToBlast.js index aa8b937..0790d4d 100755 --- a/addTaxonToBlast/addTaxonToBlast.js +++ b/addTaxonToBlast/addTaxonToBlast.js @@ -19,7 +19,7 @@ var taxonToAdd = process.argv[3] var queryStream = through.obj(query) function query (line, encoding, next) { - uid = line.split('\t')[16] + var uid = line.split('\t')[16] ncbi.fetch('taxonomy', uid + '[uid]', (taxonomy) => { try { var taxons = taxonomy[0].TaxaSet.Taxon[0].LineageEx[0].Taxon