This function creates a circular phylogenetic tree visualization from GTDB-Tk results, with tips colored by specified taxonomic level. It can optionally represent only one genome per species.
plot_gtdb_tr(
gtdb_res,
tree,
tax_level = "Phylum",
represented = TRUE,
layout = "fan",
branch_size = 0.2,
color_na = "black"
)A ggplot object containing the phylogenetic tree visualization.
A data frame containing GTDB-Tk classification results, typically
the output from pre_gtdb_tk function.
A phylogenetic tree object (phylo class) containing all genomes.
Character specifying the taxonomic level for coloring tips. Default is "Phylum". Other options include "Class", "Order", "Family", "Genus", "Species".
Logical indicating whether to include only one representative genome per species. Default is TRUE.
Character specifying the tree layout. Options include "fan", "circular", "rectangular", etc. Default is "fan".
Numeric value for branch line width. Default is 0.2.
Character specifying color for tips with missing taxonomic information. Default is "black".