From 39a327dd99a68a0dcf1dbb053f8f08081305b226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Plaza=20O=C3=B1ate?= Date: Tue, 23 Jun 2020 17:53:20 +0200 Subject: [PATCH] Add missing "additional_species" column for UNKNOWN taxon --- metaphlan/metaphlan.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metaphlan/metaphlan.py b/metaphlan/metaphlan.py index a7a9100..2f89f85 100755 --- a/metaphlan/metaphlan.py +++ b/metaphlan/metaphlan.py @@ -1078,7 +1078,7 @@ def main(): if ESTIMATE_UNK: outf.write( "\t".join( [ "UNKNOWN", "-1", - str(round((1-fraction_mapped_reads)*100,5))]) + "\n" ) + str(round((1-fraction_mapped_reads)*100,5)),""]) + "\n" ) for clade, taxid, relab in sorted( outpred, reverse=True, key=lambda x:x[2]+(100.0*(8-(x[0].count("|"))))): @@ -1105,7 +1105,7 @@ def main(): ) else: if not MPA2_OUTPUT: - outf.write( "UNKNOWN\t-1\t100.0\n" ) + outf.write( "UNKNOWN\t-1\t100.0\t\n" ) else: outf.write( "UNKNOWN\t100.0\n" ) maybe_generate_biom_file(tree, pars, outpred)