Learn R Programming

AlphaSimR (version 0.11.1)

SimParam_addSnpChip: 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.

minSnpFreq

minimum allowable frequency for SNP loci. If NULL, no minimum frequency is used.

refPop

reference population for calculating SNP frequency. If NULL, the founder population is used.

Usage

SP$addSnpChip(nSnpPerChr, minSnpFreq = NULL, refPop = NULL)

Examples

Run this code
# 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