directMatch {dvir}R Documentation

Direct match LR

Description

Computes the likelihood ratio comparing if two samples are from the same individual or from unrelated individuals.

Usage

directMatch(x, y, g1 = NULL, g2 = NULL, .skipChecks = FALSE)

Arguments

x, y

Typed singletons.

g1, g2

(Optional) Named character vectors with genotypes for x and y respectively.

.skipChecks

A logical indicating that various input checks can be skipped, e.g. when called by mergePM().

Value

A nonnegative likelihood ratio.

See Also

mergePM().

Examples


pm = singletons(c("V1", "V2", "V3")) |>
  addMarker(V1 = "1/1", V2 = "2/2", V3 = "1/1",
            afreq = c("1" = 0.01, "2" = 0.99), name = "L1")

directMatch(pm[[1]], pm[[2]])
directMatch(pm[[1]], pm[[3]])


[Package dvir version 3.3.0 Index]