A library for working with phylogenetic and population genetic data.
v0.27.0
taxonomy/functions/tree.hpp File Reference
#include "genesis/tree/tree.hpp"
#include <string>
#include <unordered_map>

Go to the source code of this file.

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::taxonomy
 

Functions

tree::Tree taxonomy_to_tree (std::unordered_map< std::string, Taxopath > const &taxon_map, bool keep_singleton_inner_nodes=false, bool keep_inner_node_names=false, int max_level=-1)
 Turn a list of Taxa into a (possibly multifurcating) Tree. More...
 
tree::Tree taxonomy_to_tree (Taxonomy const &taxonomy, bool keep_singleton_inner_nodes=false, bool keep_inner_node_names=false, int max_level=-1)
 Turn a Taxonomy into a (possibly multifurcating) Tree. More...
 
tree::Tree taxonomy_to_tree (Taxonomy const &taxonomy, std::unordered_map< std::string, Taxopath > const &extra_taxa, bool keep_singleton_inner_nodes=false, bool keep_inner_node_names=false, int max_level=-1, bool add_extra_taxa_parents=true)
 Turn a Taxonomy into a (possibly multifurcating) Tree, and allow to add extra tips to it. More...