A library for working with phylogenetic and population genetic data.
v0.32.0
tree/drawing/functions.hpp File Reference

Go to the source code of this file.

Classes

struct  LayoutParameters
 Collection of params for simple tree to svg wrapper functions. More...
 

Namespaces

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

Functions

utils::SvgDocument get_color_tree_svg_document (CommonTree const &tree, LayoutParameters const &params, std::vector< double > const &value_per_branch, utils::ColorMap const &color_map, utils::ColorNormalization const &color_norm)
 
utils::SvgDocument get_color_tree_svg_document (CommonTree const &tree, LayoutParameters const &params, std::vector< utils::Color > const &color_per_branch)
 
utils::SvgDocument get_color_tree_svg_document (CommonTree const &tree, LayoutParameters const &params, std::vector< utils::Color > const &color_per_branch, std::vector< utils::Color > const &color_list, std::vector< std::string > const &color_labels)
 
utils::SvgDocument get_color_tree_svg_document (CommonTree const &tree, LayoutParameters const &params, std::vector< utils::Color > const &color_per_branch, utils::ColorMap const &color_map, utils::ColorNormalization const &color_norm)
 
utils::SvgDocument get_color_tree_svg_document (CommonTree const &tree, LayoutParameters const &params, std::vector< utils::Color > const &color_per_branch, utils::ColorMap const &color_map, utils::ColorNormalization const &color_norm, std::vector< utils::SvgGroup > const &node_shapes, std::vector< utils::SvgGroup > const &edge_shapes)
 
utils::SvgDocument get_tree_svg_document (CommonTree const &tree, LayoutParameters const &params)
 
void write_color_tree_to_nexus_file (CommonTree const &tree, std::vector< double > const &value_per_branch, utils::ColorMap const &color_map, utils::ColorNormalization const &color_norm, std::string const &nexus_filename)
 
void write_color_tree_to_nexus_file (CommonTree const &tree, std::vector< utils::Color > const &color_per_branch, std::string const &nexus_filename)
 
void write_color_tree_to_phyloxml_file (CommonTree const &tree, std::vector< double > const &value_per_branch, utils::ColorMap const &color_map, utils::ColorNormalization const &color_norm, std::string const &phyloxml_filename)
 
void write_color_tree_to_phyloxml_file (CommonTree const &tree, std::vector< utils::Color > const &color_per_branch, std::string const &phyloxml_filename)
 
void write_color_tree_to_svg_file (CommonTree const &tree, LayoutParameters const &params, std::vector< double > const &value_per_branch, utils::ColorMap const &color_map, utils::ColorNormalization const &color_norm, std::string const &svg_filename)
 
void write_color_tree_to_svg_file (CommonTree const &tree, LayoutParameters const &params, std::vector< utils::Color > const &color_per_branch, std::string const &svg_filename)
 
void write_color_tree_to_svg_file (CommonTree const &tree, LayoutParameters const &params, std::vector< utils::Color > const &color_per_branch, std::vector< utils::Color > const &color_list, std::vector< std::string > const &color_labels, std::string const &svg_filename)
 
void write_color_tree_to_svg_file (CommonTree const &tree, LayoutParameters const &params, std::vector< utils::Color > const &color_per_branch, utils::ColorMap const &color_map, utils::ColorNormalization const &color_norm, std::string const &svg_filename)
 
void write_color_tree_to_svg_file (CommonTree const &tree, LayoutParameters const &params, std::vector< utils::Color > const &color_per_branch, utils::ColorMap const &color_map, utils::ColorNormalization const &color_norm, std::vector< utils::SvgGroup > const &node_shapes, std::vector< utils::SvgGroup > const &edge_shapes, std::string const &svg_filename)
 
void write_tree_to_newick_file (CommonTree const &tree, std::string const &newick_filename)
 Write a newick file containing a tree. More...
 
void write_tree_to_nexus_file (CommonTree const &tree, std::string const &nexus_filename)
 Write a nexus file containing a tree. More...
 
void write_tree_to_phyloxml_file (CommonTree const &tree, std::string const &phyloxml_filename)
 Write a phyloxml file containing a tree. More...
 
void write_tree_to_svg_file (CommonTree const &tree, LayoutParameters const &params, std::string const &svg_filename)