SLiM is an evolutionary simulation framework that combines a powerful engine for population genetic simulations with the capability of modeling arbitrarily complex evolutionary scenarios. Simulations are configured via the integrated Eidos scripting language that allows interactive control over practically every aspect of the simulated evolutionary scenarios. The underlying individual-based simulation engine is highly optimized to enable modeling of entire chromosomes in large populations. For Mac OS X users (on OS X 10.9 or later), we also provide a graphical user interface for easy simulation set-up, interactive runtime control, and dynamical visualization of simulation output.
Downloads (version 2.3)
The OS X Installer will install the slim command-line tool, the SLiMgui graphical development environment, and both manuals. On other Un*x platforms, you should download the source code archive above, unzip it, and build it with “make slim” (detailed instructions are provided in the SLiM manual).
The SLiM Manual includes a collection of recipes for common situations. You can also download a zip archive of those recipes, making it easier to enter them into SLiMgui, if you want to play around with them yourself. The Eidos Manual covers the details of the Eidos language, used to control SLiM via scripting. Reference sheets for both SLiM and Eidos make them easy to use with minimal use of the full documentation.
Note that the source code archive provided here contains neither OS X specific code, such as that for SLiMgui, nor the Xcode project for SLiM; it is intended for users on Linux (OS X users are strongly encouraged to use the OS X Installer rather than building from sources). The complete sources including OS X files can be found on GitHub; you can get the sources for a tagged release, such as 2.3, or for the current development head. However, this is unlikely to be what you want; unless you know what you are doing, please use the download links above.
With SLiMgui for Mac OS X you can visualize your simulation as it runs and examine its parameters in real-time, allowing for much easier simulation development.
A screenshot of SLiMgui simulating the population dynamics of a CRISPR/Cas9 “gene drive” in a six-subpopulation island model with spatial variation in selection on the driver allele. The Eidos scripting area is on the left, output is on the right. A visual representation of the population structure is shown in the subwindow, and all of the individuals in the six subpopulations can be seen at top (colored according to their relative fitness). The central black bar shows a summary of the genetic variation present in the population; rare neutral mutations are visible as short yellow bars, and the tall red bar represents the driver allele approaching fixation.
There are two mailing lists. Please subscribe to either or both using the links below:
- slim-announce: A low-volume mailing list for announcements only. Users may not post to this list.
- slim-discuss: A higher-volume mailing list for questions, comments, bug reports, and discussion among users of SLiM.
2017 April 18: SLiM 2.3 is released! This is a major release, notably adding support for continuous space and spatial interactions. See the new SLiM and Eidos manuals for current documentation. There are also release notes in the announcement on slim-announce.
2017 February 22: SLiM 2.2.1 is released (new recipes, minor features and fixes).
2016 December 8: SLiM 2.2 is released! This is a major release with big performance improvements and several new features. See the new SLiM and Eidos manuals for current documentation. There are also release notes in the announcement on slim-announce.
2016 November 8: SLiM 2.1.1 is released (mostly bug fixes, some serious).
2016 October 4: Our publication on SLiM 2 is out in Molecular Biology and Evolution: DOI.
2016 September 19: SLiM 2.1 is released! This is a major release with lots of features added. See the new SLiM and Eidos manuals for current documentation. There are also release notes in the announcement on slim-announce.
2016 May 26: SLiM 2.0.4 is released (minor bug fixes).
2016 May 12: SLiM 2.0.3 is released (improvements to code completion).
2016 May 6: SLiM 2.0.2 is released (minor feature additions).
2016 April 27: SLiM 2.0.1 is released (minor bug fix and minor feature addition).
2016 April 1: SLiM 2.0 is released! We are excited to announce SLiM 2.0, a new major release of the SLiM package. SLiM 2.0 adds scriptability with Eidos, and interactive simulation development using the SLiMgui application. We have put up a blog post with more details about the SLiM 2.0 release.
License and citation
SLiM is free open-source software, licensed under the GNU General Public License version 3. It runs on any Un*x or Linux machine that can build C++11 code, and works well on computing clusters. If you use it in your research, please cite our paper on SLiM 2:
Haller, B.C., & Messer, P.W. (2017). SLiM 2: Flexible, interactive forward genetic simulations. Molecular Biology and Evolution 34(1), 230–240. DOI
Old versions of SLiM are available for download here, although for new projects using the current version is strongly recommended. These old versions are no longer supported.
Here are examples of publications that have used SLiM (in alphabetical order within year). Please let us know if you have any additions you would like to see included in this list.
- Huber, C.D., Kim, B.Y., Marsden, C.D., & Lohmuller, K.E. (2016). Determining the factors driving selective effects of new nonsynonymous mutations. bioRxiv, 071209. DOI
- Aeschbacher, S., Packard Selby, J., Willis, J.H., & Coop, G. (2016). Population-genomic inference of the strength and timing of selection against gene flow. bioRxiv, 072736. DOI
- Chen, C.-Y., Hung, L.-Y., Wu, C.-S., & Chuang, T.-J. (2016). Purifying selection shapes the coincident SNP distribution of primate coding sequences. Scientific Reports 6(27272), 1-15. DOI
- Enard, D., Cai L., Gwennap C., Petrov D.A. (2016). Viruses are a dominant driver of protein adaptation in mammals. eLife 17(5), e12469. DOI
- Ewing, G.B., & Jensen, J.D. (2016). The consequences of not accounting for background selection in demographic inference. Molecular Ecology 25(1), 135-141. DOI
- de Filippo, C., Key, F.M., Ghirotto, S., Benazzo, A., Meneu, J.R., Weihmann, A., Parra, G., Green, E.D., & Andrés, A.M. (2016). Recent selection changes in human genes under long-term balancing selection. Molecular Biology and Evolution (early online), 1-13. DOI
- Galtier, N. (2016). Adaptive protein evolution in animals and the effective population size hypothesis. PLoS Genetics 12(1), 1-23. DOI
- Harris, K., & Nielsen, R. (2016). The genetic cost of Neanderthal introgression. Genetics DOI .
- Lindo, J. et al. (2016). Demographic and immune-based selection shifts before and after European contact inferred from 50 ancient and modern exomes from the Northwest Coast of North America. bioRxiv. DOI
- Racimo, F. (2016). Testing for ancient selection using cross-population allele frequency differentiation. Genetics 202(2), 733-750. DOI
- Arunkumar, R., Ness, R.W., Wright, S.I., & Barrett, S.C. (2015). The evolution of selfing is accompanied by reduced efficacy of selection and purging of deleterious mutations. Genetics 199(3), 817-829. DOI
- Assaf, Z.J., Petrov, D.A., & Blundell, J.R. (2015). Obstruction of adaptation in diploids by recessive, strongly deleterious alleles. Proceedings of the National Academy of Sciences 112(20), E2658-E2666. DOI
- Bianco, E., Soto, H.W., Vargas, L., & Pérez‐Enciso, M. (2015). The chimerical genome of Isla del Coco feral pigs (Costa Rica), an isolated population since 1793 but with remarkable levels of diversity. Molecular Ecology 24(10), 2364-2378. DOI
- Caballero, A., Tenesa, A., & Keightley, P.D. (2015). The nature of genetic variation for complex traits revealed by GWAS and regional heritability mapping analyses. Genetics 201(4), 1601-1613. DOI
- Cocca, M., Pybus, M., Palamara, P.F., Garrison, E., Traglia, M., Sala, C.F., Ulivi, S., Memari, Y., Kolb-Kokocinski, A., McCarthy, S., & Durbin, R. (2015). Purging of deleterious variants due to drift and founder effect in Italian populations with extended autozygosity. bioRxiv, 022947. DOI
- Douglas, G.M., Gos, G., Steige, K.A., Salcedo, A., Holm, K., Josephs, E.B., Arunkumar, R., Ågren, J.A., Hazzouri, K.M., Wang, W., & Platts, A.E. (2015). Hybrid origins and the earliest stages of diploidization in the highly successful recent polyploid Capsella bursa-pastoris. Proceedings of the National Academy of Sciences 112(9), 2806-2811. DOI
- Hussin, J.G., Hodgkinson, A., Idaghdour, Y., Grenier, J.C., Goulet, J.P., Gbeha, E., Hip-Ki, E., & Awadalla, P. (2015). Recombination affects accumulation of damaging and disease-associated mutations in human populations. Nature Genetics 47(4), 400-404. DOI
- Mafessoni, F., & Lachmann, M. (2015). Selective strolls: fixation and extinction in diploids are slower for weakly selected mutations than for neutral ones. Genetics 201(4), 1581-1589. DOI
- Schrider, D.R., & Kern, A.D. (2015). Inferring selective constraint from population genomic data suggests recent regulatory turnover in the human brain. Genome Biology and Evolution 7(12), 3511-3528. DOI
- Bergland, A.O., Behrman, E.L., O’Brien, K.R., Schmidt, P.S., & Petrov, D.A. (2014). Genomic evidence of rapid and stable adaptive oscillations over seasonal time scales in Drosophila. PLoS Genetics 10(11), e1004775. DOI
- Comeron, J.M. (2014). Background selection as baseline for nucleotide variation across the Drosophila genome. PLoS Genetics 10(6), e1004434. DOI
- Enard, D., Messer, P.W., & Petrov, D.A. (2014). Genome-wide signals of positive selection in human evolution. Genome Research 24(6), 885-895. DOI
- Veeramah, K.R., Gutenkunst, R.N., Woerner, A.E., Watkins, J.C., & Hammer, M.F. (2014). Evidence for increased levels of positive and negative selection on the X chromosome versus autosomes in humans. Molecular Biology and Evolution 31(9), 2267-2282. DOI
- Kousathanas, A., & Keightley, P.D. (2013). A comparison of models to infer the distribution of fitness effects of new mutations. Genetics 193(4), 1197-1208. DOI
- Messer, P.W., & Petrov, D.A. (2013). Frequent adaptation and the McDonald–Kreitman test. Proceedings of the National Academy of Sciences 110(21), 8615-8620. DOI