self {AlphaSimR} | R Documentation |
Creates selfed progeny from each individual in a population. Only works when gender is "no".
self(pop, nProgeny = 1, parents = NULL, simParam = NULL)
pop |
an object of |
nProgeny |
total number of selfed progeny per individual |
parents |
an optional vector of indices for allowable parents |
simParam |
an object of |
Returns an object of Pop-class
#Create founder haplotypes founderPop = quickHaplo(nInd=2, nChr=1, segSites=10) #Set simulation parameters SP = SimParam$new(founderPop) #Create population pop = newPop(founderPop, simParam=SP) #Self pollinate each individual pop2 = self(pop, simParam=SP)