View source: R/SparrowResult-methods.R
resultNames | R Documentation |
The resultNames
, result
, and results
functions enable
you to explore the results of the analysis run with seas()
.
The results that are stored within a SparrowResult
object have a
more or less 1:1 mapping with the values passed as methods
, parameter
of the seas()
call.
Generates a table to indicate the number of genesets per collection that
pass a given FDR. The table provides separate groups of rows for each of
the methods
run in the seas()
call that generated that
generated x
.
resultNames(x)
result(x, ...)
## S3 method for class 'SparrowResult'
result(
x,
name = NULL,
stats.only = FALSE,
rank.by = c("pval", "t", "logFC"),
add.suffix = FALSE,
as.dt = FALSE,
...
)
results(
x,
names = resultNames(x),
stats.only = TRUE,
rank.by = c("pval", "logFC", "t"),
add.suffix = length(names) > 1L,
as.dt = FALSE
)
tabulateResults(
x,
names = resultNames(x),
max.p = 0.2,
p.col = c("padj", "padj.by.collection", "pval"),
as.dt = FALSE
)
x |
A |
... |
pass through arguments |
name |
the names of the results desired |
stats.only |
logical, set to |
rank.by |
the statistic to use to append a |
add.suffix |
If |
as.dt |
If |
names |
the names of the GSEA methods to be reported. By default, this function will display results for all methods. |
max.p |
The maximum padj value to consider a result significant |
p.col |
use padj or padj.by.collection? |
The product of an indivdual GSEA is consumed by the corresponding
do.<METHOD>
function and converted into a data.table of results that
is internally stored.
Use the resultNames()
function to identify which results are available
for interrogation. The result()
function returns the statistics of
one individual result, and the results()
function combines the results
from the specified methods into an arbitrarily wide data.table with
method
-suffixed column names.
Use the tabulateResults()
function to create a summary table that
tallies the number of significant genesets per collection, per method at
the specified FDR thresholds.
a data.table with the results from the requested method.
a data.table that summarizes the significant results per method per collection for the GSEA that was run
res <- exampleSparrowResult()
resultNames(res)
head(result(res, "camera"))
head(results(res))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.