calour.amplicon_experiment.AmpliconExperiment.split_taxonomy

AmpliconExperiment.split_taxonomy(field='taxonomy', sep=';', names=['kingdom', 'phylum', 'class', 'order', 'family', 'genus', 'species'])[source]

Split taxonomy column into individual column per level.

Assume the taxonomy string is in QIIME style: “k__Bacteria;p__Firmicutes;c__Bacilli;o__Bacillales;f__Staphylococcaceae;g__Staphylococcus;s__”

Parameters:
  • sep (str) – the separator between taxa levels
  • names (list) – the column names for the new columns split from field