setSelectOnGametes {Ease}R Documentation

Setting the selection on gametes

Description

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

Usage

setSelectOnGametes(
  genomeObj = NULL,
  gamFit = c(),
  femaleFit = c(),
  maleFit = c(),
  selectionObj = NULL
)

Arguments

genomeObj

a Genome object

gamFit

an haplotypic fitness vector for all individuals

femaleFit

an haplotypic fitness vector for females only

maleFit

an haplotypic fitness vector for males only

selectionObj

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

Value

a Selection object

Author(s)

Ehouarn Le Faou

Examples

DL <- list(dl = c("A", "a"))
HL <- list(hl = c("B", "b"))
genomeObj <- setGenome(listHapLoci = HL, listDipLoci = DL)
selectionObj <- setSelectOnGametes(
  genomeObj = genomeObj,
  gamFit = c(1, 1, 0.5, 0)
)


[Package Ease version 0.1.2 Index]