View source: R/IndividualFunctions.R
Cross two indiviiduals Workhorse function to cross two individuals. Usually isn't called directly but useful for customized simulations Takes two parents, recombines them, than randomly generates a progeny by a combination of one haplotype of each.
1 2 | crossIndividuals(parent1, parent2, genome, incompatibility = NULL,
sex = "random", Nrecombs = 1)
|
parent1 |
first parent. an individual object |
parent2 |
second parent. an indiviudal object |
genome |
a genome object, should correspond to both individuals |
incompatibility |
a list of incompatibilities. Each incompatibility is a list with two elements: params and func. The func is the function that tests the recombined parents and the offspring and determines if it's dead or not. See the functions zeelPeelSelection and medeaSelection for example of functions included in the package. |
sex |
what sex should the offspring have. either "random", or male (0,"0","male","m") or female (1,"1","female","f") |
Nrecombs |
number of recombination per chromosome |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.