
Last chance! 50% off unlimited learning
Sale ends in
A wrapper for makeCross2
that randomly
selects parental combinations for all possible combinantions between
two populations.
randCross2(females, males, nCrosses, nProgeny = 1, balance = TRUE,
femaleParents = NULL, maleParents = NULL, ignoreGender = FALSE,
simParam = NULL)
an object of Pop-class
for female parents.
an object of Pop-class
for male parents.
total number of crosses to make
number of progeny per cross
this option will balance the number of progeny per parent
an optional vector of indices for allowable female parents
an optional vector of indices for allowable male parents
should gender be ignored
an object of SimParam
Returns an object of Pop-class
# NOT RUN {
#Create founder haplotypes
founderPop = quickHaplo(nInd=10, nChr=1, segSites=10)
#Set simulation parameters
SP = SimParam$new(founderPop)
#Create population
pop = newPop(founderPop, simParam=SP)
#Make 10 crosses
pop2 = randCross2(pop, pop, 10, simParam=SP)
# }
Run the code above in your browser using DataLab