Learn R Programming

AlphaSimR (version 0.10.0)

SimParam_removeSnpChip: Remove SNP chip

Description

Removes designated SNP chip(s).

Arguments

chips

a vector of SNP chips to remove

force

should the check for a running simulation be ignored. Only set to TRUE if you know what you are doing.

Usage

SP$removeSnpChip(chips, force = FALSE)

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)
SP$nSnpChips
SP$removeSnpChip(1)
SP$nSnpChips

# }

Run the code above in your browser using DataLab