mergePM {dvir} | R Documentation |
Computes the direct matching LR of each pair of samples, and merges the matching samples.
mergePM(
pm,
threshold = 10000,
method = c("mostcomplete", "first", "combine"),
verbose = TRUE
)
pm |
A list of typed singletons. |
threshold |
LR threshold for positive identification. |
method |
A keyword indicating how to merging matching samples. See Details. |
verbose |
A logical. |
The available methods for merging matched samples are:
"mostcomplete": Use the sample with the highest number of non-missing genotypes
"first": Use the first in each group, according to the input order
"combine": Not implemented yet.
A list with the following entries:
groups
: A list containing the groups of matching samples.
LRmat
: A symmetric matrix (with 0s on the diagonal) containing the direct
matching LR values.
nonmissing
: A named vector reporting the number of non-missing genotypes
for each sample.
pmReduced
: A list of singletons. If use
is "best" or "first", this is
a subset of the input pm
.
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")
mergePM(pm)