fgl2ibd: Score IBD state.

Description Usage Arguments Details Value Examples

Description

fgl2ibd determines pairwise IBD state given the four founder genome labels of two individuals at a marker.

Usage

1
fgl2ibd(fgl1p, fgl1m, fgl2p, fgl2m)

Arguments

fgl1p, fgl1m, fgl2p, fgl2m

positive integer, represents founder genome label.

Details

IBD states take value from 1 to 15, which represent the indices of the underlying IBD states from 1111 to 1234 in lexicographical order. E.g., output 1 means IBD state 1111, output 2 means IBD state 1112 etc. Recoding in, e.g., Jacquard order, can be obtained using recode.ibd.

Value

A value between 1 and 15 representing index of IBD state in lexicographical order.

Examples

1
2
3
4
fgl2ibd(1, 1, 1, 1)
fgl2ibd(1, 2, 1, 2)
fgl2ibd(3, 4, 5, 6)
fgl2ibd(4, 5, 4, 4)

bowenwang7/r3 documentation built on May 17, 2019, 6:39 p.m.