A library for working with phylogenetic and population genetic data.
v0.27.0
placement/function/operators.cpp File Reference

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::placement
 

Functions

double add_sample_to_mass_tree (Sample const &smp, double const sign, double const scaler, tree::MassTree &target)
 Helper function to copy masses from a Sample to a MassTree. More...
 
bool compatible_trees (PlacementTree const &lhs, PlacementTree const &rhs)
 Return whether two PlacementTrees are compatible. More...
 
bool compatible_trees (Sample const &lhs, Sample const &rhs)
 Return whether the PlacementTrees of two Samples are compatible. More...
 
PlacementTree convert_common_tree_to_placement_tree (tree::CommonTree const &source_tree)
 Convert a CommonTree into a PlacementTree. More...
 
std::pair< tree::TreeSet, std::vector< double > > convert_sample_set_to_mass_trees (SampleSet const &sample_set, bool normalize)
 Convert all Samples in a SampleSet to tree::MassTrees. More...
 
std::pair< tree::MassTree, double > convert_sample_to_mass_tree (Sample const &sample, bool normalize)
 Convert a Sample to a tree::MassTree. More...
 
std::ostream & operator<< (std::ostream &out, Sample const &smp)
 Print a table of all Pqueries with their Placements and Names to the stream. More...
 
std::string print_tree (Sample const &smp)
 Return a simple view of the Tree of a Sample with information about the Pqueries on it. More...