ibs.dist: Computes distribution of number of IBS alleles for profiles with stated relationship
Description
Computes, per locus, the distribution of a Kinship Index (KI) comparing hypotheses hyp.1
vs hyp.2
for profiles with a given relationship (hyp.true
), optionally with respect to the case profile (e.g. "FS"
for full siblings).
Usage
ibs.dist(x, hyp.true = "UN", freqs = get.freqs(x), markers = names(freqs), theta = 0)
Arguments
x
(optional) An integer matrix specifying a single profile.
hyp.true
A character string specifying the true relationship between the two profiles. Forwarded to ibdprobs, e.g. "FS" (full sibling) or "PO" (parent/offspring) or "UN" (unrelated). Defaults to "UN". freqs
A list specifying the allelic frequencies.
markers
A character vector giving the markers for which the distribution is derived. Default to the markers of freqs
.
theta
numeric value specifying the amount of background relatedness.
Value
A list of distributions, where a distribution is specified by a list with vectors x
, fx
.