panther-tree | R Documentation |
The PANTHER Project handles a modified version of newick tree files which,
besides of the tree structure, includes the type of node and ancestor
labels. This function is a wrapper of ape::read.tree()
.
read_panther(x, tree.reader = ape::read.tree, ...)
read.panther(x, tree.reader = ape::read.tree, ...)
x |
Character scalar. Full path to the panther file. |
tree.reader |
Function that will be used to read the tree file.
It can be either |
... |
Further arguments passed to |
A list consisting of a data.frame and a phylo
object. The
data.frame has the following columns:
branch_length |
Numeric vector. Length of the branch to its parent node. |
type |
Character vector. Can be either |
ancestor |
Character vector. Name of the ancestor. |
The nodeids can be identified using the rownames.
Other reading:
read_nhx()
,
read_pli()
path <- system.file("tree.tree", package="aphylo")
read_panther(path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.