GTDB labels internal nodes with their support value and, where one or
more GTDB taxa start, their names ("100:f__Enterobacteriaceae",
"99.0:c__Bacilli; o__Lactobacillales", or just "49.0"). This
splits them.
Arguments
- tree
A tree from
gtdb_tree_read()orgtdb_tree_prune().
Value
A tibble with one row per internal node: node (its number in
tree), label (as in the tree), support (numeric), taxa (e.g.
"c__Bacilli; o__Lactobacillales", NA if none), taxon (the lowest of
them, without its prefix, e.g. "Lactobacillales") and rank (its
rank, e.g. "order").
Examples
tree <- gtdb_tree_read(gtdb_example("tree"))
nodes <- gtdb_node_labels(tree)
nodes[!is.na(nodes$taxa), ]
#> # A tibble: 174 × 6
#> node label support taxa taxon rank
#> <int> <chr> <dbl> <chr> <chr> <chr>
#> 1 562 7:d__Bacteria 7 d__Bacte… Bact… doma…
#> 2 565 100:p__Pseudomonadota 100 p__Pseud… Pseu… phyl…
#> 3 566 97:c__Gammaproteobacteria 97 c__Gamma… Gamm… class
#> 4 568 3:o__Pseudomonadales; f__Pseudomonadaceae 3 o__Pseud… Pseu… fami…
#> 5 569 96:g__Aquipseudomonas 96 g__Aquip… Aqui… genus
#> 6 571 1:o__Enterobacterales 1 o__Enter… Ente… order
#> 7 572 0:f__Enterobacteriaceae 0 f__Enter… Ente… fami…
#> 8 574 60:g__Klebsiella 60 g__Klebs… Kleb… genus
#> 9 582 17:g__Escherichia 17 g__Esche… Esch… genus
#> 10 583 58:g__Citrobacter_A 58 g__Citro… Citr… genus
#> # ℹ 164 more rows