A list with the following elements:
subtreeA new tree of class "phylo", containing the subtree descending from the focal node. This tree will be rooted, with the new root being the focal node.
new2old_tipInteger vector of length Ntips_kept (=number of tips in the extracted subtree) with values in 1,..,Ntips, mapping tip indices of the subtree to tip indices in the original tree. In particular, tree$tip.label[new2old_tip]
will be equal to subtree$tip.label
.
new2old_nodeInteger vector of length Nnodes_kept (=number of nodes in the extracted subtree) with values in 1,..,Nnodes, mapping node indices of the subtree to node indices in the original tree.
For example, new2old_node[1]
is the index that the first node of the subtree had within the original tree. In particular, tree$node.label[new2old_node]
will be equal to subtree$node.label
(if node labels are available).
new2old_edgeInteger vector of length Nedges_kept (=number of edges in the extracted subtree), with values in 1,..,Nedges, mapping edge indices of the subtree to edge indices in the original tree. In particular, tree$edge.length[new2old_edge]
will be equal to subtree$edge.length
(if edge lengths are available).