gseaResQvalue | R Documentation |
Read GSEA statistics (log-transformed q-value [q], Enrichment Score [ES], or normalized Enrichement Score [NES]) to profile pathway activitities.
gseaResQvalue(file, threshold = 1e-04, log = FALSE, posLog = FALSE)
gseaResES(file, normalized = FALSE)
file |
GSEA output tab-delimited file, usually with the file name ‘gsea\_report\_for.*\_pos\_.*\.xls’ or ‘gsea\_report\_for.*\_neg\_.*\.xls’. Located in GSEA output directory. |
threshold |
Valid for q value: what is the minimum threshold of q-value
(FDR)? It can be set to the number of permutation tests divided by |
log |
Valid for q value: whether the FDR q value should be transformed
by base-10 (log10) logarithm. By default |
posLog |
Valid for q value: whether the logged FDR q value should be
negated to get positive value.This is useful when the sign of |
normalized |
Valid for enrichment score: if set to |
In many cases we want to extract pathway signatures from a set of
experiments. Both gseaResQvalue
and gseaES
can read GSEA
output files and extract desired statistic: q-value, ES or NES.
See the GSEA document for definitions of the three values. For comparing a few conditions to another, we recommend using q-value. For large-scale comparisons between pathways (or other gene signatures), we have found ES very useful. It is adviced to choose proper statistic to extract pathway signatures only when you are sure of the aim. Using any statistic without good reasoning may as always lead to wrong intepretations of the data.
These functions are usually not directly called by end-users. See
gseaFingerprint
and link{gseaFingerprintMatrix}
instead.
A data.frame
with two columns: name
and value
.
The column name
contains gene signatures (e.g. pathways), and
value
contains the statistic.
gseaResQvalue()
: The function to extract the Q-value
Extract Q-values from GSEA result file
Jitao David Zhang <jitao_david.zhang@roche.com>, with input from Martin Ebeling, Laura Badi and Isabelle Wells.
GSEA documentation http://www.broadinstitute.org/gsea/doc/GSEAUserGuideFrame.html
End-users will probably find gseaFingerprint
and
link{gseaFingerprintMatrix}
more useful, since they operate on the
level of GSEA result directories, instead of single output tab-delimited
files.
gseaDirZip <- system.file(package="ribiosGSEA","extdata/gseaDirs.zip")
tmpDir <- tempdir()
utils::unzip(gseaDirZip, exdir=tmpDir)
gseaDir <- file.path(tmpDir, "gseaDirs")
gseaFile <- file.path(gseaDir,
"VitaminA_24h_High",
"gsea_report_for_na_neg_1336489010730.xls")
gseaQ <- gseaResQvalue(gseaFile)
gseaLogQ <- gseaResQvalue(gseaFile, log=TRUE)
gseaQscore <- gseaResQvalue(gseaFile, log=TRUE, posLog=TRUE)
gseaEs <- gseaResES(gseaFile)
gseaNes <- gseaResES(gseaFile, normalized=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.