directMatch {dvir} | R Documentation |
Computes the likelihood ratio comparing if two samples are from the same individual or from unrelated individuals.
directMatch(x, y, g1 = NULL, g2 = NULL, .skipChecks = FALSE)
x , y |
Typed singletons. |
g1 , g2 |
(Optional) Named character vectors with genotypes for |
.skipChecks |
A logical indicating that various input checks can be skipped,
e.g. when called by |
A nonnegative likelihood ratio.
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]])