A library for working with phylogenetic and population genetic data.
v0.32.0
phylo_factor_colors.hpp File Reference
#include "genesis/tree/mass_tree/phylo_factor.hpp"
#include "genesis/utils/color/color.hpp"
#include "genesis/utils/color/list_qualitative.hpp"
#include <functional>
#include <limits>
#include <unordered_set>
#include <vector>

Go to the source code of this file.

Classes

struct  PhyloFactorCladeColors
 Store a set of colors for making visualizations of the clades of all phylo factors. More...
 
struct  PhyloFactorSingleColors
 Store a set of colors for making visualizations of individual phylo factors. More...
 

Namespaces

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

Functions

std::vector< utils::Color > phylo_factor_clade_colors (Tree const &tree, std::vector< PhyloFactor > const &factors, size_t num_factors=0, PhyloFactorCladeColors colors={})
 Return a color for each edge, indicating which factor (phylogenetic unit, clade) it belongs to. More...
 
std::vector< size_t > phylo_factor_edge_indices (std::vector< PhyloFactor > const &factors, size_t max_factor=std::numeric_limits< std::size_t >::max())
 Get a list of all edges that have factored out by phylogenetic_factorization(). More...
 
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. More...