def format_taxa_summary(taxa_summary):
 result = (('Taxon DCTB ' + ' DCTB '.join(taxa_summary[0])) + '\n')
 for (taxon, row) in zip(taxa_summary[1], taxa_summary[2]):
  row = map(str, row)
  result += ((('%s DCTB ' % taxon) + ' DCTB '.join(row)) + '\n')
 return result

def format_taxa_summary ( taxa_summary ) : result = ( ( 'Taxon DCTB ' + ' DCTB ' . join ( taxa_summary [ 0 ] ) ) + '\n' ) for ( taxon , row ) in zip ( taxa_summary [ 1 ] , taxa_summary [ 2 ] ) : row = map ( str , row ) result += ( ( ( '%s DCTB ' % taxon ) + ' DCTB ' . join ( row ) ) + '\n' ) return result
formats a taxa summary to be suitable for writing to a file .