Learn R Programming

Ease (version 0.1.2)

setSelectOnGametesProd: Setting the selection on gamete production

Description

Generation of an object of the Selection class which defines a selection on the gamete production either by adding this type of selection to an already existing SelectionObj object (parameter selectionObj) or by creating one.

Usage

setSelectOnGametesProd(
  genomeObj = NULL,
  indProdFit = c(),
  femProdFit = c(),
  maleProdFit = c(),
  selectionObj = NULL
)

Value

a Selection object

Arguments

genomeObj

a Genome object

indProdFit

a genotypic fitness vector for all individuals

femProdFit

a genotypic fitness vector for females only

maleProdFit

a genotypic fitness vector for males only

selectionObj

a Selection object (in the case where the selection on individuals is overlaid on an existing Selection object)

Author

Ehouarn Le Faou

Examples

Run this code
DL <- list(dl = c("A", "a"))
HL <- list(hl = c("B", "b"))
genomeObj <- setGenome(listHapLoci = HL, listDipLoci = DL)
selectionObj <- setSelectOnGametesProd(
  genomeObj = genomeObj,
  indProdFit = c(1, 1, 1, 1, 0.5, 0)
)

Run the code above in your browser using DataLab