generate_offspring: Generate a synthetic offspring

Description Usage Arguments Value

View source: R/offspring_generation.r

Description

Takes two haplotypes of equal length and create an offspring haplotype via recombination.

Usage

1
2
generate_offspring(x1, x2, z = NULL, d = NULL, lambda = 0.012,
  epsilon = 1e-08)

Arguments

x1

One parental haplotype, a vector of length p with each entry 0 or 1.

x2

A second parental haplotype, a vector of length p with each entry 0 or 1.

d

vector of genetic distances between sites. Should be the same length as x1.

lambda

recombination rate per unit of genetic distance

epsilon

de novo mutation rate

Value

Offspring haplotype. A vector of length equal to x1 with each entry 0 or 1.


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