Learn R Programming

TreeDist (version 2.12.0)

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

829

Version

2.12.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Martin R. Smith

Last Published

February 13th, 2026

Functions in TreeDist (2.12.0)

KendallColijn

Kendall–Colijn distance
MSTSegments

Add minimum spanning tree to plot, colouring by stress
MappingQuality

Faithfulness of mapped distances
MASTSize

Maximum Agreement Subtree size
JaccardRobinsonFoulds

Jaccard–Robinson–Foulds metric
MatchingSplitDistance

Matching Split Distance
MapTrees

Graphical user interface for mapping distances and analysing tree space
KMeansPP

k-means++ clustering
LAPJV

Solve linear assignment problem using LAPJV
MeilaVariationOfInformation

Use variation of clustering information to compare pairs of splits
SPRDist

Approximate the Subtree Prune and Regraft distance
Plot3

Pseudo-3D plotting
ReduceTrees

Collapse areas of agreement between two trees
ReportMatching

List clades as text
NyeSimilarity

Nye et al. (2006) tree comparison
PathDist

Path distance
NormalizeInfo

Normalize tree distances
NNIDist

Approximate Nearest Neighbour Interchange distance
Robinson-Foulds

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

Eigenvalues for spectral clustering
TreeDistPlot

Plot a simple tree
TreeInfo

Information content of splits within a tree
SplitSharedInformation

Shared information content of two splits
SplitsCompatible

Are splits compatible?
VisualizeMatching

Visualize a matching
SplitEntropy

Entropy of two splits
TreeDist-package

TreeDist: Distances between Phylogenetic Trees
StartParallel

Calculate distances in parallel
TreeDistance

Information-based generalized Robinson–Foulds distances
clone

Clone / duplicate an object clone() physically duplicates objects
median.multiPhylo

Median of a set of trees
cluster-statistics

Cluster size statistics
.TreeDistance

Calculate distance between trees, or lists of trees
.PairMean

Mean of two numbers
.ThreeDPlotServer

Helper function for shiny 3D plotting
.MASTSizeEdges

Calculate MAST size from edge matrices.
entropy_int

Calculate entropy of integer vector of counts
HierarchicalMutualInformation

Hierarchical mutual information
Entropy

Entropy in bits
CompareAll

Distances between each pair of trees
Islands

Find islands from distance matrix
HierarchicalMutualInfo

Hierarchical Mutual Information
HPart

Hierarchical partition structure
AllSplitPairings

Variation of information for all split pairings
CalculateTreeDistance

Wrapper for tree distance calculations
GeneralizedRF

Generalized Robinson–Foulds distance
HH

Self hierarchical mutual information