fillPipeline.Rd
function to create initial records at the start of a simulation
fillPipeline(founders, bsp = NULL, SP)
founders | Pop-class object of the founders of the breeding program |
---|---|
bsp | A list of product pipeline parameters. See |
A records
object. A list of lists containing nStages+1 lists. The first list contains one Pop-class of progeny per year of the scheme. The remaining lists contain one matrix per year that has individual id, mother, father, stage, phenotypes, and error variances. The individuals have been phenotyped using setPheno
. The matrix may contain a mix of experimental and check phenotypes with different levels of replication
This is a structure for a records object that will be used to simulate breeding schemes
#> 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 zero#> Error in mget(setdiff(ls(), "bspNew")): object 'bsp' not foundnF1 <- bsp$nCrosses * bsp$nProgeny#> Error in eval(expr, envir, enclos): object 'bsp' not foundfounderHap <- runMacs(nInd=nF1, nChr=bsp$nChr, segSites=bsp$segSites)#> Error in runMacs(nInd = nF1, nChr = bsp$nChr, segSites = bsp$segSites): object 'nF1' not foundSP <- SimParam$new(founderHap)#> Error in stopifnot(class(founderPop) == "MapPop"): object 'founderHap' not foundSP$addTraitA(nQtlPerChr=bsp$nQTL, var=bsp$genVar)#> Error in eval(expr, envir, enclos): object 'SP' not foundSP$addSnpChip(bsp$nSNP)#> Error in eval(expr, envir, enclos): object 'SP' not foundfounders <- newPop(founderHap, simParam=SP)#> Error in newPop(founderHap, simParam = SP): object 'SP' not found#> Error in eval(expr, envir, enclos): object 'bsp' not foundrecords <- fillPipeline(founders, bsp, SP)#> Error in fillPipeline(founders, bsp, SP): object 'bsp' not found