substituteClade function
substituteClade(TimeTree baseTree, TimeTree cladeTree, TimeTreeNode node, Double time, String nodeLabel)
Substitute a clade in a tree with a given node and time, as well as the label of the clade root node. The original child clade would be replaced by the give tree.
Parameters
- TimeTree baseTree - the tree that we are going to add another tree onto.
- TimeTree cladeTree - the tree that we are going to add it on the base tree
- TimeTreeNode node - the node with the branch that the branch tree would be add on to.
- Double time - (optional) the mutation happen time that the branch tree would be add onto the base tree
- String nodeLabel - the name of added branch node.
Return type
Examples
- substituteClade.lphy