Skip to content

slendr

A Simulation Framework for Spatiotemporal Population Genetics

v1.4.0 · Jan 16, 2026 · MIT + file LICENSE

Description

A framework for simulating spatially explicit genomic data which leverages real cartographic information for programmatic and visual encoding of spatiotemporal population dynamics on real geographic landscapes. Population genetic models are then automatically executed by the 'SLiM' software by Haller et al. (2019) <doi:10.1093/molbev/msy228> behind the scenes, using a custom built-in simulation 'SLiM' script. Additionally, fully abstract spatial models not tied to a specific geographic location are supported, and users can also simulate data from standard, non-spatial, random-mating models. These can be simulated either with the 'SLiM' built-in back-end script, or using an efficient coalescent population genetics simulator 'msprime' by Baumdicker et al. (2022) <doi:10.1093/genetics/iyab229> with a custom-built 'Python' script bundled with the R package. Simulated genomic data is saved in a tree-sequence format and can be loaded, manipulated, and summarised using tree-sequence functionality via an R interface to the 'Python' module 'tskit' by Kelleher et al. (2019) <doi:10.1038/s41588-019-0483-y>. Complete model configuration, simulation and analysis pipelines can be therefore constructed without a need to leave the R environment, eliminating friction between disparate tools for population genetic simulations and data analysis.

Downloads

310

Last 30 days

12843rd

1.1K

Last 90 days

6.2K

Last year

Trend: -17.6% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies ggplot2 dplyr purrr readr magrittr reticulate tidyr png ijtiff ape scales digest ggrepel slendr

Version History

new 1.4.0 Mar 10, 2026
updated 1.4.0 ← 1.3.0 diff Jan 15, 2026
updated 1.3.0 ← 1.2.0 diff Nov 10, 2025
updated 1.2.0 ← 1.1.0 diff Jul 30, 2025
updated 1.1.0 ← 1.0.0 diff Jun 2, 2025
updated 1.0.0 ← 0.9.1 diff Nov 21, 2024
updated 0.9.1 ← 0.9.0 diff Feb 21, 2024
updated 0.9.0 ← 0.8.1 diff Feb 7, 2024
updated 0.8.1 ← 0.8.0 diff Jan 14, 2024
updated 0.8.0 ← 0.7.2 diff Dec 6, 2023
updated 0.7.2 ← 0.7.1 diff Aug 7, 2023
updated 0.7.1 ← 0.7.0 diff Jul 13, 2023
updated 0.7.0 ← 0.6.0 diff Jun 25, 2023
updated 0.6.0 ← 0.5.1 diff Jun 6, 2023
updated 0.5.1 ← 0.5.0 diff Mar 8, 2023
updated 0.5.0 ← 0.4.0 diff Feb 2, 2023
updated 0.4.0 ← 0.3.0 diff Sep 29, 2022
updated 0.3.0 ← 0.2.0 diff Aug 18, 2022
new 0.2.0 Aug 8, 2022