makeGameteSingleInd: Gamete

View source: R/quantgen.R

makeGameteSingleIndR Documentation

Gamete

Description

Make a gamete for all chromosomes by recombining two parental haplotypes.

Usage

makeGameteSingleInd(
  haplos.par,
  loc.crossovers,
  start.haplos = as.list(rep(1, length(haplos.par)))
)

Arguments

haplos.par

list of matrices containing both haplotypes of a parent for each chromosome

loc.crossovers

list of vectors with positions of the crossing overs (the coordinate of the first nucleotide is assumed to be 1, and crossing-overs are assumed to occur right after the given positions)

start.haplos

list of identifiers (1/2) of the haplotype with which to start the gamete for each chromosome (if NULL, will be sampled)

Value

list of vectors (one per chromosome)

Author(s)

Timothee Flutre

See Also

makeCross, fecundation, makeGameteSingleIndSingleChrom


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