Reads taxonomy information from a two-column table file where:
Column 1: Tip labels (must match tree tip labels)
Column 2: Taxonomy strings in GTDB format (e.g.,
d__Archaea;p__Thermoproteota;c__Korarchaeia)
Arguments
- file
Character. Path to the taxonomy table file.
- sep
Character. Column separator.
"auto"auto-detects tab or comma. Default:"auto".- header
Logical. Whether the file has a header row. Default:
FALSE.- table_sep
Character. Separator between taxonomy ranks in the second column (the taxonomy string). Default:
";".
Value
A data.frame with columns:
- label
Character. Tip labels from column 1.
- domain
Character. Domain (d__).
- phylum
Character. Phylum (p__).
- class
Character. Class (c__).
- order
Character. Order (o__).
- family
Character. Family (f__).
- genus
Character. Genus (g__).
- species
Character. Species (s__).
Missing ranks are NA.