
Last chance! 50% off unlimited learning
Sale ends in
Randomly assigns eligble QTLs for one or more additive and epistasis traits. If simulating more than one trait, all traits will be pleiotrophic with correlated additive effects.
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
the relative value of additive-by-additive variance compared to additive variance in a diploid organism with allele frequency 0.5
a matrix of correlations between additive effects
a matrix of correlations between additive-by-additive effects
tune according to additive genetic variance if true. If FALSE, tuning is performed according to total genetic variance.
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$addTraitAA(nQtlPerChr, mean = 0, var = 1, relAA = 0, corA = NULL, corAA = NULL, 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$addTraitAE(10)
# }
Run the code above in your browser using DataLab