makeDH {AlphaSimR} | R Documentation |
Creates DH lines from each individual in a population. Only works when gender is "no".
makeDH(pop, nDH = 1, useFemale = TRUE, simParam = NULL)
pop |
an object of 'Pop' superclass |
nDH |
total number of DH lines per individual |
useFemale |
should female recombination rates be used. This parameter has no effect if, recombRatio=1. |
simParam |
an object of 'SimParam' class |
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) #Create 1 DH for each individual pop2 = makeDH(pop, simParam=SP)