def _add_metadata(bt, md_key, lines):
 taxonomy_md = biom_taxonomy_formatter(bt, md_key)
 if (taxonomy_md is not None):
  for i in range((len(lines) - 1)):
   lines[(i + 1)] = ((lines[(i + 1)] + ' DCTB ') + taxonomy_md[i])
  return lines
 else:
  nls = ([' DCTB '.join(lines[0].split(' DCTB ')[:(-1)])] + lines[1:])
  return nls

def _add_metadata ( bt , md_key , lines ) : taxonomy_md = biom_taxonomy_formatter ( bt , md_key ) if ( taxonomy_md is not None ) : for i in range ( ( len ( lines ) - 1 ) ) : lines [ ( i + 1 ) ] = ( ( lines [ ( i + 1 ) ] + ' DCTB ' ) + taxonomy_md [ i ] ) return lines else : nls = ( [ ' DCTB ' . join ( lines [ 0 ] . split ( ' DCTB ' ) [ : ( - 1 ) ] ) ] + lines [ 1 : ] ) return nls
add metadata to formatted correlation output lines .