| tnsGSEA2,TNS-method {RTNsurvival} | R Documentation |
Works as a wrapper for tni.gsea2, performing a
2-tailed GSEA analysis on a TNI class object and integrating
the results into the TNS class object.
## S4 method for signature 'TNS' tnsGSEA2(tns, ...)
tns |
A TNS class, which has been preprocessed |
... |
Additional parameters passed to |
A TNS class, with added regulon activity scores.
tni.gsea2 for information on all
parameters.
# load survival data
data(survival.data)
# load TNI-object
data(stni, package = "RTN")
stns <- tni2tnsPreprocess(stni, survivalData = survival.data,
keycovar = c('Grade','Age'), time = 1, event = 2)
stns <- tnsGSEA2(stns)
## Not run:
# parallel version with SNOW package!
library(snow)
options(cluster=snow::makeCluster(3, "SOCK"))
stns <- tnsGSEA2(stns)
stopCluster(getOption("cluster"))
## End(Not run)