Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/ibd1.parental.R
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.
1 2 3 | ibd1.parental(x, id.pair, Nsim, cM = 10000, verbose = F, ...)
uniformMap(Mb = NULL, cM = NULL, M = NULL, cm.per.mb = 1,
chromosome = 1)
|
x |
A pedigree in the form of a |
id.pair |
Integer vector of length 2 giving the pair of individuals. |
Nsim |
Integer. Number of simulations. |
cM |
NULL, or a non-negative number: The distance in centiMorgan between the two loci. |
verbose |
logical |
... |
Further arguments to be passed on to |
Mb |
Double |
M |
Double |
cm.per.mb |
Double |
chromosome |
integer |
This is a wrapper for IBDsim
.
alpha.sample |
Each column gives the four alpha values. |
alpha.hat |
Estimates of alpha. |
Magnus Dehli Vigeland and Thore Egeland
1 2 3 4 5 6 | library(IBDsim)
x = doubleFirstCousins()
ids = c(9,10)
ibd1.parental(x, ids, 10)$alpha.hat
x = swapSex(x,3)
ibd1.parental(x, ids, 10)$alpha.hat
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.