1 | getVerhaakSubtypes(eset)
|
eset |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ##---- 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 (eset)
{
supplementary.data <- read.xls("../inst/extdata/JCI65833sd1.xls",
sheet = 7, skip = 1)
genesets <- lapply(levels(supplementary.data$CLASS), function(y) as.character(supplementary.data[supplementary.data$CLASS ==
y, 1]))
names(genesets) <- levels(supplementary.data$CLASS)
gsva.out <- gsva(exprs(eset), genesets, method = "ssgsea",
min.sz = 10, tau = 0.75, parallel.sz = 1)
gsva.out <- t(gsva.out)
subclasses <- as.factor(apply(gsva.out, 1, function(x) colnames(gsva.out)[which.max(x)]))
pData(eset) <- data.frame(pData(eset), Verhaak.subtypes = subclasses)
return(list(Annotated.eset = eset, gsva.out = gsva.out))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.