From 46ef712a590faca541e9fa293eda891216d39994 Mon Sep 17 00:00:00 2001 From: Francesco Beghini Date: Tue, 21 Apr 2020 10:39:22 +0200 Subject: [PATCH] Update --- metaphlan/metaphlan.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/metaphlan/metaphlan.py b/metaphlan/metaphlan.py index f815d59..a24f5a5 100755 --- a/metaphlan/metaphlan.py +++ b/metaphlan/metaphlan.py @@ -1051,7 +1051,10 @@ def main(): @Ranks:superkingdom|phylum|class|order|family|genus|species|strain\n @@TAXID\tRANK\tTAXPATH\tTAXPATHSN\tPERCENTAGE\n'''.format(pars["sample_id"])) if not MPA2_OUTPUT: - outf.write('#clade_name\tNCBI_tax_id\trelative_abundance\tadditional_species\n') + if not pars['use_group_representative']: + outf.write('#clade_name\tNCBI_tax_id\trelative_abundance\tadditional_species\n') + else: + outf.write('#clade_name\tNCBI_tax_id\trelative_abundance\n') cl2ab, _, tot_nreads = tree.relative_abundances( pars['tax_lev']+"__" if pars['tax_lev'] != 'a' else None )