SimParam_addSnpChip {AlphaSimR} | R Documentation |
Randomly assigns eligble SNPs to a SNP chip
nSnpPerChr |
number of SNPs per chromosome. Can be a single value or nChr values. |
force |
should the check for a running simulation be ignored. Only set to TRUE if you know what you are doing. |
SP$addSnpChip(nSnpPerChr, force = FALSE)
#Create founder haplotypes founderPop = quickHaplo(nInd=10, nChr=1, segSites=10) #Set simulation parameters SP = SimParam$new(founderPop) SP$addSnpChip(10)