get_within_species_cluster_mrcas | R Documentation |
For a tree object with an associated set of clustering (e.g. phylogroups defined by fastANI), and a finer set of clustering (e.g. multi-level clustering of bacterial genomes using fastbaps/PopPUNK), where all of the clusters in the latter clustering are sets entirely within the former clusters, retrieve the mrca for those sets of tips alongside the fastbaps/PopPUNK cluster number, as a named vector list.
get_within_species_cluster_mrcas(x, y, z)
x |
Dataframe with two columns: "strain","phylogroup", where strain corresponds with tip-label |
y |
Dataframe with two columns: "strain", "Cluster", where strain corresponds with tip-label |
z |
Tree object, where the tip-labels correspond with "strain" in x and y |
Named vector list where the values are the internal node numbers, and the names are the cluster numbers.
get_within_species_cluster_mrcas(x = phylogroups_dataframe, y = clusters_dataframe, z = ggtree_object)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.