View source: R/simer.Reproduces.r
mate | R Documentation |
Mating according to the indice of sires and dams.
mate(pop.geno, index.sir, index.dam, ncpus = 0)
pop.geno |
the genotype data. |
index.sir |
the indice of sires. |
index.dam |
the indice of dams. |
ncpus |
the number of threads used, if NULL, (logical core number - 1) is automatically used. |
Build date: Nov 14, 2018 Last update: Jan 28, 2025
a genotype matrix after mating
Dong Yin
# Generate the genotype data
SP <- param.geno(pop.marker = 1e4, pop.ind = 1e2)
SP <- genotype(SP)
pop.geno <- SP$geno$pop.geno$gen1
# The mating design
index.sir <- rep(1:50, each = 2)
index.dam <- rep(51:100, each = 2)
# Mate according to mating design
geno.curr <- mate(pop.geno = pop.geno, index.sir = index.sir,
index.dam = index.dam)
geno.curr[1:5, 1:5]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.