Skip to content

Commit 9a8c96f

Browse files
committed
Treat taxa that don't exist in the taxdb in majoritylca as unassigned instead of exiting
1 parent 7f5c000 commit 9a8c96f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/taxonomy/NcbiTaxonomy.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -616,8 +616,8 @@ WeightedTaxResult NcbiTaxonomy::weightedMajorityLCA(const std::vector<WeightedTa
616616
}
617617
TaxonNode const *node = taxonNode(currTaxId, false);
618618
if (node == NULL) {
619-
Debug(Debug::ERROR) << "taxonid: " << currTaxId << " does not match a legal taxonomy node.\n";
620-
EXIT(EXIT_FAILURE);
619+
unassignedSeqs++;
620+
continue;
621621
}
622622
totalAssignedSeqsWeights += currWeight;
623623
assignedSeqs++;

0 commit comments

Comments
 (0)