From 2343688855aa88a3e3245367d9d65c556c8f54bc Mon Sep 17 00:00:00 2001 From: Cezar Pendarovski Date: Thu, 24 Jun 2021 17:45:55 +0100 Subject: [PATCH] Update add_tax.py Fix white space --- scripts/add_tax.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/scripts/add_tax.py b/scripts/add_tax.py index cbcc478..8b91095 100755 --- a/scripts/add_tax.py +++ b/scripts/add_tax.py @@ -45,7 +45,7 @@ "genus" ] -print('\t'.join(map(str,titles))) +print('\t'.join(map(str, titles))) # iterate over file for row in checkm_file: @@ -94,24 +94,24 @@ if rank[l] == 'kingdom': k = names[l] - if rank[l] == 'phylum': + if rank[l] == 'phylum': p = names[l] - if rank[l] == 'class': + if rank[l] == 'class': c = names[l] - if rank[l] == 'order': + if rank[l] == 'order': o = names[l] - if rank[l] == 'family': + if rank[l] == 'family': f = names[l] - if rank[l] == 'genus': - g = names[l] - + if rank[l] == 'genus': + g = names[l] + # print it all out - print('\t'.join(map(str,arr)),'\t',end='') - print("%s\t%s\t%s\t%s\t%s\t%s\t%s" % (sk,k,p,c,o,f,g)) + print('\t'.join(map(str, arr)), '\t', end='') + print("%s\t%s\t%s\t%s\t%s\t%s\t%s" % (sk, k, p, c, o, f, g)) # close file checkm_file.close()