selectBV: Selection according to breeding values

View source: R/mySelection.R

selectBVR Documentation

Selection according to breeding values

Description

Selection according to breeding values

Usage

selectBV(pop, n, lociEffects)

Arguments

pop

(population object) Population of individuals to select (see:population)

n

(integer) number of individuals to select

lociEffects

(numeric vector) effect of the genetic markers

Value

character vector of the selected individuals' names

Examples

mySpec <- specie$new(specName = "Statisticae exempli",
                     nChr = 10,
                     lChr = 1e6,
                     ploidy = 2,
                     recombRate = 3/1e6)
myLoci <- lociInfo$new(genoMap = exampleData$genoMap, specie = mySpec)
initPop <- createPop(geno = exampleData$genotypes,
                     lociInfo = myLoci,
                     popName = "Initial population")
selectBV(pop = initPop,
         lociEffects = exampleData$lociEffects,
         n = 10)

KosukeHamazaki/myBreedSimulatR documentation built on Aug. 31, 2024, 3:55 p.m.