View source: R/ggtree_function_extensions.R
get_clade_nodes | R Documentation |
For a tree object with an associated set of clustering (e.g. phylogroups defined by fastANI, or clustering using fastbabs/PopPUNK), retrieve the mrca for those sets of tips alongside the fastbaps/PopPUNK cluster number, as a named vector list.
get_clade_nodes(tree, clusters_df)
tree |
Tree object, e.g. read in using ape::read.tree() |
clusters_df |
Dataframe with two columns: "strain", "cluster", where strain corresponds with tip-label |
Named vector list where the values are the internal node numbers, and the names are the cluster numbers.
get_clade_nodes(tree_object, clusters_dataframe)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.