1 | MNNpair(k, MNNgene, geneName)
|
k |
|
MNNgene |
|
geneName |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (k, MNNgene, geneName)
{
subgene = MNNgene[[k]]
index = match(subgene, geneName)
PP <- function(i, index, MNNgene, k, geneName) {
if (geneName[k] %in% MNNgene[[index[i]]])
return(geneName[index[i]])
}
if (length(index[!is.na(index)]) > 0) {
a = do.call(cbind, lapply(1:length(index), PP, index = index,
MNNgene = MNNgene, k = k, geneName = geneName))
if (!is.null(a)) {
return(a)
}
}
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.