Learn R Programming

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

TreeTools (version 0.1.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; 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 partition information.

Copy Link

Version

Install

install.packages('TreeTools')

Monthly Downloads

1,738

Version

0.1.4

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Martin R. Smith

Last Published

March 4th, 2020

Functions in TreeTools (0.1.4)

ApeTime

Ape Time
AncestorEdge

Ancestral edge
ConsensusWithout

Consensus without taxa
BalancedTree

Generate a Balanced Tree
CollapseNode

Collapse nodes on a phylogenetic tree
CharacterInformation

Character information content
AllAncestors

List all ancestral nodes
CladeSizes

Clade sizes
AddTip

Add a tip to a phylogenetic tree
TipsInSplits

Tips contained within splits
ExtractTaxa

Extract taxa from a matrix block
CompatibleSplits

Which splits are compatible?
EdgeDistances

Distance between edges
EnforceOutgroup

Force taxa to form an outgroup
DescendantEdges

Descendant Edges
RenumberTips

Renumber a tree's tips
Neworder

Reorder edges of a phylogenetic tree
.DecodeRaw

Decode Splits objects
Lobo.phy

Data from Zhang et al. 2016 in phyDat format
print.TreeNumber

Print TreeNumber object
Renumber

Renumber a tree's nodes and tips
Lobo.data

Raw data from Zhang et al. 2016
SupportColour

Support colour
MRCA

Most Recent Common Ancestor
NRooted

Number of rooted/unrooted trees
NewickTree

Newick Tree
NTip

Number of tips in a phylogenetic tree
MatrixToPhyDat

Matrix to phyDat
DoubleFactorial

Double Factorial
NSplits

Number of distinct partitions
TreesMatchingSplit

Number of trees matching a bipartition split
SampleOne

Quick sample
N1Spr

Number of trees one SPR step away
ReadTntTree

Parse TNT Tree
SplitFrequency

Frequency of splits
NJTree

Neighbour Joining Tree
NPartitionPairs

Distributions of tips consistent with a partition pair
EdgeAncestry

Edge ancestry
RandomTree

Generate a random tree topology
TrivialSplits

Are splits trivial?
Subsplit

Subset of a split on fewer taxa
NonDuplicateRoot

Non-duplicate root
PectinateTree

Generate a Pectinate Tree
Reorder

Reorder trees
SplitMatchProbability

Probability of matching this well
match.Splits

Match splits
ReadCharacters

Read characters from Nexus file
logDoubleFactorials

Natural logarithms of double factorials
TreeNumber

Unique integer indices for bifurcating tree topologies
SplitInformation

Information content of a split
RootTree

Root a phylogenetic tree
UnrootedTreesMatchingSplit

Number of trees consistent with split
UnshiftTree

Add Tree to Start of List
as.Newick

Write a phylogenetic tree in Newick format
TreeShape

Integer representing shape of a tree
RightmostCharacter

Rightmost character of string
Subtree

Extract subtree
TreeTools-package

'TreeTools' is an R package that provides functions for creating, modifying and analysing phylogenetic trees. 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).
StringToPhyDat

String to phyDat
PhyToString

phyDat to String
TipLabels

Extract tip labels
doubleFactorials

Double factorials
in.Splits

Splits in Splits object
SingleTaxonTree

Single Taxon Tree
SortTree

Sort tree
TreeIsRooted

Is tree rooted?
RenumberTree

Renumber a tree in preorder
as.Splits

As splits
brewer

Brewer palettes