From 9d6666e5360e2c3977f1bd2279d3296435675a71 Mon Sep 17 00:00:00 2001 From: Brian Ondov Date: Thu, 21 Jan 2016 10:58:59 -0500 Subject: [PATCH] fix for no hits --- KronaTools/lib/KronaTools.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KronaTools/lib/KronaTools.pm b/KronaTools/lib/KronaTools.pm index 6e077a1..730b019 100644 --- a/KronaTools/lib/KronaTools.pm +++ b/KronaTools/lib/KronaTools.pm @@ -520,7 +520,7 @@ sub addByTaxID $magnitude = default($magnitude, 1); - if ( ! defined $taxDepths[$taxID] ) + if ( $taxID != 0 && ! defined $taxDepths[$taxID] ) { $missingTaxIDs{$taxID} = 1; $taxID = 1; # unknown tax ID; set to root