Learn R Programming

simer (version 1.0.0)

param.geno: Genotype parameters generator

Description

Generate parameters for genotype data simulation.

Usage

param.geno(SP = NULL, ...)

Value

the function returns a list containing

$geno$pop.geno

the genotype data.

$geno$inrows

"1":one-row genotype represents an individual; "2": two-row genotype represents an individual.

$geno$pop.marker

the number of markers.

$geno$pop.ind

the number of individuals in the base population.

$geno$prob

the genotype code probability.

$geno$rate.mut

the mutation rate of the genotype data.

$geno$cld

whether to generate a complete LD genotype data when "inrows == 2".

Arguments

SP

a list of all simulation parameters.

...

one or more parameter(s) for genotype simulation.

Author

Dong Yin

Details

Build date: Feb 21, 2022 Last update: Jan 27, 2025

Examples

Run this code
SP <- param.geno(pop.marker = 1e4, pop.ind = 1e2)
str(SP)

Run the code above in your browser using DataLab