TreeCluster: clustering biological sequences using phylogenetic trees
Metin BalabaniD, Niema MoshiriiD, Uyen MaiiD, Xingfan Jia, Siavash MirarabiD
Abstract
Clustering homologous sequences based on their similarity is a problem that appears in many bioinformatics applications. The fact that sequences cluster is ultimately the result of their phylogenetic relationships. Despite this observation and the natural ways in which a tree can define clusters, most applications of sequence clustering do not use a phylogenetic tree and instead operate on pairwise sequence distances. Due to advances in large-scale phylogenetic inference, we argue that tree-based clustering is under-utilized. We define a family of optimization problems that, given a (not necessarily ultrametric) tree, return the minimum number of clusters such that all clusters adhere to constraints on their heterogeneity. We study three specific constraints that limit the diameter of each cluster, the sum of its branch lengths, or chains of pairwise distances. These three versions of the problem can be solved in time that increases linearly with the size of the tree, a fact that has been known by computer scientists for two of these three criteria for decades. We implement these algorithms in a tool called TreeCluster, which we test on three applications: OTU picking for microbiome data, HIV transmission clustering, and divide-and-conquer multiple sequence alignment. We show that, by using tree-based distances, TreeCluster generates more internally consistent clusters than alternatives and improves the effectiveness of downstream applications. TreeCluster is available at https://github.com/niemasd/TreeCluster.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 194
- FWCI
- 4.97
- Field percentile
- top 3%
- Assay
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- PhytClust: Efficient and Optimal Monophyletic Partitioning of Rooted Phylogenetic Trees
Katyayni Ganesan, Elisa Billard, … Roland F. Schwarz·bioRxiv·Apr 27, 2026
- Clumps: A Sequential Clustering Approach to Partitioning Sets of Phylogenies with Non-Identical Leaf Sets
Ana Serra Silva, Mark Wilkinson·bioRxiv·Mar 18, 2025
- AncestralClust: Clustering of Divergent Nucleotide Sequences by Ancestral Sequence Reconstruction using Phylogenetic Trees
Lenore Pipes, Rasmus Nielsen·BioinformaticsPeer-reviewed·Oct 16, 2021
- Scalable distance-based phylogeny inference using divide-and-conquer
Lars Arvestad·bioRxiv·Oct 11, 2023
- SeqDistK: a Novel Tool for Alignment-free Phylogenetic Analysis
Xuemei Liu, Wen Li, … Li Charlie Xia·bioRxiv·Aug 16, 2021
- Growing Phylogenetic Trees Using Hierarchical Clustering
Onno Eberhard·bioRxiv·Feb 8, 2022