Nothing
# Estimate pairwise IBD coefficients and return
# list of certain parent-child and *not* parent-child.
#' @importFrom forrel ibdEstimate
inferPO = function(alleleMatrix, loci, list = FALSE, verbose = TRUE) {
ids = rownames(alleleMatrix)
if(is.null(ids))
ids = 1:nrow(alleleMatrix)
slist = lapply(ids, function(i)
setMarkers(singleton(i, sex = 0), alleleMatrix = alleleMatrix, locusAttributes = loci))
pairs = .comb2(ids)
kappa = ibdEstimate(slist, pairs, verbose = verbose)
# TODO: Let thresholds be function arguments instead of hard-coded
PO = kappa[kappa$k0 < 0.01 & kappa$k2 < 0.5, ]
notPO = kappa[kappa$N != 0 & kappa$k0 > 0.5, ]
if(list) {
PO = lapply(seq_len(nrow(PO)), function(r) PO[r, 1:2])
notPO = lapply(seq_len(nrow(notPO)), function(r) notPO[r, 1:2])
}
list(PO = PO, notPO = notPO, kappa = kappa)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.