SimParam_addTraitAD {AlphaSimR} | R Documentation |
Randomly assigns eligble QTLs for one or more traits with dominance. If simulating more than one trait, all traits will be pleiotrophic with correlated effects.
nQtlPerChr |
number of QTLs per chromosome. Can be a single value or nChr values. |
mean |
a vector of desired mean genetic values for one or more traits |
var |
a vector of desired genetic variances for one or more traits |
meanDD |
mean dominance degree |
varDD |
variance of dominance degree |
corA |
a matrix of correlations between additive effects |
corDD |
a matrix of correlations between dominance degrees |
useVarA |
tune according to additive genetic variance if true. If FALSE, tuning is performed according to total genetic variance. |
gamma |
should a gamma distribution be used instead of normal |
shape |
the shape parameter for the gamma distribution |
force |
should the check for a running simulation be ignored. Only set to TRUE if you know what you are doing. |
SP$addTraitAD(nQtlPerChr, mean = 0, var = 1, meanDD = 0, varDD = 0, corA = NULL, corDD = NULL, useVarA = TRUE, gamma = FALSE, shape = 1, force = FALSE)
#Create founder haplotypes founderPop = quickHaplo(nInd=10, nChr=1, segSites=10) #Set simulation parameters SP = SimParam$new(founderPop) SP$addTraitAD(10, meanDD=0.5)