cliqueSurvivalTest: Perform survival test on all the cliques of the graph

Description Usage Arguments Details Value See Also Examples

Description

This function performs survival test on given pathway using a matrix with survival annotation

Usage

1
2
3
cliqueSurvivalTest(expr, survAnnot, graph,
  pcsSurvCoxMethod = c("regular", "sparse"), alwaysShrink = FALSE,
  maxPCs = 10, survFormula = "Surv(days, status) ~", robust = FALSE)

Arguments

expr

expression matrix

survAnnot

a data frame for survival annotations specified according to the survFormula. The data frame must contain days and status

graph

a graphNEL object for a graph

pcsSurvCoxMethod

a method to perform PCA. Can be "regular", "topological", "sparse" for regular PCA, topological based PCA and sparse PCA, respectively. The latter one (sparse) is particularly suited for cliques only

alwaysShrink

if TRUE, always shrink the covariance matrix. Deafult=FALSE

maxPCs

maximum number of PCs used in the cox formula "Surv(days, status) ~ PC1.."

survFormula

the formula used in Coxph analysis. Defaut="Surv(days, status) ~". Please note that the formula end with '~' meaning that PCs will be added

robust

should be used the robust mode for cox

Details

Survival test is made according to survFormula. With "regular" method, a regular PCA analysis is used to compute PCs. With "sparse" method, a penalized regression is used for the estimation of PCs (as implemented in elasticnet)

Value

A survCliques object

See Also

pathwaySurvivalTest, getTopLoadGenes

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if (require(graphite)) {
  data(exp)
  data(survAnnot)
  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]
  cliqueSurvivalTest(expr, survAnnot, graph, maxPCs=2)
}

cavei/survClip documentation built on June 19, 2019, 8:46 p.m.