TL;DR
This paper introduces larch, a novel C++ software that efficiently maps the vast landscape of optimal phylogenetic trees. By representing collections of optimal trees as a compact data structure (MADAG), larch enables a directed search that can "cross valleys" to discover more diverse and potentially more parsimonious trees than traditional methods.
What Problem Does This Paper Address?
Phylogenetic inference, the process of reconstructing evolutionary relationships, often yields not just one, but many equally "optimal" trees for a given dataset. This is particularly true for closely related sequences. However, current methods typically return only a single tree, potentially missing important evolutionary signals encoded in the diversity of optimal solutions. Finding this entire ensemble of optimal trees is computationally challenging, as it's an extension of already NP-hard problems. Existing approaches often struggle to explore beyond local optima or require extensive computational resources. This paper addresses the need for a method that can efficiently explore and represent this complex "optimality landscape" of trees.
Methods
The core of larch lies in its novel data structure and search algorithm:
- Mutation Annotated Directed Acyclic Graph (MADAG): This structure combines the strengths of two existing concepts:
- Mutation Annotated Tree (MAT): Efficiently stores a single tree's evolutionary history by annotating edges with mutations, rather than storing full sequences at each node.
-
History Directed Acyclic Graph (hDAG): Can represent large families of optimal trees. The MADAG uses mutation-level edge annotations (like MAT) within a DAG structure to compactly store many optimal histories, including their parsimony information.
-
Directed Tree Search Algorithm:
larchemploys a "sample-optimize-merge" loop: - Sample: A history (tree) is sampled from the current MADAG.
- Optimize: The sampled history is optimized using
matOptimize, a parallelized SPR (subtree prune and regraft) search. Crucially,larchintegrates a novel scoring mechanism that considers topological novelty alongside parsimony. This allows the search to explore trees that might be slightly less parsimonious but topologically distinct, helping to "cross valleys" in the optimality landscape. - Merge: The optimized history is merged back into the MADAG, expanding the representation of optimal trees.
This approach allows for parallel processing of thousands of SPR moves and a systematic exploration of the tree space, guided by both parsimony and topological diversity.
Datasets
The authors evaluated larch on 11 viral datasets, primarily obtained from the Atlas of Viral Adaptation project. These datasets vary in size, with the number of leaves (taxa) ranging from 19 (HPIV_2) to over 588,000 (20B, related to SARS-CoV-2). The paper also mentions using datasets for Dengue, Ebola, Hepatitis, Rotavirus, West Nile, and various Influenza and Parainfluenza viruses.
Key Insights and Ideas
- Topological Novelty as a Search Driver: The most significant insight is that prioritizing topological novelty (how different a new tree is from existing ones) alongside parsimony is crucial for effective exploration. This "valley-crossing" approach allows the search to escape local optima and discover a wider range of optimal trees.
- MADAG Enables Compact Representation: The MADAG structure is key to handling the massive number of optimal trees that can exist, making it feasible to store and manipulate these collections.
- Diverse Optimality Landscapes: The study reveals that the "space" of optimal trees is not uniform. Datasets can exhibit single, well-defined "plateaux" of similar trees, or multiple distinct clusters ("plateaux") separated by topological differences.
- Sampling Suboptimal Histories Can Be Beneficial: Counterintuitively, sampling histories that are not strictly optimal (e.g., "novel" histories) as starting points for the search can lead to finding more optimal histories overall.
- Ambiguities Matter: Preserving sequence ambiguities in the data, rather than immediately disambiguating them, can be important for a more complete exploration of the optimal history space.
Key Results
larchconsistently finds trees with equal or better parsimony scores thanmatOptimize, and in some cases, discovers more parsimonious trees.- The method can represent an enormous number of optimal histories. For example, one run generated over 10^29 histories.
- The "score novelty or parsimony" criterion significantly outperforms "score parsimony change" alone, leading to a median proportional increase of ~20% in the number of optimal histories found.
- Sampling "novel" histories as starting points for the search yields more optimal histories than sampling strictly optimal ones across most datasets.
- The analysis of optimal history spaces revealed diverse structures, including single clusters, multiple distinct clusters, and varying densities.
larchdemonstrates effective global exploration, as starting with a single tree or an ensemble of trees yields similar results.- The software is computationally efficient, capable of running on a standard laptop for many datasets.
Limitations and Future Work
- Likelihood-Based Analysis: The authors note that while their approach is successful for parsimony, an analogous approach for likelihood-based analysis would be more complex, as the DAG used in previous likelihood methods might include suboptimal trees. They suggest it would be interesting to explore
larchfor likelihood-based criteria. - Computational Cost: While efficient, exploring extremely large datasets can still be computationally intensive, especially when aiming for a comprehensive representation of all optimal histories.
- Future Work: The paper suggests extending
larchto explore tree space under a likelihood-based criterion. Further investigation into the structure of optimal history spaces, including their density and clustering, is also a promising avenue. The authors also highlight the potential of their MADAG structure for systematic exploration and for developing new ways to describe collections of optimal histories.
Summary updated