|
void | ancestral_Wright_Fisher_N (unsigned int value) |
|
template<typename Generator > |
tree_type | find_mrca (forest_type const &forest, time_type const &first_time, Generator &gen) const |
| Coalesce the given forest into a discrete time Wright-Fisher model.
|
|
std::string | treat (tree_type &tree) const |
| Visit the whole tree and builds its Newick formula.
|
|
|
template<typename F > |
static auto | make_forest (std::map< coord_type, unsigned int > const &sample_counts, time_type const &sampling_time, F get_name) |
| Make a forest respecting the policy from a geographic sample.
|
|
template<typename T , typename F1 , typename F2 > |
static auto | make_forest (std::vector< T > sample, time_type const &sampling_time, F1 get_location, F2 get_name) |
|
static auto | branch () |
| Get the functor interface required to branch a parent node to a child node.
|
|
static auto | init () |
| Get the functor interface required to initialize a node.
|
|
◆ branch()
template<typename Space , typename Time >
Get the functor interface required to branch a parent node to a child node.
- Returns
- A functor to forward to quetzal coalescence algorithms.
◆ find_mrca()
template<typename Space , typename Time >
template<typename Generator >
Coalesce the given forest into a discrete time Wright-Fisher model.
- Template Parameters
-
Generator | The type of random generator. |
- Parameters
-
forest | The forest to coalesce. |
first_time | The time at which coalescence begins |
gen | The random generator |
- Returns
- A single tree with root being the MRCA.
◆ init()
template<typename Space , typename Time >
Get the functor interface required to initialize a node.
- Returns
- A functor to forward to quetzal coalescence algorithms.
◆ make_forest()
template<typename Space , typename Time >
template<typename F >
Make a forest respecting the policy from a geographic sample.
- Template Parameters
-
F | the type of functor used to get the name of a tip. |
- Parameters
-
sample_counts | A map giving for each deme the number of sampled gene copies |
sampling_time | At what time the gene copies are sampled. |
get_name | functor fabricating a name for each tip node and according to two parameters: its deme location and the time of sampling. Signature should be equivalent to std::string f(coord_type const& x, time_type t) |
- Returns
- A forest compliant with the policy chosen.
◆ treat()
template<typename Space , typename Time >
Visit the whole tree and builds its Newick formula.
- Parameters
-
- Returns
- The newick formula of the tree.
The documentation for this class was generated from the following file: