ibdprobs: IBD probabilities

Description Usage Arguments Details Value Examples

Description

Returns the IBD probabilities for a pairwise relationship.

Usage

1

Arguments

x

A pairwise relationship (e.g. "FS" for full siblings), or a 3-vector of IDB-probabilities.

Details

When a character vector is supplied, the function returns the IBD probabilities. The following pairwise relationships are supported:

When a numeric vector is supplied (e.g. c(0,1,0)), the function checks the input for validity and returns the input; throws an error otherwise.

Value

Numeric of length 3 with the probabilities that 0, 1 or 2 alleles are identical by descent

Examples

1
identical(ibdprobs("PO"),ibdprobs(c(0,1,0))) #TRUE

DNAprofiles documentation built on Jan. 15, 2017, 9:27 p.m.