bioRxivEvolutionary BiologyPreprint
Ancestree: unified likelihood inference of ancestral alleles under supplied or inferred genealogies
Abstract
Inferring ancestral states--determining, at each polymorphic site, which allele is ancestral and which derived--underpins many downstream population-genetic analyses, from selection scans and the unfolded site-frequency spectrum to demographic inference. However, no existing tool uniformly supports the full range of relevant inputs: plain variant data or ancestral recombination graphs (ARGs), with or without outgroups, while accommodating poly-allelic and recurrently-mutated sites. Here we present Ancestree, a likelihood-based engine that unifies these inputs within a single framework and returns full posteriors over the four nucleotide states at every site. It runs in three modes: a fixed-tree mode that assumes a single topology across sites and co-infers the per-branch substitution rates by maximum likelihood; an ARG mode that reads a different local tree at each site directly from a supplied ancestral recombination graph; and a local-tree mode that instead samples those local trees from the genotype data via a pairwise-coalescent HMM, needing no pre-existing ARG. On simulated data, the genealogy-based modes (ARG and local-tree) are more accurate and scale better, and remain robust under outgroup configurations that violate the fixed-tree assumption. Outgroups themselves remain difficult to replace: per-site inference accuracy on ingroup-polymorphic sites is markedly limited without them, and improves substantially with a single outgroup. The hardest sites are those fixed for the derived allele within the ingroup, which carry no within-ingroup signal and so need several sufficiently deep outgroups to recover, yet these are also highly informative downstream, carrying the high-frequency divergence signal on which selection and adaptation analyses often depend. Ancestree is available at github.com/Sendrowski/Ancestree.
- Citations
- 0
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
- Inferring the probability of the derived versus the ancestral allelic state at a polymorphic site
P. D. Keightley, B. Jackson·bioRxiv·Jan 30, 2018
- A model-free method for genealogical inference without phasing and its application for topology weighting
Simon H. Martin·GeneticsPeer-reviewed·Sep 8, 2025
- A likelihood-based framework for demographic inference from genealogical trees
Caoqi Fan, Jordan Li Cahoon, … Charleston W. K. Chiang·Nature GeneticsPeer-reviewed·Mar 20, 2025
- Estimating time to the common ancestor for a beneficial allele
Joel Smith, Graham Coop, … John Novembre·bioRxiv·Aug 24, 2016
- A forest is more than its trees: haplotypes and inferred ARGs
Halley Fritze, Nathaniel S. Pope, … Peter L. Ralph·GeneticsPeer-reviewed·Sep 23, 2025
- The distribution of waiting distances in ancestral recombination graphs and its applications
Y. Deng, Y. S. Song, R. Nielsen·bioRxiv·Dec 24, 2020