makeCross: Cross

View source: R/quantgen.R

makeCrossR Documentation

Cross

Description

Make a cross. If two different genotypes are given, then a fecundation is made with one gamete from each genotype. If the same genotype is given twice, an autofecondation is made with two different gametes from this genotype. If a single genotype is given, a haplodiploidization is made with a single gamete from this genotype.

Usage

makeCross(
  haplos.par1,
  loc.crossovers.par1,
  haplos.par2 = NULL,
  loc.crossovers.par2 = NULL,
  child.name = NULL,
  howto.start.haplo = 0,
  verbose = 1
)

Arguments

haplos.par1

list of matrices (one per chromosome) for the first parent

loc.crossovers.par1

list of vectors (one per chromosome) for the first parent

haplos.par2

list of matrices (one per chromosome) for the second parent

loc.crossovers.par2

list of vectors (one per chromosome) for the second parent

child.name

identifier of the child (if NULL, <parent1>"-x-"<parent2> or <parent1>"-hd")

howto.start.haplo

if 0, haplotypes with which to start the gametes will be chosen at random; but one can also specify 1 (always the first haplotype) or 2 (always the second haplotype)

verbose

verbosity level (0/1)

Value

list of matrices (one per chromosome) for the child

Author(s)

Timothee Flutre

See Also

makeCrosses, drawLocCrossovers, makeGameteSingleInd, fecundation


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.