Description Usage Arguments Details Value Member functions Author(s) See Also Examples
These classes extend the HyperGResult
class from the Category package to perform enrichment
calculation quickly for multiple gene sets.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | ## S4 method for signature 'ListHyperGResult'
summary(object, pvalue = pvalueCutoff(object),
categorySize = NULL)
## S4 method for signature 'ListHyperGResult'
htmlReport(r, file = "", append = FALSE,
label = "", digits = 3, summary.args = NULL)
## S4 method for signature 'ListHyperGResult'
pvalues(r)
## S4 method for signature 'ListHyperGResult'
sigCategories(r, p)
## S4 method for signature 'ListHyperGResult'
geneCounts(r)
## S4 method for signature 'ListHyperGResult'
expectedCounts(r)
## S4 method for signature 'ListHyperGResult'
oddsRatios(r)
## S4 method for signature 'ListHyperGResult'
universeCounts(r)
## S4 method for signature 'ListHyperGResult'
geneMappedCount(r)
## S4 method for signature 'ListHyperGResult'
universeMappedCount(r)
## S4 method for signature 'ListHyperGResult'
geneIdsByCategory(r, catids = NULL)
## S4 method for signature 'ListHyperGResult'
geneIdUniverse(r, cond = FALSE)
|
object,r |
A |
pvalue,p |
Numeric vector of length one, the p-value limit, up to which the terms are listed. |
categorySize |
A numeric vector of length one, or |
file |
A file name, or a connection object. The result is written
here. If it is |
append |
Logical scalar, whether to append the HTML code to the given file, or remove its previous contents if it already exists. |
label |
An HTML label ( |
digits |
The number of digits to use for the numeric columns. |
summary.args |
A list of arguments to pass to the |
catids |
The categories for which the genes are listed. All
categories will be listed if this argument is |
cond |
Currently not used. |
A ListHyperGResult object can store the results of
hypergeometric tests, several gene sets against the same
universe. ListHyperGRresult is an extension of
HyperGResult, as defined in the Category package.
More precisely, ListHyperGResult is an abstract class, it is
not possible to instantiate objects from it. Its extensions are be
used instead:
GOListHyperGResult, KEGGListHyperGResult,
CHRListHyperGResult and miRNAListHyperGResult.
pvalues, geneCounts, expectedCounts,
oddsRatios and universeCounts return a list of named
numeric vectors.
geneMappedCount returns a numeric vector,
universeMappedCount returns a numeric vector of length one.
sigCategories returns a list of character vectors.
geneIdsByCategory returns a list of lists of character vectors.
geneIdUniverse returns a list of character vectors.
summary returns a list of data frames with columns:
‘Pvalue’, ‘OddsRatio’, ‘ExpCount’,
‘Count’, ‘Size’ and optionally ‘drive’.
htmlReport returns a list of chracter vectors, invisibly.
conditional returns a logical vector of length one.
ontology returns a character vector of length one.
Most of the member functions are analogous to the ones defined for
HyperGResult in the Category package. Usually the only
difference is that they return a list of vectors, with one entry for
each gene set, instead of just a single vector.
pvalues returns the p-values of the hypergeomatric
tests. A list is returned, with one numeric vector entry for each
input gene set. The p-values for each gene set are ordered
according to decreasing significance.
geneCounts returns the number of genes from the gene set that
are annotated with the given term. This is returned for all input gene
sets, in a list.
expectedCounts returns the number of genes that are expected to
be annotated with the given term, just by chance. This is calculated
for all input gene sets, and returned as a list.
oddsRatios returns the odds ratios for each term tested, for
all gene sets, in a list of numeric vectors.
universeCounts returns the number of genes from the universe
that are annotated with the given term, for all gene sets, in a list.
geneMappedCount gives the size of the gene sets, as used in the
algorithm. This can be different than the size of the input gene sets,
because of the elimination of duplicates and genes that are not in the
universe, before the actual computation.
universeMappedCount gives the size of the gene universe, as
used in the computation. This can be different than the size given by
the user, because duplicates are eliminated before the computation.
sigCategories returns the significant terms, at the given
p-value threshold, for all gene sets, as a list.
geneIdsByCategory returns a list of lists, one entry for each
input gene set. Every entry is a list itself and for each tested term
it gives the gene ids from the gene set that are annotated with the
given term.
geneIdUniverse returns a list of character vectors, one for
each term that was tested, giving the ids of the genes from the
universe that are annotated with that term.
summary returns a list of data frames, one for each input gene
set. Each data frame has columns:
‘Pvalue’, ‘OddsRatio’, ‘ExpCount’,
‘Count’, ‘Size’ and optionally ‘drive’.
Each row of the data frame corresponds to a tested term.
htmlReport creates a HTML summary from a
ListHyperGParams object. This consists of one table for each
input gene get. The summary can be written to a file, but it is also
returned in a list of character vectors. There is one list entry for
each input gene set, and each element of the character vector
corresponds to one line of HTML code. You need the xtable
package to use this function.
The following functions are defined for GOListHyperGResult
objects only.
conditional returns a logical vector of length one, whether the
test was conditional or not. Conditional testing is currently not
implemented, please see the GOstats package for a working
implementation.
ontology returns a character vector of length one, the name of
the ontology for the GO test.
Gabor Csardi csardi.gabor@gmail.com
Functions for enrichment calculation of ISA modules:
ISAGO, ISAKEGG, ISACHR,
ISAmiRNA, ISAEnrichment.
Perhaps see also the vignette in the GOstats package.
1 2 3 4 5 | data(ALLModulesSmall)
GO <- ISAGO(ALLModulesSmall)
GO$CC
sigCategories(GO$CC)[[1]]
summary(GO$CC)[[1]][,1:5]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.