makeGameteSingleIndSingleChrom: Gamete

View source: R/quantgen.R

makeGameteSingleIndSingleChromR Documentation

Gamete

Description

Make a gamete for a given chromosome by recombining two parental haplotypes.

Usage

makeGameteSingleIndSingleChrom(haplos.par.chr, loc.crossovers, start.haplo = 1)

Arguments

haplos.par.chr

matrix containing both haplotypes of a parent for a given chromosome (must have dimnames, such as "ind37_h1" in rows and "snp00265" in columns)

loc.crossovers

positions of the crossing overs in terms of SNP indices and not physical coordinates (the coordinate of the first nucleotide is assumed to be 1, and crossing-overs are assumed to occur right after the given positions)

start.haplo

identifier of the haplotype with which to start the gamete (1/2)

Value

vector

Author(s)

Timothee Flutre

See Also

makeGameteSingleInd, drawLocCrossovers


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