View source: R/simer.Genotype.r
genotype | R Documentation |
Generating and editing genotype data.
genotype(SP = NULL, ncpus = 0, verbose = TRUE)
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. |
Build date: Nov 14, 2018 Last update: Jan 28, 2025
the function returns a list containing
the genotype data.
"1": one-row genotype represents an individual; "2": two-row genotype represents an individual.
the number of markers.
the number of individuals in the base population.
the genotype code probability.
the mutation rate of the genotype data.
whether to generate a complete LD genotype data when "inrows == 2".
Dong Yin
# Generate genotype simulation parameters
SP <- param.geno(pop.marker = 1e4, pop.ind = 1e2)
# Run genotype simulation
SP <- genotype(SP)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.