powered by
Creates a new MapPop-class from an existing MapPop-class by randomly sampling haplotypes.
MapPop-class
sampleHaplo(mapPop, nInd, inbred = FALSE, ploidy = NULL, replace = TRUE)
an object of MapPop-class
the MapPop-class used to sample haplotypes
the number of individuals to create
should new individuals be fully inbred
new ploidy level for organism. If NULL, the ploidy level of the mapPop is used.
should haplotypes be sampled with replacement
founderPop = quickHaplo(nInd=2,nChr=1,segSites=11,inbred=TRUE) founderPop = sampleHaplo(mapPop=founderPop,nInd=20)
Run the code above in your browser using DataLab