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, geno1 = NULL, geno2 = NULL)

Arguments

x, y

Typed singletons.

geno1, geno2

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

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.2.1 Index]