Learn R Programming

AlphaSimR (version 0.8.2)

genParam: Sumarize genetic parameters

Description

Calculates genetic and genic additive and dominance variances for an object of Pop-class

Usage

genParam(pop, simParam = NULL)

Arguments

pop

an object of Pop-class

simParam

an object of SimParam

Value

varA

an nTrait by nTrait matrix of additive genetic variances

varD

an nTrait by nTrait matrix of dominance genetic variances

varG

an nTrait by nTrait matrix of total genetic variances

genicVarA

an nTrait vector of additive genic variances

genicVarD

an nTrait vector of dominance genic variances

genicVarG

an nTrait vector of total genic variances

aveF

an nTrait vector of the average inbreeding coefficient over all QTL

inbreeding

an nTrait vector for the depression of mean due to inbreeding

mu

an nTrait vector of trait means

bv

a matrix of breeding values with dimensions nInd by nTraits

dd

a matrix of dominance deviations with dimensions nInd by nTraits

gv_mu

an nTrait vector of trait means for genotype with all zeros

gv_a

a matrix of additive genetic values with dimensions nInd by nTraits

gv_d

a matrix of dominance genetic values with dimensions nInd by nTraits

Examples

Run this code
# NOT RUN {
#Create founder haplotypes
founderPop = quickHaplo(nInd=10, nChr=1, segSites=10)

#Set simulation parameters
SP = SimParam$new(founderPop)
SP$addTraitAD(10, meanDD=0.5)
SP$setVarE(h2=0.5)

#Create population
pop = newPop(founderPop, simParam=SP)
ans = genParam(pop, simParam=SP)

# }

Run the code above in your browser using DataLab