A toolkit for working with phylogenetic data.
v0.20.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
placement/function/operators.hpp File Reference
#include "genesis/placement/placement_tree.hpp"
#include <iosfwd>
#include <string>

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
 
 genesis::tree
 

Typedefs

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

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_default_tree_to_placement_tree (tree::DefaultTree const &source_tree)
 Convert a DefaultTree into a PlacementTree. More...
 
std::pair< std::vector
< tree::MassTree >
, std::vector< double >> 
convert_sample_set_to_mass_trees (SampleSet const &sample_set)
 Convert all Samples in a SampleSet to tree::MassTrees. More...
 
std::pair< tree::MassTree, double > convert_sample_to_mass_tree (Sample const &sample)
 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...