Learn R Programming

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

TreeDist (version 2.7.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) ; 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 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

583

Version

2.7.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Martin R. Smith

Last Published

October 25th, 2023

Functions in TreeDist (2.7.0)

Entropy

Entropy in bits
SplitEntropy

Entropy of two splits
MappingQuality

Faithfulness of mapped distances
KMeansPP

k-means++ clustering
KendallColijn

Kendall–Colijn distance
MatchingSplitDistance

Matching Split Distance
TreeDistPlot

Plot a simple tree
SplitSharedInformation

Shared information content of two splits
.MASTSizeEdges

Calculate MAST size from edge matrices.
TreeDist-package

TreeDist: Distances between Phylogenetic Trees
.PairMean

Mean of two numbers
PathDist

Path distance
AllSplitPairings

Variation of information for all split pairings
Plot3

Pseudo-3D plotting
CalculateTreeDistance

Wrapper for tree distance calculations
NyeSimilarity

Nye et al. (2006) tree comparison
NormalizeInfo

Normalize information against total present in both starting trees
VisualizeMatching

Visualise a matching
LAPJV

Solve linear assignment problem using LAPJV
ReportMatching

List clades as text
SPRDist

Approximate Subtree Prune and Regraft distance
cluster-statistics

Cluster size statistics
SpectralEigens

Eigenvalues for spectral clustering
Robinson-Foulds

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

Maximum Agreement Subtree size
.TreeDistance

Calculate distance between trees, or lists of trees
median.multiPhylo

Median of a set of trees
StartParallel

Calculate distances in parallel
SplitsCompatible

Are splits compatible?
TreeDistance

Information-based generalized Robinson–Foulds distances
TreeInfo

Information content of splits within a tree
GeneralizedRF

Generalized Robinson–Foulds distance
JaccardRobinsonFoulds

Jaccard–Robinson–Foulds metric
CompareAll

Distances between each pair of trees
MeilaVariationOfInformation

Use variation of clustering information to compare pairs of splits
NNIDist

Approximate Nearest Neighbour Interchange distance
MapTrees

Graphical user interface for mapping distances and analysing tree space
MSTSegments

Add minimum spanning tree to plot, colouring by stress