|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_TREE_DRAWING_FUNCTIONS_H_
2 #define GENESIS_TREE_DRAWING_FUNCTIONS_H_
58 std::string
const& newick_filename
72 std::string
const& phyloxml_filename
77 std::vector<utils::Color>
const& color_per_branch,
78 std::string
const& phyloxml_filename
83 std::vector<double>
const& value_per_branch,
84 utils::ColorMap
const& color_map,
85 utils::ColorNormalization
const& color_norm,
86 std::string
const& phyloxml_filename
100 std::string
const& nexus_filename
105 std::vector<utils::Color>
const& color_per_branch,
106 std::string
const& nexus_filename
111 std::vector<double>
const& value_per_branch,
112 utils::ColorMap
const& color_map,
113 utils::ColorNormalization
const& color_norm,
114 std::string
const& nexus_filename
146 std::vector<utils::Color>
const& color_per_branch
152 std::vector<double>
const& value_per_branch,
160 std::vector<utils::Color>
const& color_per_branch,
168 std::vector<utils::Color>
const& color_per_branch,
171 std::vector<utils::SvgGroup>
const& node_shapes,
172 std::vector<utils::SvgGroup>
const& edge_shapes
178 std::vector<utils::Color>
const& color_per_branch,
179 std::vector<utils::Color>
const& color_list,
180 std::vector<std::string>
const& color_labels
190 std::string
const& svg_filename
196 std::vector<utils::Color>
const& color_per_branch,
197 std::string
const& svg_filename
203 std::vector<double>
const& value_per_branch,
206 std::string
const& svg_filename
212 std::vector<utils::Color>
const& color_per_branch,
215 std::string
const& svg_filename
221 std::vector<utils::Color>
const& color_per_branch,
224 std::vector<utils::SvgGroup>
const& node_shapes,
225 std::vector<utils::SvgGroup>
const& edge_shapes,
226 std::string
const& svg_filename
232 std::vector<utils::Color>
const& color_per_branch,
233 std::vector<utils::Color>
const& color_list,
234 std::vector<std::string>
const& color_labels,
235 std::string
const& svg_filename
241 #endif // include guard
LayoutShape
Shape of the tree for drawing, either circular or rectangular.
Store a list of colors and offer them as a map for values in range [ 0.0, 1.0 ].
Collection of params for simple tree to svg wrapper functions.
LayoutType
Type of tree for drawing, either phylogram or cladogram.
Base class for color normalization.
void write_tree_to_newick_file(CommonTree const &tree, std::string const &newick_filename)
Write a newick file containing a tree.
void write_color_tree_to_phyloxml_file(CommonTree const &tree, std::vector< utils::Color > const &color_per_branch, std::string const &phyloxml_filename)
utils::SvgDocument get_tree_svg_document(CommonTree const &tree, LayoutParameters const ¶ms)
Class for representing phylogenetic trees.
void write_tree_to_phyloxml_file(CommonTree const &tree, std::string const &phyloxml_filename)
Write a phyloxml file containing a tree.
Tree CommonTree
Alias for a Tree with data types CommonNodeData and CommonEdgeData.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
void write_tree_to_nexus_file(CommonTree const &tree, std::string const &nexus_filename)
Write a nexus file containing a tree.
utils::SvgDocument get_color_tree_svg_document(CommonTree const &tree, LayoutParameters const ¶ms, std::vector< utils::Color > const &color_per_branch)
void write_color_tree_to_svg_file(CommonTree const &tree, LayoutParameters const ¶ms, std::vector< utils::Color > const &color_per_branch, std::string const &svg_filename)
void write_tree_to_svg_file(CommonTree const &tree, LayoutParameters const ¶ms, std::string const &svg_filename)
void write_color_tree_to_nexus_file(CommonTree const &tree, std::vector< utils::Color > const &color_per_branch, std::string const &nexus_filename)