crossIndividuals: Cross two indiviiduals Workhorse function to cross two...

Description Usage Arguments

View source: R/IndividualFunctions.R

Description

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.

Usage

1
2
crossIndividuals(parent1, parent2, genome, incompatibility = NULL,
  sex = "random", Nrecombs = 1)

Arguments

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


eyalbenda/bulkPop documentation built on May 17, 2019, 11:14 p.m.