View source: R/taxonomy-file.R
| read_taxonomy_file | R Documentation |
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)
read_taxonomy_file(file, sep = "auto", header = FALSE, table_sep = ";")
file |
Character. Path to the taxonomy table file. |
sep |
Character. Column separator. |
header |
Logical. Whether the file has a header row. Default: |
table_sep |
Character. Separator between taxonomy ranks in the
second column (the taxonomy string). Default: |
Supports tab-delimited or comma-delimited files. Missing ranks are indicated
by empty values after the rank prefix (e.g., s__ for missing species).
A data.frame with columns:
Character. Tip labels from column 1.
Character. Domain (d__).
Character. Phylum (p__).
Character. Class (c__).
Character. Order (o__).
Character. Family (f__).
Character. Genus (g__).
Character. Species (s__).
Missing ranks are NA.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.