Learn R Programming

segtest (version 2.0.0)

simf1gl: Simulate genotype likelihoods of F1 individuals.

Description

Simulate genotype likelihoods of F1 individuals.

Usage

simf1gl(n, g1, g2, rd = 10, alpha = 0, xi1 = 1/3, xi2 = 1/3)

Value

The matrix of offspring genotype log-likelihoods.

Arguments

n

Sample size.

g1

The first parent's genotype.

g2

The second parent's genotype.

rd

The read depth.

alpha

The double reduction rate.

xi1

The first parent's preferential pairing parameter.

xi2

The second parent's preferential pairing parameter.

Author

David Gerard

Examples

Run this code
set.seed(1)
simf1gl(n = 10, g1 = 1, g2 = 2)

Run the code above in your browser using DataLab