initializeScheme.Rd
function to initialize simulation of a breeding program. A single additive-dominance trait is simulated. Check are used in this scheme
initializeScheme(bsp, nThreadsForMacs = NULL)
bsp | A list of breeding scheme parameters. See |
---|---|
nThreadsForMacs | uses the nThreads argument in |
A list containing: 1. The simulation parameters in SP
; 2. The initial records of the breeding program in records
. See fillPipeline
for details; 3. A completed bsp
object
Creates the founders and the initial records at the beginning of the simulation of a breeding program.
#> Error in mget(setdiff(ls(), "bspNew")): object 'bsp' not found#> Error in if (bsp$nSNP + bsp$nQTL >= bsp$segSites) { print("The number of segregating sites (segSites) has to be greater than the number of SNPs (nSNP) and the number of QTL (nQTL). segSites set 10% bigger than nSNP + nQTL") bsp$segSites <- round((bsp$nSNP + bsp$nQTL) * 1.1) + 1}: argument is of length zeroinitList <- initializeScheme(bsp)#> Error in initializeScheme(bsp): object 'bsp' not foundSP <- initList$SP#> Error in eval(expr, envir, enclos): object 'initList' not foundbsp <- initList$bsp#> Error in eval(expr, envir, enclos): object 'initList' not foundrecords <- initList$records#> Error in eval(expr, envir, enclos): object 'initList' not found