reproduces {simer} | R Documentation |
Reproduction
Description
Population reproduction by different mate design.
Usage
reproduces(SP, 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: Feb 18, 2025
Value
the function returns a list containing
- $reprod$pop.gen
the generations of simulated population.
- $reprod$reprod.way
reproduction method, it consists of "clone", "dh", "selfpol", "randmate", "randexself", "assort", "disassort", "2waycro", "3waycro", "4waycro", "backcro", and "userped".
- $reprod$sex.rate
the male rate in the population.
- $reprod$prog
the progeny number of an individual.
- $reprod$userped
the pedigree designed by user.
- $geno
a list of genotype simulation parameters.
- $pheno
a list of phenotype simulation parameters.
Author(s)
Dong Yin
Examples
# 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 reproduction
SP <- reproduces(SP)
[Package simer version 1.0.0 Index]