gtdb3h draws tree figures for metagenomic studies profiled with
sylph against the Genome
Taxonomy Database (GTDB), picking up where
sylph2lab (sylph_aggregate())
leaves off. It does not fit models: it prepares the tree for a
phylogenetic model fitted elsewhere, and plots that model's taxon-level
output. Its core functions are:
gtdb_tree_download(),gtdb_tree_read()get and read the GTDB bacterial and archaeal trees of the release the sylph database was built from.
gtdb_tree_prune()keep only the genomes in your data, keeping GTDB clade names.
gtdb_tree_vcv()the phylogenetic correlation matrix, for a phylogenetic random effect in a model.
gtdb_summarise_draws()one row per taxon from a model's posterior draws.
gtdb_tree_plot()the tree with tips filled by a taxon-level estimate, highlighting and labelling taxa above or below a threshold.
Details
An example tree (GTDB release 232, pruned to the 560 genomes sylph
detected in the 'sylph2lab' example profiles), those detections, and
simulated posterior draws are installed with the package; see
gtdb_example().