MultiTypeTree Subtree
MTT_st_coal_node.Rd
Extracts a subtree (and associated sub-migration history) of a structured genealogy consisting of the parent branch of a coalescent event and a fixed number of generations of descendant branches
Usage
MTT_st_coal_node(
ED,
st_depth = 1,
node_indices = NodeIndicesC(ED),
selected_node = NA
)
Arguments
- ED
Extended data representation of phylogenetic tree and initial migration history
- st_depth
Number of generations below the selected coalescent node to include in the subtree
- node_indices
Vector of row indices corresponding to which row of ED corresponds to each node label
- selected_node
(optional) Selected coalescent node to use as centre of subtree