Extract a subtree from the synthetic tree
Extract a subtree from the synthetic tree from an Open Tree node id.
tol_subtree(ott_id = NULL, node_id = NULL, label_format = NULL, file, ...)
ott_id |
Numeric. The ott id of the node in the tree that should serve as the root of the tree returned. |
node_id |
Character. The node id of the node in the tree that should serve as the root of the tree returned. |
label_format |
Character. Defines the label type; one of
“ |
file |
If specified, the function will write the subtree to a file in newick format. |
... |
additional arguments to customize the API call (see
|
Given a node, return the subtree of the synthetic tree descended from that node. The start node may be specified using either a node id or an ott id, but not both. If the specified node is not in the synthetic tree an error will be returned. There is a size limit of 25000 tips for this method.
If no value is specified to the file
argument
(default), a phylogenetic tree of class phylo
.
Otherwise, the function returns invisibly a logical indicating
whether the file was successfully created.
## Not run: res <- tol_subtree(ott_id=241841) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.