Learn R Programming

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

TreeTools (version 1.4.4)

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; 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 (Maddison et al. 1997) , and TNT formats; and analysis of splits and cladistic information.

Copy Link

Version

Install

install.packages('TreeTools')

Monthly Downloads

1,855

Version

1.4.4

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Martin R. Smith

Last Published

April 20th, 2021

Functions in TreeTools (1.4.4)

CompatibleSplits

Which splits are compatible?
ApeTime

Read modification time from 'ape' Nexus file
CladisticInfo

Cladistic information content of a tree
CladeSizes

Clade sizes
CharacterInformation

Character information content
ArtificialExtinction

Artificial Extinction
ConsensusWithout

Consensus without taxa
CollapseNode

Collapse nodes on a phylogenetic tree
AddTip

Add a tip to a phylogenetic tree
AncestorEdge

Ancestral edge
DropTip

Drop tips from tree
DoubleFactorial

Double factorial
DescendantEdges

Identify descendant edges
EdgeAncestry

Ancestors of an edge
EnforceOutgroup

Generate a tree with a specific outgroup
EdgeDistances

Distance between edges
LabelSplits

Label splits
LeafLabelInterchange

Leaf label interchange
NJTree

Generate a neighbour joining tree
NPartitionPairs

Distributions of tips consistent with a partition pair
ExtractTaxa

Extract taxa from a matrix block
NRooted

Number of trees
MakeTreeBinary

Generate binary tree by collapsing polytomies
GenerateTree

Generate pectinate, balanced or random trees
NSplits

Number of distinct splits
MatrixToPhyDat

Convert between matrices and phyDat objects
MSTEdges

Minimum spanning tree
MRCA

Most recent common ancestor
NodeOrder

Order of each node in a tree
ListAncestors

List ancestors
NTip

Number of leaves in a phylogenetic tree
Lobo.data

Data from Zhang et al. 2016
StringToPhyDat

Convert between strings and phyDat objects
RootNode

Which node is a tree's root?
RootTree

Root or unroot a phylogenetic tree
NDescendants

Count descendants for each node in a tree
Neworder

Reorder edges of a phylogenetic tree
Renumber

Renumber a tree's nodes and tips
N1Spr

Number of trees one SPR step away
RenumberTips

Renumber a tree's tips
NodeDepth

Distance of each node from tree exterior
ReadCharacters

Read phylogenetic characters from file
NewickTree

Write Newick Tree
ReadTntTree

Parse TNT Tree
SplitsInBinaryTree

Maximum splits in an n-leaf tree
RenumberTree

Reorder trees
SplitFrequency

Frequency of splits
SortTree

Sort tree
TipsInSplits

Tips contained within splits
SupportColour

Colour for node support value
TipLabels

Extract tip labels
TreeTools-package

TreeTools
unrootedKeys

Integer representing shape of a tree
SplitInformation

Phylogenetic information content of splitting leaves into two partitions
PairwiseDistances

Distances between each pair of trees
NonDuplicateRoot

Non-duplicate root
SampleOne

Quickly sample
SingleTaxonTree

Generate a single taxon tree
as.multiPhylo

Convert object to multiPhylo class
TotalCopheneticIndex

Total Cophenetic Index
brewer

Brewer palettes
TrivialSplits

Identify and remove trivial splits
.RandomParent

Random parent vector
RightmostCharacter

Rightmost character of string
sapply64

Apply a function that returns 64-bit integers over a list or vector
nRootedShapes

Number of rooted / unrooted tree shapes
TreeIsRooted

Is tree rooted?
SplitMatchProbability

Probability of matching this well
UnrootedTreesMatchingSplit

Number of trees consistent with split
UnshiftTree

Add tree to start of list
TreeNumber

Unique integer indices for bifurcating tree topologies
Stemwardness

'Stemwardness' of a leaf
logDoubleFactorials

Natural logarithms of double factorials
TreesMatchingSplit

Number of trees matching a bipartition split
WriteTntCharacters

Write morphological character matrix to TNT file
Subtree

Extract a subtree
Subsplit

Subset of a split on fewer leaves
print.TreeNumber

Print TreeNumber object
as.Splits

Convert object to Splits
as.Newick

Write a phylogenetic tree in Newick format
doubleFactorials

Double factorials
match

Split matching
TreesMatchingTree

Number of trees containing a tree