powered by
Randomly assigns eligble SNPs to a SNP chip
number of SNPs per chromosome. Can be a single value or nChr values.
minimum allowable frequency for SNP loci. If NULL, no minimum frequency is used.
reference population for calculating SNP frequency. If NULL, the founder population is used.
SP$addSnpChip(nSnpPerChr, minSnpFreq = NULL, refPop = NULL)
# NOT RUN { #Create founder haplotypes founderPop = quickHaplo(nInd=10, nChr=1, segSites=10) #Set simulation parameters SP = SimParam$new(founderPop) SP$addSnpChip(10) # }
Run the code above in your browser using DataLab