Learn R Programming

TreeDist (version 2.11.1)

Calculate and Map Distances Between Phylogenetic Trees

Description

Implements measures of tree similarity, including information-based generalized Robinson-Foulds distances (Phylogenetic Information Distance, Clustering Information Distance, Matching Split Information Distance; Smith 2020) ; Jaccard-Robinson-Foulds distances (Bocker et al. 2013) , including the Nye et al. (2006) metric ; the Matching Split Distance (Bogdanowicz & Giaro 2012) ; the Hierarchical Mutual Information (Perotti et al. 2015) ; Maximum Agreement Subtree distances; the Kendall-Colijn (2016) distance , and the Nearest Neighbour Interchange (NNI) distance, approximated per Li et al. (1996) . Includes tools for visualizing mappings of tree space (Smith 2022) , for identifying islands of trees (Silva and Wilkinson 2021) , for calculating the median of sets of trees, and for computing the information content of trees and splits.

Copy Link

Version

Install

install.packages('TreeDist')

Monthly Downloads

4,072

Version

2.11.1

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Martin R. Smith

Last Published

October 13th, 2025

Functions in TreeDist (2.11.1)

KendallColijn

Kendall–Colijn distance
MatchingSplitDistance

Matching Split Distance
KMeansPP

k-means++ clustering
NNIDist

Approximate Nearest Neighbour Interchange distance
JaccardRobinsonFoulds

Jaccard–Robinson–Foulds metric
ReportMatching

List clades as text
NormalizeInfo

Normalize tree distances
SPRDist

Approximate the Subtree Prune and Regraft (SPR) distance.
MapTrees

Graphical user interface for mapping distances and analysing tree space
MappingQuality

Faithfulness of mapped distances
SpectralEigens

Eigenvalues for spectral clustering
ReduceTrees

Collapse areas of agreement between two trees
Plot3

Pseudo-3D plotting
VisualizeMatching

Visualize a matching
clone

Clone / duplicate an object clone() physically duplicates objects
TreeDist-package

TreeDist: Distances between Phylogenetic Trees
TreeDistPlot

Plot a simple tree
cluster-statistics

Cluster size statistics
TreeInfo

Information content of splits within a tree
.MASTSizeEdges

Calculate MAST size from edge matrices.
median.multiPhylo

Median of a set of trees
TreeDistance

Information-based generalized Robinson–Foulds distances
NyeSimilarity

Nye et al. (2006) tree comparison
SplitSharedInformation

Shared information content of two splits
SplitEntropy

Entropy of two splits
Robinson-Foulds

Robinson–Foulds distances, with adjustments for phylogenetic information content
entropy_int

Calculate entropy of integer vector of counts
PathDist

Path distance
StartParallel

Calculate distances in parallel
SplitsCompatible

Are splits compatible?
.PairMean

Mean of two numbers
.TreeDistance

Calculate distance between trees, or lists of trees
GeneralizedRF

Generalized Robinson–Foulds distance
Islands

Find islands from distance matrix
Entropy

Entropy in bits
AllSplitPairings

Variation of information for all split pairings
HierarchicalMutualInfo

Hierarchical Mutual Information
CompareAll

Distances between each pair of trees
HPart

Hierarchical partition structure
MeilaVariationOfInformation

Use variation of clustering information to compare pairs of splits
MASTSize

Maximum Agreement Subtree size
MSTSegments

Add minimum spanning tree to plot, colouring by stress
HH

Self hierarchical mutual information
CalculateTreeDistance

Wrapper for tree distance calculations
HierarchicalMutualInformation

Hierarchical mutual information
LAPJV

Solve linear assignment problem using LAPJV