Free Access Week - Data Engineering + BI
Data engineering and BI courses are free!
Free Access Week - Jun 2-8

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

TreeTools (version 1.4.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; 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,512

Version

1.4.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Martin R. Smith

Last Published

October 19th, 2020

Functions in TreeTools (1.4.0)

CompatibleSplits

Which splits are compatible?
ApeTime

Read modification time from 'ape' Nexus file
CladeSizes

Clade sizes
CladisticInfo

Cladistic information content of a tree
ConsensusWithout

Consensus without taxa
CharacterInformation

Character information content
ArtificialExtinction

Artificial Extinction
AddTip

Add a tip to a phylogenetic tree
AncestorEdge

Ancestral edge
CollapseNode

Collapse nodes on a phylogenetic tree
EdgeDistances

Distance between edges
NPartitionPairs

Distributions of tips consistent with a partition pair
GenerateTree

Generate pectinate, balanced or random trees
ExtractTaxa

Extract taxa from a matrix block
NJTree

Generate a neighbour joining tree
ListAncestors

List ancestors
Lobo.data

Data from Zhang et al. 2016
LeafLabelInterchange

Leaf label interchange
LabelSplits

Label splits
MRCA

Most recent common ancestor
MSTEdges

Minimum spanning tree
EnforceOutgroup

Generate a tree with a specific outgroup
NodeDepth

Distance of each node from tree exterior
Neworder

Reorder edges of a phylogenetic tree
MakeTreeBinary

Generate binary tree by collapsing polytomies
DoubleFactorial

Double factorial
DescendantEdges

Identify descendant edges
MatrixToPhyDat

Convert between matrices and phyDat objects
NRooted

Number of trees
NDescendants

Count descendants for each node in a tree
N1Spr

Number of trees one SPR step away
NTip

Number of leaves in a phylogenetic tree
DropTip

Drop tips from tree
ReadCharacters

Read phylogenetic characters from file
PairwiseDistances

Distances between each pair of trees
SplitInformation

Phylogenetic information content of splitting leaves into two partitions
ReadTntTree

Parse TNT Tree
SplitMatchProbability

Probability of matching this well
EdgeAncestry

Ancestors of an edge
RenumberTips

Renumber a tree's tips
Stemwardness

'Stemwardness' of a leaf
SplitsInBinaryTree

Maximum splits in an n-leaf tree
Renumber

Renumber a tree's nodes and tips
StringToPhyDat

Convert between strings and phyDat objects
TipsInSplits

Tips contained within splits
SingleTaxonTree

Generate a single taxon tree
NSplits

Number of distinct splits
SampleOne

Quickly sample
doubleFactorials

Double factorials
SortTree

Sort tree
Subsplit

Subset of a split on fewer leaves
TreesMatchingSplit

Number of trees matching a bipartition split
brewer

Brewer palettes
TreesMatchingTree

Number of trees containing a tree
Subtree

Extract a subtree
NewickTree

Write Newick Tree
RootTree

Root or unroot a phylogenetic tree
SupportColour

Colour for node support value
RootNode

Which node is a tree's root?
TipLabels

Extract tip labels
TotalCopheneticIndex

Total Cophenetic Index
SplitFrequency

Frequency of splits
.RandomParent

Random parent vector
UnrootedTreesMatchingSplit

Number of trees consistent with split
as.Splits

Convert object to Splits
as.Newick

Write a phylogenetic tree in Newick format
TrivialSplits

Identify and remove trivial splits
RightmostCharacter

Rightmost character of string
TreeIsRooted

Is tree rooted?
NodeOrder

Order of each node in a tree
NonDuplicateRoot

Non-duplicate root
RenumberTree

Reorder trees
TreeNumber

Unique integer indices for bifurcating tree topologies
unrootedKeys

Integer representing shape of a tree
print.TreeNumber

Print TreeNumber object
nRootedShapes

Number of rooted / unrooted tree shapes
match

Split matching
sapply64

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

Write morphological character matrix to TNT file
UnshiftTree

Add tree to start of list
logDoubleFactorials

Natural logarithms of double factorials
TreeTools-package

TreeTools