mate {simer} | R Documentation |
Mate
Description
Mating according to the indice of sires and dams.
Usage
mate(pop.geno, index.sir, index.dam, ncpus = 0)
Arguments
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. |
Details
Build date: Nov 14, 2018 Last update: Apr 30, 2022
Value
a genotype matrix after mating
Author(s)
Dong Yin
Examples
# 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]
[Package simer version 0.9.0.4 Index]