View source: R/ibd1.parental.R
ibd1.parental | R Documentation |
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.
ibd1.parental(x, id.pair, Nsim, cM = 10000, verbose = FALSE)
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. |
The averaged values.
Magnus Dehli Vigeland and Thore Egeland.
library(ibdsim2)
x = doubleFirstCousins()
ids = leaves(x)
ibd1.parental(x, ids, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.