powered by
Randomly assigns eligble QTLs for a trait with dominance and GxE.
number of QTLs per chromosome. Can be a single value or nChr values.
a vector of desired mean genetic values for one or more traits
a vector of desired genetic variances for one or more traits
a vector of total genotype-by-environment variances for the traits
a vector of environmental variances for one or more traits
mean dominance degree
variance of dominance degree
a matrix of correlations between additive effects
a matrix of correlations between dominance degrees
a matrix of correlations between GxE effects
tune according to additive genetic variance if true
should a gamma distribution be used instead of normal
the shape parameter for the gamma distribution
should the check for a running simulation be ignored. Only set to TRUE if you know what you are doing.
SP$addTraitADG(nQtlPerChr, mean = 0, var = 1, varGxE = 1e-6, varEnv = 0, meanDD = 0, varDD = 0, corA = NULL, corDD = NULL, corGxE = NULL, useVarA = TRUE, gamma = FALSE, shape = 1, force = FALSE)
# NOT RUN { #Create founder haplotypes founderPop = quickHaplo(nInd=10, nChr=1, segSites=10) #Set simulation parameters SP = SimParam$new(founderPop) SP$addTraitADG(10, meanDD=0.5, varGxE=2) # }
Run the code above in your browser using DataLab