Get a list of SLiM recipes (as text)

slim_get_recipes(recipes = "all")

Arguments

recipes

Integer or Character specifying the recipe numbers / names, or "all", to retrieve all recipes.

Value

List of SLiM recipes, each element a length 1 character vector.

Examples

recipes <- slim_get_recipes("all")
recipes[[12]]
#> [1] "// Keywords: \n\ninitialize() {\n\tinitializeMutationRate(1e-7);\n\tinitializeMutationType(\"m1\", 0.5, \"f\", 0.0);\n\tinitializeGenomicElementType(\"g1\", m1, 1.0);\n\tinitializeGenomicElement(g1, 0, 99999);\n\tinitializeRecombinationRate(1e-8);\n}\n1 { sim.addSubpop(\"p1\", 100); }\n1000:1099 {\n\tnewSize = asInteger(p1.individualCount * 1.03);\n\tp1.setSubpopulationSize(newSize);\n}\n10000 late() { sim.outputFixedMutations(); }"