Skip to content

Commit

Permalink
Treat taxa that don't exist in the taxdb in majoritylca as unassigned…
Browse files Browse the repository at this point in the history
… instead of exiting
  • Loading branch information
milot-mirdita committed Dec 26, 2024
1 parent 7f5c000 commit 9a8c96f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/taxonomy/NcbiTaxonomy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,8 @@ WeightedTaxResult NcbiTaxonomy::weightedMajorityLCA(const std::vector<WeightedTa
}
TaxonNode const *node = taxonNode(currTaxId, false);
if (node == NULL) {
Debug(Debug::ERROR) << "taxonid: " << currTaxId << " does not match a legal taxonomy node.\n";
EXIT(EXIT_FAILURE);
unassignedSeqs++;
continue;
}
totalAssignedSeqsWeights += currWeight;
assignedSeqs++;
Expand Down

0 comments on commit 9a8c96f

Please sign in to comment.