arXiv:2608.23293q-bio.PEAug 2026

Manuscript Offprint

arXiv:2608.23293

Episode Clustering in Phylogenetic Networks

Paweł Górecki, Agnieszka Mykowiecka, Jarosław Paszek

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

The classical duplication episode clustering (EC) model introduced by Guigó et al. in the 1990s provides a foundational approach for inferring genomic duplication events crucial to understanding genome evolution. This model clusters single gene duplications from a collection of gene trees at locations in the species tree to minimize the total number of such locations, called duplication episodes. Here, we introduce NetEC, a novel extension of this problem to phylogenetic networks. To solve NetEC, we first develop a polynomial-time dynamic programming (DP) algorithm for testing whether a given set of network nodes can serve as episode locations. We then propose a main inference algorithm that utilizes this DP component to optimize the episode count; while the feasibility test runs in polynomial time, the full optimization has exponential worst-case complexity, and an optional heuristic mode is provided for larger instances. We also propose an extended episode analysis procedure that identifies additional genomic duplication candidates below reticulation nodes, complementing the main algorithm by resolving potential upward clustering of duplications induced by reticulation. We evaluate our method on simulated data and on an empirical Pandanales dataset comprising over 29,000 gene trees, demonstrating exact and accurate inference of genomic duplication events even in the presence of multiple reticulations.

Keywords: Genomic Duplication; Duplication Episode; Gene Tree; Species Tree; Phylogenetic Network

1 Introduction

Phylogenetic networks have emerged as a robust framework for representing complex evolutionary relationships [8] that traditional tree-based models cannot adequately capture. Unlike phylogenetic trees, networks accommodate reticulate events such as hybridization, horizontal gene transfer, and recombination, creating multiple pathways of inheritance.

Whole-genome duplications (WGDs) represent particularly significant evolutionary events that have shaped eukaryotic genomes [11, 16]. In phylogenetic networks, WGDs introduce additional complexity: hybridization following independent WGDs in parental lineages generates intricate patterns of gene family evolution, as exemplified by polyploid plant and fungal lineages [21, 24].

The concept of duplication episode clustering, developed initially for tree-based phylogenies [4], aims to identify genomic locations where multiple gene duplications co-occurred, suggesting large-scale duplication events like WGDs. Informally, an episode is a node in the species phylogeny to which one or more gene duplications are assigned; episode clustering seeks the

*Corresponding author: gorecki@mimuw.edu.pl smallest set of such nodes explaining all observed duplications across a collection of gene trees. While episode clustering for trees has been extensively studied with efficient polynomial-time algorithms [1,12,17], its extension to phylogenetic networks remains largely unexplored. The tree-based formulations, including interval models [17], unrooted variants [18], and path-constrained clustering [9], all rely on the fundamental assumption of a unique evolutionary path between any two nodes, an assumption violated in networks.

Extending episode clustering to networks introduces several theoretical and computational challenges. First, the presence of reticulation nodes means that gene duplications can be assigned to episodes along multiple alternative evolutionary histories, creating an exponential space of possible episode configurations. Second, the biological interpretation of episodes in networks requires careful consideration: should episodes be defined on the network structure itself, or on the individual tree-like scenarios (display trees) embedded within the network? Third, the computational complexity of network reconciliation suggests that episode clustering in networks may require fundamentally different algorithmic strategies than those used in tree-based approaches.

In our recent work [6], we introduced a polynomial-time dynamic programming algorithm using three-valued logic for episode feasibility testing in the tree-based setting. Here we extend this approach to phylogenetic networks, where multiple alternative evolutionary histories through reticulation nodes complicate episode assignment.

In this work, we formalize NetEC (Network Episode Clustering), the problem of identifying duplication episodes in phylogenetic networks, and introduce the first algorithmic solution for it in the presence of reticulate evolution. Building on [6], we extend the three-valued logic dynamic programming approach to handle multiple evolutionary scenarios in networks. While the previous approach resolves uncertainty about gene-species leaf assignments, here we show how to resolve uncertainty about which evolutionary paths through reticulation nodes are compatible with observed duplication patterns. Our approach leverages unfolded networks, a transformation expanding a network into a tree-like structure representing all scenario choices, and formulates the problem using scenario functions that determine reticulation path choices.

The key contributions of this work are: (1) a formal definition of episode clustering for phylogenetic networks based on scenario-based gene-network reconciliation; (2) a polynomial-time algorithm for testing episode feasibility in networks via dynamic programming; (3) an exact algorithm for NetEC with practical heuristics for identifying optimal solutions; and (4) experimental validation demonstrating the method's effectiveness in detecting WGDs in simulated and real biological networks with complex reticulate histories.

References (22)