Sample haplotypes from a MapPop
Creates a new MapPop-class from an existing
MapPop-class by randomly sampling haplotypes.
sampleHaplo(mapPop, nInd, inbred = FALSE, ploidy = NULL, replace = TRUE)
mapPop |
the |
nInd |
the number of individuals to create |
inbred |
should new individuals be fully inbred |
ploidy |
new ploidy level for organism. If NULL, the ploidy level of the mapPop is used. |
replace |
should haplotypes be sampled with replacement |
an object of MapPop-class
founderPop = quickHaplo(nInd=2,nChr=2,segSites=11,inbred=TRUE) founderPop = sampleHaplo(mapPop=founderPop,nInd=20)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.