ibd1.parental: Estimates for a pair of non-inbred individuals the...

View source: R/ibd1.parental.R

ibd1.parentalR Documentation

Estimates for a pair of non-inbred individuals the probabilities of parental origin when IBD is 1

Description

Assume IBD is 1 for a pair of non-inbred individuals. The function estimates the probabilities of the four possible combinations of parental origin: (i) paternal-paternal, (ii) paternal-maternal, (iii) maternal-paternal and (iv) maternal-maternal.

Usage

ibd1.parental(x, id.pair, Nsim, cM = 10000, verbose = FALSE)

Arguments

x

A 'ped' object.

id.pair

Integer vector of length 2 giving the pair of individuals.

Nsim

Integer. The number of simulations.

cM

Double. The length of the 'uniformMap'.

verbose

Logical.

Value

The averaged values.

Author(s)

Magnus Dehli Vigeland and Thore Egeland.

Examples


library(ibdsim2)
x = doubleFirstCousins()
ids = leaves(x)
ibd1.parental(x, ids, 10)

thoree/mut2 documentation built on May 16, 2023, 7:56 p.m.