Learn R Programming

⚠️There's a newer version (1.13.1) of this package.Take me there.

TreeTools (version 1.0.0)

Create, Modify and Analyse Phylogenetic Trees

Description

Efficient implementations of functions for the creation, modification and analysis of phylogenetic trees. Applications include: generation of trees with specified shapes; 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 (Maddison et al. 1997) , and TNT formats; and analysis of partitions and cladistic information.

Copy Link

Version

Install

install.packages('TreeTools')

Monthly Downloads

1,384

Version

1.0.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Martin R. Smith

Last Published

June 8th, 2020

Functions in TreeTools (1.0.0)

EnforceOutgroup

Generate a tree with a specific outgroup
DoubleFactorial

Double factorial
NodeOrder

Order of each node in a tree
EdgeDistances

Distance between edges
NJTree

Generate a neighbour joining tree
SplitMatchProbability

Probability of matching this well
NDescendants

Count descendants for each node in a tree
SplitInformation

Phylogenetic information content of splitting leaves into two partitions
EdgeAncestry

Ancestors of an edge
NodeDepth

Distance of each node from tree exterior
Subsplit

Subset of a split on fewer leaves
DropTip

Drop tips from tree
NonDuplicateRoot

Non-duplicate root
StringToPhyDat

Convert between strings and phyDat objects
TreeIsRooted

Is tree rooted?
N1Spr

Number of trees one SPR step away
MatrixToPhyDat

Convert between matrices and phyDat objects
TreeNumber

Unique integer indices for bifurcating tree topologies
NSplits

Number of distinct splits
SampleOne

Quickly sample
ExtractTaxa

Extract taxa from a matrix block
SingleTaxonTree

Generate a single taxon tree
TreeTools-package

TreeTools
UnshiftTree

Add tree to start of list
NTip

Number of leaves in a phylogenetic tree
DescendantEdges

Identify descendant edges
unrootedKeys

Integer representing shape of a tree
GenerateTree

Generate pectinate, balanced or random trees
as.Newick

Write a phylogenetic tree in Newick format
Renumber

Renumber a tree's nodes and tips
match

Split matching
TreesMatchingTree

Number of trees containing a tree
TreesMatchingSplit

Number of trees matching a bipartition split
LabelSplits

Label splits
Subtree

Extract a subtree
nRootedShapes

Number of rooted / unrooted tree shapes
LeafLabelInterchange

Leaf label interchange
ListAncestors

List ancestors
RenumberTips

Renumber a tree's tips
NRooted

Number of trees
SplitFrequency

Frequency of splits
Neworder

Reorder edges of a phylogenetic tree
NPartitionPairs

Distributions of tips consistent with a partition pair
as.Splits

Convert object to Splits
TipsInSplits

Tips contained within splits
TotalCopheneticIndex

Total Cophenetic Index
SortTree

Sort tree
NewickTree

Write Newick Tree
Lobo.data

Data from Zhang et al. 2016
MRCA

Most recent common ancestor
brewer

Brewer palettes
RootNode

Which node is a tree's root?
ReadCharacters

Read phylogenetic characters from file
ReadTntTree

Parse TNT Tree
TrivialSplits

Identify and remove trivial splits
SupportColour

Colour for node support value
RootTree

Root or unroot a phylogenetic tree
UnrootedTreesMatchingSplit

Number of trees consistent with split
TipLabels

Extract tip labels
RenumberTree

Reorder trees
print.TreeNumber

Print TreeNumber object
doubleFactorials

Double factorials
RightmostCharacter

Rightmost character of string
logDoubleFactorials

Natural logarithms of double factorials
CompatibleSplits

Which splits are compatible?
CollapseNode

Collapse nodes on a phylogenetic tree
CladeSizes

Clade sizes
CladisticInfo

Cladistic information content
ConsensusWithout

Consensus without taxa
AncestorEdge

Ancestral edge
AddTip

Add a tip to a phylogenetic tree
ApeTime

Read modification time from 'ape' Nexus file
CharacterInformation

Character information content