Usage Arguments Value Examples
1 2 | ## S3 method for class 'slimr_script'
reconstruct(x, ...)
|
x |
slimr_script object to reconstruct |
... |
Further arguments, passed to or from other methods. |
A character vector of length one containing the reconstructed code.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | slim_script(
slim_block(initialize(),
{
.Init$initializeMutationRate(1e-7);
.Init$initializeMutationType("m1", 0.5, "f", 0.0);
.Init$initializeGenomicElementType("g1", m1, 1.0);
.Init$initializeGenomicElement(g1, 0, 99999);
.Init$initializeRecombinationRate(1e-8);
}),
slim_block(1,
{
sim%.%.SS$addSubpop("p1", 500);
}),
slim_block(10000,
{
sim%.%.SS$simulationFinished();
})
) -> script
reconstruct(script)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.