SimParam_addSnpChip {AlphaSimR}R Documentation

Add SNP chip

Description

Randomly assigns eligble SNPs to a SNP chip

Arguments

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.

Usage

SP$addSnpChip(nSnpPerChr, force = FALSE)

Examples

#Create founder haplotypes
founderPop = quickHaplo(nInd=10, nChr=1, segSites=10)

#Set simulation parameters
SP = SimParam$new(founderPop)
SP$addSnpChip(10)


[Package AlphaSimR version 0.10.0 Index]