Learn R Programming

AlphaSimR (version 0.10.0)

makeDH: Generates DH lines

Description

Creates DH lines from each individual in a population. Only works when gender is "no".

Usage

makeDH(pop, nDH = 1, useFemale = TRUE, simParam = NULL)

Arguments

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

Value

Returns an object of Pop-class

Examples

Run this code
# NOT RUN {
#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)

# }

Run the code above in your browser using DataLab