Learn R Programming

Meiosis (version 1.0.2)

realized_coancestry: Compute co-ancestry

Description

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

Usage

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?

Value

Double. Realized coefficient of co-ancestry.

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).

Examples

Run this code
## Not run: ------------------------------------
# data(exdat, package = 'Meiosis')
# Meiosis::realized_coancestry(Meiosis::dh_xo(exdat$founder, exdat$xoparam),
#                              Meiosis::dh_xo(exdat$founder, exdat$xoparam))
## ---------------------------------------------

Run the code above in your browser using DataLab