SelNeTime: a python package inferring effective population size and selection intensity from genomic time series data
Open Access
- 21 May 2026
- journal article
- Published by Peer Community In in Peer Community Journal
- Vol. 6
Abstract
Genomic samples collected from a single population over several generations provide direct access to the genetic diversity changes occurring within a specific time period. This provides information about both demographic and adaptive processes acting on the population during that period. A common approach to analyze such data is to model observed allele counts in finite samples using a Hidden Markov Model (HMM) where hidden states are true allele frequencies over time (i.e. a trajectory). The HMM framework allows one to compute the full likelihood of the data, while accounting both for the stochastic evolution of population allele frequencies along time and for the noise arising from sampling a limited number of individuals at possibly spread out generations. Several such HMM methods have been proposed so far, differing mainly in the way they model the transition probabilities of the Markov chain. Following Paris et al. (2019a), we consider here the Beta with Spikes approximation, which avoids the computational issues associated to the Wright-Fisher model while still including fixation probabilities, in contrast to other standard approximations of this model like the Gaussian or Beta distributions. To facilitate the analysis and exploitation of genomic time series data, we present an improved version of Paris et al. (2019a) ‘s approach, denoted SelNeTime, whose computation time is drastically reduced and which accurately estimates effective population size (assuming no selection) or the selection intensity at each locus (given a previously estimated value of N). We also evaluate the performance of this method in realistic situations where selection is present and both demography and selection need to be inferred. SelNeTime is implemented in a user friendly python package, which can also easily simulate genomic time series data under a user-defined evolutionary model and sampling design.Keywords
All Related Versions
This publication has 19 references indexed in Scilit:
- The contribution of gene flow, selection, and genetic drift to five thousand years of human allele frequency changeProceedings of the National Academy of Sciences, 2024
- Timesweeper: accurately identifying selective sweeps using population genomic time seriesGenetics, 2023
- Whole-genome sequencing of cryopreserved resources from French Large White pigs at two distinct sampling times reveals strong signatures of convergent and divergent selection between the dam and sire linesGenetics Selection Evolution, 2023
- Direct detection of natural selection in Bronze Age BritainGenome Research, 2022
- Array programming with NumPyNature, 2020
- Estimating the genome-wide contribution of selection to temporal allele frequency changeProceedings of the National Academy of Sciences, 2020
- Tracking Five Millennia of Horse Management with Extensive Ancient Genome Time SeriesCell, 2019
- Elucidating the molecular architecture of adaptation via evolve and resequence experimentsNature Reviews Genetics, 2015
- Consistency of estimators of population scaled parameters using composite likelihoodJournal of Mathematical Biology, 2006
- The Effect of Selection on Genetic VariabilityThe American Naturalist, 1971