Peer Community JournalGenomicsPeer-reviewed journal article
slendr: a framework for spatio-temporal population genomic simulations on geographic landscapes
Martin PetriD, Benjamin C. HalleriD, Peter L. RalphiD, Fernando RacimoiD
Abstract
One of the goals of population genetics is to understand how evolutionary forces shape patterns of genetic variation over time. However, because populations evolve across both time and space, most evolutionary processes also have an important spatial component, acting through phenomena such as isolation by distance, local mate choice, or uneven distribution of resources. This spatial dimension is often neglected, partly due to the lack of tools specifically designed for building and evaluating complex spatio-temporal population genetic models. To address this methodological gap, we present a new framework for simulating spatially-explicit genomic data, implemented in a new R package called slendr (www.slendr.net), which leverages a SLiM simulation back-end script bundled with the package. With this framework, the users can programmatically and visually encode spatial population ranges and their temporal dynamics (i.e., population displacements, expansions, and contractions) either on real Earth landscapes or on abstract custom maps, and schedule splits and gene-flow events between populations using a straightforward declarative language. Additionally, slendr can simulate data from traditional, non-spatial models, either with SLiM or using an alternative built-in coalescent msprime back end. Together with its R-idiomatic interface to the tskit library for tree-sequence processing and analysis, slendr opens up the possibility of performing efficient, reproducible simulations of spatio-temporal genomic data entirely within the R environment, leveraging its wealth of libraries for geospatial data analysis, statistics, and visualization. Here, we present the design of the slendr R package and demonstrate its features on several practical example workflows.
- assay: whole-genome sequencing
- research focus: benchmarking
- research focus: software / tool
- approach: simulation
- approach: experimental assay
- Citations
- 21
- FWCI
- 3.32
- Field percentile
- top 6%
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
- slimr: An R package for integrating data and tailor-made population genomic simulations over space and time
R. Dinnage, S. D. Sarre, … B. Gruber·bioRxiv·Aug 5, 2021
- SLiM 3: Forward genetic simulations beyond the Wright-Fisher model
B. C. Haller, P. W. Messer·bioRxiv·Sep 15, 2018
- Population genetics meets ecology: a guide to individual-based simulations in continuous landscapes
Elizabeth T. Chevy, Jiseon Min, … Peter L. Ralph·Ecology and EvolutionPeer-reviewed·Apr 1, 2025
- Efficient pedigree recording for fast population genetics simulation
Jerome Kelleher, Kevin Thornton, … Peter L. Ralph·PLoS Computational BiologyPeer-reviewed·Nov 1, 2018
- genomicSimulation: fast R functions for stochastic simulation of breeding programs
Kira Villiers, Eric G. Dinglasan, … Kai P. Voss‐Fels·G3 Genes Genomes GeneticsPeer-reviewed·Sep 2, 2022
- Resource-explicit interactions in spatial population models
S. E. Champer, B. Chae, … P. W. Messer·Methods in Ecology and EvolutionPeer-reviewed·Dec 1, 2024