A Vector Representation for Phylogenetic Trees
Cedric Chauve, Caroline Colijn, Louxin Zhang
TL;DR
The paper tackles the challenge of efficiently representing and comparing large phylogenetic trees. It introduces a vector encoding of rooted binary trees on $n$ taxa as a length-$2n$ sequence with each taxon appearing twice, and defines a novel HOP rearrangement operator whose distance can be computed in near-linear time using a Longest Common Subsequence variant. The approach yields a one-to-one tree–vector correspondence, demonstrates storage advantages over Newick, and shows the HOP distance tracks SPR-based dissimilarity more closely than RF, with extensions to polytomies and tree-child networks. The work suggests practical benefits for scalable tree inference, sampling, and potentially accelerating machine learning-based phylogenetic methods, while highlighting ordering-dependence and avenues for mHOP-based improvement.
Abstract
Good representations for phylogenetic trees and networks are important for optimizing storage efficiency and implementation of scalable methods for the inference and analysis of evolutionary trees for genes, genomes and species. We introduce a new representation for rooted phylogenetic trees that encodes a binary tree on n taxa as a vector of length 2n in which each taxon appears exactly twice. Using this new tree representation, we introduce a novel tree rearrangement operator, called a HOP, that results in a tree space of diameter n and a quadratic neighbourhood size. We also introduce a novel metric, the HOP distance, which is the minimum number of HOPs to transform a tree into another tree. The HOP distance can be computed in near-linear time, a rare instance of a tree rearrangement distance that is tractable. Our experiments show that the HOP distance is better correlated to the Subtree-Prune-and-Regraft distance than the widely used Robinson-Foulds distance. We also describe how the novel tree representation we introduce can be further generalized to tree-child networks.
