Nothing
setGeneric("tau.dist", function(x, ...) standardGeneric("tau.dist"))
setMethod("tau.dist", signature=signature("matrix"),
function(x, abs=TRUE,diag=FALSE, upper=FALSE)
{
nr <- nrow(x)
rvec <- cor(t(x), method="kendall")
if(abs)
rvec <- 1-abs(rvec)
else
rvec <- 1-rvec
if(upper)
rvec <- rvec[upper.tri(rvec,diag=diag)]
else
rvec <- rvec[lower.tri(rvec,diag=diag)]
attributes(rvec) <- list(Size = nr, Labels = rownames(x),
Diag = diag, Upper = upper, methods =
"kendall", class = "dist")
rvec
} )
setMethod("tau.dist", signature=signature("ExpressionSet"),
function(x, abs=TRUE,diag=FALSE, upper=FALSE, sample=TRUE) {
if( sample ) ep = t(exprs(x)) else ep = exprs(x)
tau.dist(ep, abs, diag, upper)})
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.