TreeNode 1.5.2
A library to manipulate phylogenetic trees
|
Contains methods to simulate coalescent trees. More...
Static Public Member Functions | |
static TreeNode | UnlabelledTree (int leafCount) |
Simulate an unlabelled coalescent tree. More... | |
static TreeNode | LabelledTree (IReadOnlyList< string > leafNames, TreeNode constraint=null) |
Simulate a labelled coalescent tree with the supplied tip labels. More... | |
static TreeNode | LabelledTree (int leafCount, TreeNode constraint=null) |
Simulate a labelled coalescent tree with the specified number of terminal nodes. More... | |
Contains methods to simulate coalescent trees.
Definition at line 12 of file CoalescentTree.cs.
|
static |
Simulate a labelled coalescent tree with the specified number of terminal nodes.
leafCount | The number of terminal nodes in the tree. Their names will be in the form t1, t2, ..., tN , where N is leafCount . |
constraint | A tree to constrain the sampling. The tree produced by this method will be compatible with this tree. The constraint tree can be multifurcating. Please note that, as the constraint is applied at every step while growing the tree, this will bias the sampled topology distribution. |
Definition at line 212 of file CoalescentTree.cs.
|
static |
Simulate a labelled coalescent tree with the supplied tip labels.
leafNames | The labels for the terminal nodes of the tree. |
constraint | A tree to constrain the sampling. The tree produced by this method will be compatible with this tree. The constraint tree can be multifurcating. Please note that, as the constraint is applied at every step while growing the tree, this will bias the sampled topology distribution. |
Definition at line 38 of file CoalescentTree.cs.
|
static |
Simulate an unlabelled coalescent tree.
leafCount | The number of terminal nodes in the tree. |
Definition at line 19 of file CoalescentTree.cs.