This callback specifies that a code block is providing logic for the production
of offspring. It is called once per individual for each generation in which it is active,
and is expected to add new individuals to the simulation using the SLiM functions provided
for that purpose. This is only used in "nonWF" simulations.
For more information on how to use reproduction()
callback
see SLiM Manual: page 606
reproduction(subpop_id, sex)
The id(s) of the subpopulation(s) to which this callback should apply. Can be an integer 1, 2, etc., or character "p1", "p2", etc.
The sex of the individuals to apply this callback to.
None
Global variables available in reproduction callbacks:
The focal individual that is expected to reproduce
One genome of the focal individual
The other genome of the focal individual
The subpopulation to which the focal individual belongs
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()
,
first()
,
fitnessEffect()
,
fitness()
,
initialize()
,
interaction()
,
late()
,
mateChoice()
,
modifyChild()
,
mutationEffect()
,
mutation()
,
recombination()
,
slim_callbacks()
,
survival()
slim_block(reproduction(), {
subpop.addCrossed(individual, subpop.sampleIndividuals(1))
})
#> A slimr_block:
#> <slimr_script[1]>
#> block_1:1:1 reproduction() {
#> subpop.addCrossed(individual, subpop.sampleIndividuals(1));
#> }