A toolkit for working with phylogenetic data.
v0.24.0
heat_tree.hpp
Go to the documentation of this file.
1 #ifndef GENESIS_TREE_DRAWING_HEAT_TREE_H_
2 #define GENESIS_TREE_DRAWING_HEAT_TREE_H_
3 
4 /*
5  Genesis - A toolkit for working with phylogenetic data.
6  Copyright (C) 2014-2019 Lucas Czech and HITS gGmbH
7 
8  This program is free software: you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation, either version 3 of the License, or
11  (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program. If not, see <http://www.gnu.org/licenses/>.
20 
21  Contact:
22  Lucas Czech <lucas.czech@h-its.org>
23  Exelixis Lab, Heidelberg Institute for Theoretical Studies
24  Schloss-Wolfsbrunnenweg 35, D-69118 Heidelberg, Germany
25 */
26 
41 
42 #include <string>
43 #include <vector>
44 
45 namespace genesis {
46 namespace tree {
47 
48 // =================================================================================================
49 // SVG Functions
50 // =================================================================================================
51 
53 {
56  bool ladderize = true;
57  std::vector<utils::Color> color_per_branch;
59 
61  std::vector<std::string> column_labels;
62 };
63 
65  HeatTreeParameters const& params
66 );
67 
69  HeatTreeParameters const& params,
70  utils::ColorMap const& matrix_color_map,
71  utils::ColorNormalization const& matrix_color_norm
72 );
73 
75  HeatTreeParameters const& params,
76  utils::ColorMap const& matrix_color_map,
77  utils::ColorNormalization const& matrix_color_norm,
78  utils::ColorMap const& tree_color_map,
79  utils::ColorNormalization const& tree_color_norm
80 );
81 
82 } // namespace tree
83 } // namespace genesis
84 
85 #endif // include guard
utils::SvgDocument heat_tree(HeatTreeParameters const &params)
Definition: heat_tree.cpp:140
Store a list of colors and offer them as a map for values in range [ 0.0, 1.0 ].
Definition: map.hpp:61
Container namespace for all symbols of genesis in order to keep them separate when used as a library...
Header of Color class.
std::vector< std::string > column_labels
Definition: heat_tree.hpp:61
std::vector< utils::Color > color_per_branch
Definition: heat_tree.hpp:57
Class for representing phylogenetic trees.
Definition: tree/tree.hpp:97
utils::Matrix< utils::Color > matrix
Definition: heat_tree.hpp:60
Base class for color normalization.
LayoutType
Type of tree for drawing, either phylogram or cladogram.
Definition: layout_base.hpp:62