Nothing
artp2 <- function(group.id, gene.id, pathway.cutpoint, gene.name, options){
msg <- paste("Computing pathway p-value:", date())
if(options$print) message(msg)
nthread <- options$nthread
nperm <- options$nperm
out.dir <- options$out.dir
id.str <- options$id.str
file.prefix <- paste0(out.dir, "/", id.str)
ngene <- length(gene.id) # total number of genes in a pathway
ncp <- length(pathway.cutpoint)
pathway.pvalue <- -1.0
arr.rank <- rep(0, ncp)
gene.pval <- rep(0, ngene)
tmp <- .C("artp2_main", as.character(file.prefix), as.integer(nperm),
as.integer(nthread), as.integer(ngene),
as.integer(group.id), as.integer(gene.id),
as.integer(pathway.cutpoint), as.integer(ncp),
pathway.pvalue = as.double(pathway.pvalue),
arr.rank = as.integer(arr.rank),
gene.pval = as.double(gene.pval),
PACKAGE = "ARTP2")
pathway.pvalue <- tmp$pathway.pvalue
arr.rank <- tmp$arr.rank
gene.pval <- tmp$gene.pval
names(gene.pval) <- gene.name
gene.pval <- sort(gene.pval, decreasing = FALSE)
id <- which.min(arr.rank)
most.sig.genes <- names(gene.pval)[1:pathway.cutpoint[id]]
list(pathway.pvalue = pathway.pvalue, most.sig.genes = most.sig.genes, arr.rank = arr.rank)
}
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.