slimr: An R package for integrating data and tailor-made population genomic simulations over space and time
R. Dinnage, S. D. Sarre, R. P. Duncan, C. R. Dickman, S. V. Edwards, A. Greenville, G. Wardle, B. Gruber
Abstract
Software for realistically simulating complex population genomic processes is revolutionizing our understanding of evolutionary processes, and providing novel opportunities for integrating empirical data with simulations. However, the integration between simulation software and software designed for working with empirical data is currently not well developed. Here we present slimr, an R package designed to create a seamless link between standalone software SLiM 3.0, one of the most powerful population genomic simulation frameworks, and the R development environment, with its powerful data manipulation and analysis tools. We show how slimr facilitates smooth integration between genetic data, ecological data and simulation in a single environment. The package enables pipelines that begin with data reading, cleaning, and manipulation, proceed to constructing empirically-based parameters and initial conditions for simulations, then to running numerical simulations, and finally to retrieving simulation results in a format suitable for comparisons with empirical data - aided by advanced analysis and visualization tools provided by R. We demonstrate the use of slimr with an example from our own work on the landscape population genomics of desert mammals, highlighting the advantage of having a single integrated tool for both data analysis and simulation. slimr makes the powerful simulation ability of SliM 3.0 directly accessible to R users, allowing integrated simulation projects that incorporate empirical data without the need to switch between software environments. This should provide more opportunities for evolutionary biologists and ecologists to use realistic simulations to better understand the interplay between ecological and evolutionary processes.
02 /Specification & Classification
Click any tag to browse matching papersReproducibility 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
- slendr: a framework for spatio-temporal population genomic simulations on geographic landscapes
Martin Petr, Benjamin C. Haller, … Fernando Racimo·Peer Community JournalPeer-reviewed·Dec 15, 2023
- Simulation of bacterial populations with SLiM
J. Cury, B. C. Haller, … F. Jay·bioRxiv·Sep 28, 2020
- SLiM 3: Forward genetic simulations beyond the Wright-Fisher model
B. C. Haller, P. W. Messer·bioRxiv·Sep 15, 2018
- Bridging forward-in-time and coalescent simulations using pyslim
Shyamalika Gopalan, Murillo F. Rodrigues, … Benjamin C. Haller·bioRxiv·Sep 30, 2025
- SimBit: A high performance, flexible and easy-to-use population genetic simulator
R. Matthey-Doret·bioRxiv·May 12, 2020
- RangeShiftR: an R package for individual-based simulation of spatial eco-evolutionary dynamics and species' responses to environmental change
A.-K. Malchow, G. Bocedi, … D. Zurell·bioRxiv·Nov 17, 2020