genotype: Genotype simulation

View source: R/simer.Genotype.r

genotypeR Documentation

Genotype simulation

Description

Generating and editing genotype data.

Usage

genotype(SP = NULL, ncpus = 0, verbose = TRUE)

Arguments

SP

a list of all simulation parameters.

ncpus

the number of threads used, if NULL, (logical core number - 1) is automatically used.

verbose

whether to print detail.

Details

Build date: Nov 14, 2018 Last update: Jan 28, 2025

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".

Author(s)

Dong Yin

Examples


# Generate genotype simulation parameters
SP <- param.geno(pop.marker = 1e4, pop.ind = 1e2)

# Run genotype simulation
SP <- genotype(SP)


simer documentation built on April 3, 2025, 9:24 p.m.