A wrapper for accessing the gv slot
Arguments
- pop
a
Pop-class
or similar object
Examples
#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)
gv(pop)
#> Trait1
#> [1,] -2.58339534
#> [2,] 1.25508707
#> [3,] 1.02770019
#> [4,] 1.01099201
#> [5,] -0.14283056
#> [6,] 0.58752628
#> [7,] 0.07068035
#> [8,] -0.92537542
#> [9,] -0.45390915
#> [10,] 0.15352457