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.
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.
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.
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
Downloads
- Downloads pagehttps://github.com/MesserLab/SLiM/releases/latestThe GitHub page for the current release version, to obtain full source code.
- Source codehttp://benhaller.com/slim/SLiM.zipA source archive for the command-line `slim` tool only. Complete source code is on GitHub, but most platforms have an installer anyway; see the manual, chapter 2, for installation instructions.