powered by
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().
ape::read.tree()
read_panther(x, tree.reader = ape::read.tree, ...)read.panther(x, tree.reader = ape::read.tree, ...)
read.panther(x, tree.reader = ape::read.tree, ...)
A list consisting of a data.frame and a phylo object. The data.frame has the following columns:
phylo
Numeric vector. Length of the branch to its parent node.
Character vector. Can be either "S" (speciation), "D" (duplication), or "T" (horizontal transfer).
"S"
"D"
"T"
Character vector. Name of the ancestor.
The nodeids can be identified using the rownames.
Character scalar. Full path to the panther file.
Function that will be used to read the tree file. It can be either ape::read.tree or rncl::read_newick_phylo.
ape::read.tree
rncl::read_newick_phylo
Further arguments passed to ape::read.tree().
Other reading: read_nhx(), read_pli()
read_nhx()
read_pli()
path <- system.file("tree.tree", package="aphylo") read_panther(path)
Run the code above in your browser using DataLab