From a00d0da8081851f9423cb2168a3637af0ddd42e4 Mon Sep 17 00:00:00 2001 From: Benjamin Buchfink Date: Wed, 14 Feb 2024 14:26:06 +0100 Subject: [PATCH] Fixed taxid bug. --- src/output/taxon_format.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/taxon_format.cpp b/src/output/taxon_format.cpp index 0badf74a..0f222b59 100644 --- a/src/output/taxon_format.cpp +++ b/src/output/taxon_format.cpp @@ -70,6 +70,6 @@ void TaxonFormat::print_query_epilog(Output::Info &info) const else info.out << '0'; if (config.include_lineage) - info.out << '\t' << taxon_lineage(taxid, *info.db) << '\t'; + info.out << '\t' << (taxid != 0 ? taxon_lineage(taxid, *info.db) : "N/A"); info.out << '\n'; } \ No newline at end of file