Skip to contents

Get the GTDB trees

Download and read the GTDB bacterial and archaeal reference trees of the release your sylph database was built from.

gtdb_tree_url()
URLs of the GTDB reference trees
gtdb_tree_download()
Download the GTDB reference trees
gtdb_tree_read()
Read GTDB reference trees
gtdb_tree_combine()
Join GTDB trees into one
gtdb_node_labels()
Split GTDB node labels into support and taxa

Prepare the tree

Keep only the genomes in your data, read their GTDB lineage from the tree, and build the phylogenetic correlation matrix for a model.

gtdb_tree_prune()
Prune a GTDB tree to the genomes in your data
gtdb_tip_taxonomy()
GTDB taxonomy of each tip, from the tree's clade names
gtdb_tree_vcv()
Phylogenetic covariance matrix of a tree

Plot model output on the tree

Summarise posterior draws per taxon and draw them on the tree, highlighting the taxa above or below a threshold.

gtdb_summarise_draws()
Summarise posterior draws per taxon
gtdb_tree_plot()
Plot taxon-level estimates on the GTDB tree
gtdb_tree_graph()
Join taxon-level data to a GTDB tree, as a graph

Example data

The GTDB r232 trees pruned to the sylph2lab example genomes, those detections, and simulated posterior draws.

gtdb_example()
Paths to the example data installed with gtdb3h

Package

gtdb3h gtdb3h-package
gtdb3h: plot taxon-level results on the GTDB phylogeny