Estimate the probability of no IBD sharing in a pairwise relationship.
A list of genome simulations, as output by
A vector with two ID labels. If NULL (default), these are deduced
A nonnegative number (default:0). Only IBD segments longer than this are included in the computation.
A list with the following two entries:
zeroprob: The fraction of
sims in which
ids have no IBD sharing
stErr: The standard error of
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
### # The following example computes the probability of # no IBD sharing between a pair of fourth cousins. # We also show how the probability is affected by # truncation, i.e., ignoring short segments. ### # Define the pedigree x = cousinPed(4) cous = leaves(x) # Simulate (increase N!) s = ibdsim(x, N = 10) # Probability of zero ibd segments. (By default all segs are used) zeroIBD(s, ids = cous) # Re-compute with positive threshold zeroIBD(s, ids = cous, threshold = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.