realized_coancestry: Compute co-ancestry

Description Usage Arguments Details Value Examples

Description

Compute the realized coefficient of co-ancestry between two individuals.

Usage

1
realized_coancestry(individual_1, individual_2 = NULL, check = FALSE)

Arguments

individual_1

List. A first Individual in segmental representation.

individual_2

List. A second Individual in segmental representation. If NULL, self-co-ancestry of individual_1 is computed.

check

Logical. Should checks be performed?

Details

The realized coefficient of co-ancestry is (herein) defined as the probability that two alleles randomly drawn from one of the homologous chromosomes, each from one of the individuals, are identical-by-descent (as specified by origins of founder alleles).

Value

Double. Realized coefficient of co-ancestry.

Examples

1
2
3
4
5
6
## Not run: 
data(exdat, package = 'Meiosis')
Meiosis::realized_coancestry(Meiosis::dh_xo(exdat$founder, exdat$xoparam),
                             Meiosis::dh_xo(exdat$founder, exdat$xoparam))

## End(Not run)

DominikMueller64/Meiosis documentation built on May 6, 2019, 2:52 p.m.