codecov CRAN Status Badge CRAN Downloads DOI Project Status: Active – – The project has reached a stable, usable state and is being actively developed.

‘TreeTools’ is an R package that provides efficient implementations of functions for the creation, modification and analysis of phylogenetic trees.

Applications include: generation of trees with specified shapes; analysis of tree shape; rooting of trees and extraction of subtrees; calculation and depiction of node support; calculation of ancestor-descendant relationships; import and export of trees from Newick, Nexus and TNT formats; and analysis of partitions and cladistic information.

It complements packages such as ‘ape’, ‘phangorn’ and ‘phytools’, aiming for efficient and robust implementations of functions, typically applied to unweighted trees (i.e. those without edge lengths).

Installation

Install and load the library from CRAN as follows:

Install the very latest version, which may be under development, with:

if (!require("devtools")) install.packages("devtools")
devtools::install_github("ms609/TreeTools")

Please note that the ‘TreeTools’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.