A library for working with phylogenetic and population genetic data.
placement/function/operators.hpp File Reference
#include "genesis/placement/placement_tree.hpp"
#include <iosfwd>
#include <string>

Go to the source code of this file.


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


using MassTree = Tree
 Alias for a Tree that stores masses on its TreeEdges. More...


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