|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_PLACEMENT_FUNCTION_SAMPLE_SET_H_
2 #define GENESIS_PLACEMENT_FUNCTION_SAMPLE_SET_H_
51 Sample *
find_sample( SampleSet & sample_set, std::string
const& name );
56 Sample
const*
find_sample( SampleSet
const& sample_set, std::string
const& name );
65 Sample
merge_all( SampleSet
const& sample_set );
93 tree::TreeSet
tree_set( SampleSet
const& sample_set );
120 std::ostream&
operator << ( std::ostream& out, SampleSet
const& sample_set );
125 #endif // include guard
tree::TreeSet tree_set(SampleSet const &sample_set)
Return a TreeSet containing all the trees of the SampleSet.
Sample * find_sample(SampleSet &sample_set, std::string const &name)
Get the first Sample in a SampleSet that has a given name, or nullptr if not found.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
Sample merge_all(SampleSet const &sample_set)
Returns a Sample where all Samples of a SampleSet have been merged into.
tree::Tree average_branch_length_tree(SampleSet const &sample_set)
Return the Tree that has edges with the average branch length of the respective edges of the Trees in...
size_t total_pquery_count(SampleSet const &sample_set)
Return the total number of Pqueries in the Samples of the SampleSet.
void adjust_to_average_branch_lengths(SampleSet &sample_set)
Set the branch lengths of all Samples in the sample_set to the respecitve average branch length of th...
void adjust_branch_lengths(Sample &sample, tree::Tree const &source)
Take the branch lengths of the source Tree and use them as the new branch lengths of the sample.
bool all_identical_trees(SampleSet const &sample_set)
Returns true iff all Trees of the Samples in the set are identical.
std::ostream & operator<<(std::ostream &out, Sample const &smp)
Print a table of all Pqueries with their Placements and Names to the stream.