bioRxiv Science⌕ Search

bioRxiv · 10.64898/2026.03.19.712918

Ancestral state reconstruction with discrete characters using deep learning

Abstract

Ancestral state reconstruction is a classical problem of broad relevance in phylogenetics. Likelihood-based methods for reconstructing ancestral states under discrete character models, such as Markov models, have proven extremely useful, but only work so long as the assumed model yields a tractable likelihood function. Unfortunately, extending a simple but tractable phylogenetic model to possess new, but biologically realistic, properties often results in an intractable likelihood, preventing its use in standard modeling tasks, including ancestral state reconstruction. The rapid advancement of deep learning offers a potential alternative to likelihood-based inference of ancestral states, particularly for models with intractable likelihoods. In this study, we modify the phylogenetic deep learning software O_SCPLOWPHYDDLEC_SCPLOW to conduct ancestral state reconstruction. We evaluate O_SCPLOWPHYDDLEC_SCPLOWs performance under various methodological and modeling conditions, while comparing to Bayesian inference when possible. For simple models and small trees, its performance resembles the performance of Bayesian inference, but worsens as tree size increases. While O_SCPLOWPHYDDLEC_SCPLOW still performs adequately for more complex models, such as speciation and extinction models, the estimates differ more from Bayesian inference in comparison with simpler models. Lastly, we use O_SCPLOWPHYDDLEC_SCPLOW to infer ancestral states for two empirical datasets, one of the ancestral ranges of a subclade of the genus Liolaemus and ancestral locations for sequences from the 2014 Sierra Leone Ebola virus disease outbreak.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Nagel, A. A., Landis, M. J.. 2026-03-21. Ancestral state reconstruction with discrete characters using deep learning. https://doi.org/10.64898/2026.03.19.712918. https://biorxiv.science/record/biorxiv%3A10.64898%2F2026.03.19.712918/ancestral-state-reconstruction-with-discrete-characters-using-deep-learning

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite bioRxiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related preprints

Specificity-subunit truncation drives repeated loss of Type I restriction in multi-host Streptococcus agalactiae

Type I restriction-modification systems determine which foreign DNA a bacterial lineage will accept, and the functional state of this system across Streptococcus agalactiae has not been described. Five S. agalactiae isolates from farmed tilapia, human clinical infection and water buffalo were sequenced using Oxford Nanopore R10.4.1 chemistry, closed to single chromosomes, and characterised for base-resolution methylation, restriction-modification content and mobile-element composition. Methylation was adenine-dominated, two genomes carrying abundant 6-methyladenine and three almost none. The difference lay not in the Type I methyltransferase, intact at 487 to 526 amino acids in all five genomes, nor in the presence of an hsdS gene, but in the integrity of the specificity subunit. The three non-methylating genomes retained a 64 amino acid stub at the operon position and a distant 196 amino acid copy that structural modelling aligned to one target-recognition domain of the full-length subunit. Across 1,742 host-labelled public genomes the components were unevenly and not independently distributed, an hsdS gene occurring in 99.3%, the methyltransferase in 72.2%, the restriction subunit in 36.2% and a full-length specificity subunit in 20.9%. The most frequent state, in 45.5% of genomes, was a methyltransferase with no restriction subunit, a distribution consistent with progressive loss and not with horizontal acquisition of an intact operon. Loss was fixed within lineages and occurred in at least 51 sequence types across all three host classes. Genomes with the least functional system were predominantly fish-associated, and these lineages carried tetracycline and macrolide resistance on Tn916 and Tn5253 elements.

evolutionary biology↗

Evolution of RNA Editing in Drosophila melanogaster Populations Adapted to Novel Thermal Environments

RNA editing can modify the transcriptome and proteome without changing the underlying DNA sequence, but its contribution to adaptation among natural populations remains poorly understood. Here, we investigated RNA editing in three geographically distant pairs of cold- and warm-adapted populations of Drosophila melanogaster reared at a common temperature. Using 138 RNA-seq libraries, we identified 15 high-confidence editing sites in larvae, 38 in pupae, and 73 in adults. We analyzed population differentiation in editing frequency, identifying six larval, 10 pupal and 21 adult edits as potentially driven by local adaptation. These candidates were enriched at nonsynonymous sites in adults. A differentiated edit at the sodium/potassium pump Atp, yielding a radical protein-altering change, was an adult stage outlier in two of the three independent population pairs. We also found multiple outlier editing sites at the chromatin-binding non-coding RNA gene roX1, and in untranslated regions (UTRs) of other genes - indicating a range of mechanisms by which RNA editing could influence adaptation to novel environments. After accounting for population structure, editing was associated with host-gene expression at 16 of 71 tested adult sites, and a subset of edits (including at Atp and roX1) covaried with thousands of other genes. Our results identify protein recoding and regulatory variation as potential contributions of RNA editing to adaptive evolution across multiple populations and developmental stages.

evolutionary biology↗

Positive assortment can impair the evolution of public goods

Positive assortment, the tendency of cooperators to interact with each other, is the standard explanation for cooperation: kin selection and spatial structure both work by bringing cooperators together, and relatedness is the usual measure of how much they do. This view rests largely on models with linear, additive benefits, in which every act of cooperation has the same effect. Most biological public goods, however, are nonlinear, from microbial enzymes and the growth factors of cancer cells to collective action in animal and human groups: their benefit requires a minimum number of producers, levels off, or becomes harmful in excess. I show that for such goods assortment can hinder cooperation, and I give an exact condition for when it does. Even when every additional producer increases the benefit, higher relatedness can reduce cooperation when groups are founded by a few individuals or, in social insects, colonies are founded by a queen with few mates; it cannot when groups are clonal or grow by reproduction and immigration. When the good is harmful in excess, assortment can reduce cooperation even when additional production would be best for the group or increase it beyond what is best. Relatedness alone is therefore not enough to predict how much cooperation evolves: one also needs to know how the benefit changes with the number of producers and how groups form.

evolutionary biology↗