This callback specifies the code should be called first (before anything else) in the simulation cycle.
For details on exactly when first(), early() and early() callbacks are
run during a simulation see SLiM Manual: page 541
for "WF" models, or SLiM Manual: page 549 for "nonWF" models.
first()None
This is documentation for a function in the SLiM software, and has been modified from the official manual, which can be found here: http://benhaller.com/slim/SLiM_Manual.pdf. This documentation is Copyright © 2016-2020 Philipp Messer. All rights reserved. More information about SLiM can be found on the official website: https://messerlab.org/slim/
Other callbacks:
early(),
fitnessEffect(),
fitness(),
initialize(),
interaction(),
late(),
mateChoice(),
modifyChild(),
mutationEffect(),
mutation(),
recombination(),
reproduction(),
slim_callbacks(),
survival()
slim_block(1, early(), {
sim.addSubpop("p1", 100)
})
#> A slimr_block:
#> <slimr_script[1]>
#> block_1:1 early() {
#> sim.addSubpop("p1", 100);
#> }