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)
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
an object of MapPop-class
# NOT RUN { founderPop = quickHaplo(nInd=2,nChr=1,segSites=11,inbred=TRUE) founderPop = sampleHaplo(nInd=20,mapPop=founderPop) # }
Run the code above in your browser using DataLab