generate_ancestry: Generate ancestry information

Description Usage Arguments Value

View source: R/offspring_generation.r

Description

Simulates recombination and returns vector of 0-1 indicating ancestry. Intended for intenal use with the generate_offspring function.

Usage

1
generate_ancestry(d, lambda = 0.012)

Arguments

d

Vector of genetic distances between sites. Should be the length of the haplotype.

lambda

Recombination rate per unit of genetic distance.

Return value:

Value

A vector of length equal to x1 with each entry 0 or 1, corresponding to the ancestry at each location.


stephenbates19/digitaltwins documentation built on Feb. 25, 2020, 12:41 a.m.