Nothing
library(graphite)
library(survival)
data(exp)
data(graph)
row.names(exp) <- paste0("ENTREZID:", row.names(exp))
genes <- intersect(graph::nodes(graph), row.names(exp))
graph <- graph::subGraph(genes, graph)
expr <- exp[genes, , drop=FALSE]
test_computePCs_topological <- function(){
cliques <- clipper:::extractCliquesFromDag(graph, root=NULL)
test <- computePCs(t(expr), shrink=FALSE, method="topological", cliques=cliques, maxPCs=5)
checkEqualsNumeric(dim(test$x), c(73,5)) ##
}
test_computePCs_regular <- function(){
test <- computePCs(t(expr), shrink=FALSE, method="regular", maxPCs=5)
checkEqualsNumeric(dim(test$x), c(73,5)) ##
}
test_computePCs_sparse <- function(){
test <- computePCs(t(expr), shrink=FALSE, method="sparse", maxPCs=5)
checkEqualsNumeric(dim(test$x), c(73,5)) ##
}
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.