genotype {simer}R 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: Apr 28, 2022

Value

the function returns a list containing

$geno$pop.geno

the genotype data.

$geno$incols

'1': one-column genotype represents an individual; '2': two-column 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 'incols == 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)


[Package simer version 0.9.0.4 Index]