haploMatch | R Documentation |
For a set of given haplotypes finds best matching haplotypes from a canditate list with loss function being the number of non equal elements.
haploMatch(haploStrA, haploStrB)
haploStrA |
Matrix with given haplotype structure.
|
haploStrB |
Matrix of a candidate list of haplotypes.
|
Integer vector with indexes of haploStrB which fit haploStrA best.
Compare the reconstruction with 3 dominant haplotypes to the one with 7 dominant haplotypes
data(ExampleDataset)
reconstruction1 <- haploSep(data = Y, nHaplo = 3, stabEval = FALSE, bias = TRUE)
reconstruction2 <- haploSep(data = Y, nHaplo = 7, stabEval = FALSE, bias = TRUE)
haploMatch(reconstruction1$haploStr, reconstruction2$haploStr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.