| read_tree_auto | R Documentation |
Intended for use as a stable library API by external workflows (e.g., Snakemake/Nextflow).
read_tree_auto(filepath, tree_index = NULL, multi_tree_mode = "error")
filepath |
Path to tree file (.tre, .nwk, .newick, .nexus, .nex, .treefile, .xml) |
tree_index |
Integer. Index of tree to use from multiPhylo objects (e.g., BEAST posterior). Default: NULL (will use multi_tree_mode to determine behavior). |
multi_tree_mode |
Character. How to handle multiple trees in a file. Options:
|
Newick labels longer than 500 characters are automatically truncated to
400 characters plus a _RCLADE_TRUNC suffix (with a warning), because
ape's Newick parser aborts the whole R process on labels longer than
~512 characters on Linux. Truncated labels may no longer match external
taxonomy files or sequence IDs; shorten labels upstream if exact matching
is required.
phylo object (or multiPhylo if multi_tree_mode = "all" or "split")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.