Learn R Programming

AlphaSimR (version 0.10.0)

SimParam_addStructuredSnpChips: Add Structured SNP chips

Description

Randomly selects the number of snps in structure and then assigns them to chips based on structure

Arguments

nSnpPerChr

number of SNPs per chromosome. Can be a single value or nChr values.

structure

a matrix. Rows are snp chips, columns are chips. If value is true then that snp is on that chip.

force

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

Usage

SP$addStructuredSnpChip(nSnpPerChr, structure, force = FALSE)