Description Usage Arguments Value Examples
View source: R/slimr_scripting.R
Setup a SLiMR script. Each argument should be a call to slim_block
.
See details for more information.
1 |
... |
A list of |
A slim_script
object that can be used with slimr
's
slim_run_script
or converted into a text file for use with
SLiM directly using as.character
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | slim_script(
slim_block(initialize(),
{
initializeMutationRate(1e-7);
initializeMutationType("m1", 0.5, "f", 0.0);
initializeGenomicElementType("g1", m1, 1.0);
initializeGenomicElement(g1, 0, 99999);
initializeRecombinationRate(1e-8);
}),
slim_block(1,
{
sim.addSubpop("p1", 500);
}),
slim_block(10000,
{
sim.simulationFinished();
})
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.