calour.amplicon_experiment.AmpliconExperiment.find_lowest_taxonomy

AmpliconExperiment.find_lowest_taxonomy(field='taxonomy', new_field='taxa')[source]

Create a new column that contains the taxonomy of lowest possible level.

For example, ‘k__Bacteria; p__Firmicutes; c__Bacilli, o__Lactobacillales; f__Enterococcaceae; g__Enterococcus, s__’ will return ‘g__Enterococcus’

Parameters:
  • field (str) – column name that contains all levels of taxonomy
  • new_field (str) – new column name
Returns:

Return type:

AmpliconExperiment