A library for working with phylogenetic and population genetic data.
v0.27.0
phylo_factor_colors.cpp File Reference
#include "genesis/tree/mass_tree/phylo_factor_colors.hpp"
#include <cassert>
#include <stdexcept>

Go to the source code of this file.

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...