SLiM

SLiM simulates forward-time population genetic and evolutionary scenarios, enabling explicit modeling of demography, selection, spatial structure, multi-chromosome genomes, and multi-species ecological interactions.


Key Features:

  • Non-Wright-Fisher model (SLiM 3): Implements a non-Wright-Fisher (nonWF) model supporting explicit space, overlapping generations, individual variation in reproduction and dispersal, density-dependent population regulation, local extinction and recolonization, mating between subpopulations, age structure, fitness-based survival, hard selection, and emergent sex ratios.
  • Continuous space support: Supports continuous space for spatial interactions and mapping of environmental variables.
  • Tree-sequence recording: Stores the full genealogical history of genomes, allows omission of neutral mutations during forward-time simulation and their later addition, enables recapitation (neutral burn-in post-simulation), permits direct examination of genealogical trees along the genome, and produces a compact representation analyzable with the msprime Python package.
  • Multi-chromosome simulation (SLiM 5): Simulates up to 256 chromosomes including autosomes, sex chromosomes (X, Y, Z, W), and haploid mitochondrial and chloroplast DNA, and integrates chromosome-aware reproduction with VCF input/output and tree-sequence recording.
  • Multi-species support (SLiM 4): Supports simulation of multiple species and ecological interactions such as predation, parasitism, and mutualism for community-, ecosystem- and coevolutionary-level modeling.

Scientific Applications:

  • Population genetics simulations: Modeling selection at multiple genomic sites, complex demography, and population structure in forward time.
  • Eco-evolutionary dynamics: Exploring ecological interactions, coevolution, community and ecosystem processes, and biodiversity dynamics.
  • Genomic-scale simulations: Conducting full-genome simulations with multi-chromosome architectures and tree-sequence recording for large populations.
  • Polygenic trait evolution: Studying evolution of polygenic quantitative traits under environmental selection pressures.
  • Genealogical and coalescent analyses: Reconstructing and analyzing genealogies using tree-sequence recording, recapitation, and downstream analysis with msprime.
  • Conservation and management scenarios: Simulating local extinction, recolonization, and other processes relevant to biodiversity and conservation.

Methodology:

Performs forward-time simulation using the non-Wright-Fisher (nonWF) model; employs tree-sequence recording to store genealogical histories while omitting neutral mutations for later addition and supports recapitation; models explicit continuous space, overlapping generations, individual-level reproduction and dispersal, density dependence, local extinction/recolonization, age structure, fitness-based survival and hard selection; supports multi-chromosome genomes (up to 256 chromosomes), multiple species, and VCF input/output, with analysis interoperability via the msprime Python package.

Topics

Details

License:
GPL-3.0
Maturity:
Mature
Cost:
Free of charge
Tool Type:
command-line tool, desktop application
Operating Systems:
Linux, Mac, Windows
Programming Languages:
C++
Added:
5/27/2019
Last Updated:
9/13/2025

Operations

Publications

Haller BC, Messer PW. SLiM 3: Forward Genetic Simulations Beyond the Wright–Fisher Model. Molecular Biology and Evolution. 2019;36(3):632-637. doi:10.1093/molbev/msy228. PMID:30517680. PMCID:PMC6389312.

PMID: 30517680
PMCID: PMC6389312
Funding: - College of Agriculture and Life Sciences: SS/05/01 - National Institutes of Health: R01GM127418

Haller BC, Messer PW. Evolutionary Modeling in SLiM 3 for Beginners. Molecular Biology and Evolution. 2018;36(5):1101-1109. doi:10.1093/molbev/msy237. PMID:30590560. PMCID:PMC6501880.

PMID: 30590560
PMCID: PMC6501880
Funding: - National Institutes of Health: R01GM127418

Haller BC, Galloway J, Kelleher J, Messer PW, Ralph PL. Tree‐sequence recording in SLiM opens new horizons for forward‐time simulation of whole genomes. Molecular Ecology Resources. 2019;19(2):552-566. doi:10.1111/1755-0998.12968. PMID:30565882. PMCID:PMC6393187.

PMID: 30565882
PMCID: PMC6393187
Funding: - National Science Foundation: DBI-1262645 - Wellcome Trust: 100956/Z/13/Z - National Institutes of Health: R01GM127418, R21AI130635

Haller BC, Ralph PL, Messer PW. SLiM 5: Eco-evolutionary simulations across multiple chromosomes and full genomes. Unknown Journal. 2025. doi:10.1101/2025.08.07.669155. PMID:40832315. PMCID:PMC12363870.

Haller BC, Messer PW. SLiM 4: Multispecies Eco-Evolutionary Modeling. The American Naturalist. 2023;201(5):E127-E139. doi:10.1086/723601. PMID:37130229. PMCID:PMC10793872.

Documentation

User manual
http://benhaller.com/slim/SLiM_Manual.pdf
The manual for SLiM itself
User manual
http://benhaller.com/slim/Eidos_Manual.pdf
The manual for Eidos, the scripting language used by SLiM
Quick start guide
http://benhaller.com/slim/SLiMEidosRefSheets.zip
Quick reference sheets for SLiM and Eidos

Downloads

Links

Software catalogue
https://messerlab.org/slim/
(SLiM home page in the Messer Lab website)
Repository
https://github.com/MesserLab/SLiM
(GitHub repository for SLiM)
Discussion forum
https://groups.google.com/g/slim-discuss
(Discussion forum for SLiM questions)
Mailing list
https://groups.google.com/g/slim-announce
(Announcements mailing list)