View source: R/simer.Reproduces.r
mate.randmate | R Documentation |
Produce individuals by random-mating.
mate.randmate(SP, 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: Apr 30, 2022
the function returns a list containing
the generations of simulated population.
reproduction method, it consists of 'clone', 'dh', 'selfpol', 'randmate', 'randexself', 'assort', 'disassort', '2waycro', '3waycro', '4waycro', 'backcro', and 'userped'.
the sex ratio of simulated population.
the progeny number of an individual.
a list of genotype simulation parameters.
a list of phenotype simulation parameters.
Dong Yin
# Generate annotation simulation parameters
SP <- param.annot(qtn.num = list(tr1 = 10))
# Generate genotype simulation parameters
SP <- param.geno(SP = SP, pop.marker = 1e4, pop.ind = 1e2)
# Generate phenotype simulation parameters
SP <- param.pheno(SP = SP, pop.ind = 100)
# Generate selection parameters
SP <- param.sel(SP = SP, sel.single = "ind")
# Generate reproduction parameters
SP <- param.reprod(SP = SP, reprod.way = "randmate")
# Run annotation simulation
SP <- annotation(SP)
# Run genotype simulation
SP <- genotype(SP)
# Run phenotype simulation
SP <- phenotype(SP)
# Run selection
SP <- selects(SP)
# Run random mating
SP <- mate.randmate(SP)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.