|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_TREE_MASS_TREE_PHYLO_FACTOR_COLORS_H_
2 #define GENESIS_TREE_MASS_TREE_PHYLO_FACTOR_COLORS_H_
40 #include <unordered_set>
67 std::vector<PhyloFactor>
const& factors,
68 size_t max_factor = std::numeric_limits<std::size_t>::max()
138 std::vector<PhyloFactor>
const& factors,
201 std::vector<PhyloFactor>
const& factors,
202 size_t num_factors = 0,
209 #endif // include guard
std::vector< utils::Color > phylo_factor_single_factor_colors(Tree const &tree, std::vector< PhyloFactor > const &factors, size_t factor_index, PhyloFactorSingleColors colors)
Return a color for each edge indicating its role in a single phylogenetic factor.
Tree MassTree
Alias for a Tree that stores masses on its TreeEdges.
utils::Color previous_factors
Color for the edges that have been factored out before (earlier factors in the greedy search).
utils::Color base_edges
Color for the edges towards the root of the first phylo factor.
std::vector< Color > const & color_list_set1()
Color palette set1.
Class for representing phylogenetic trees.
utils::Color primary_edges
Color for the edges towards the root that have been used in this phylo factor.
std::vector< utils::Color > phylo_factor_clade_colors(Tree const &tree, std::vector< PhyloFactor > const &factors, size_t num_factors, PhyloFactorCladeColors colors)
Return a color for each edge, indicating which factor (phylogenetic unit, clade) it belongs to.
utils::Color factor_edge
Color for the edge of that phylo factor.
utils::Color factor_edges
Color for the "winning" edges of phylo factors.
std::vector< size_t > phylo_factor_edge_indices(std::vector< PhyloFactor > const &factors, size_t max_factor)
Get a list of all edges that have factored out by phylogenetic_factorization().
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
Store a set of colors for making visualizations of the clades of all phylo factors.
utils::Color neutral_edges
Color for the edges that have not been used in this phylo factor.
Store a set of colors for making visualizations of individual phylo factors.
utils::Color secondary_edges
Color for the edges away from the root that have been used in this phylo factor.
std::vector< utils::Color > clade_colors
Colors for the sets of edges away from the root that have been split by the phylo factors.