Description Arguments Value Methods Note See Also Examples
This method is a wrapper for the mgsa methods from the Bioconductor package mgsa, which must be available on the system for the methods to run. The model-based gene set analysis (MGSA) analyzes all categories at once by embedding them in a Bayesian network, naturally taking overlap between categories into account and avoiding the need for multiple testing correction. Please consult the mgsa help page for more details.
query |
A |
sets |
A |
universe |
A character string of gene ids for all genes that could potentially be of interest, e.g. all genes represented on a microarray, all annotated genes, etc. |
keep.scores |
Logical: store the identifiers for the genes detected in 'query' and 'sets' ? (Default: FALSE) The size of the generated CMAPResults object increases with the number of contained gene sets. For very large collections, setting this parameter to 'TRUE' may require large amounts of memory. |
element |
A character string corresponding to the assayDataElementName of the NChannelSet object to be thresholded on the fly with the |
lower |
The lower threshold for the |
higher |
The 'higher' threshold for the |
min.set.size |
Number of genes a gene set induced by |
... |
Additional arguments passed to mgsa function from the mgsa package, including the following:
|
A CMAPResults object. The reported p-values represent '1-marginal posterior probability'. For the 'effect' column, the p-values have been transformed to z-scores using a standard normal distribution.
signature(query = "GeneSet", sets = "CMAPCollection", universe = "character")
signature(query = "GeneSet", sets = "NChannelSet", universe = "character")
signature(query = "SignedGeneSet", sets = "CMAPCollection", universe = "character")
signature(query = "SignedGeneSet", sets = "NChannelSet", universe = "character")
signature(query = "GeneSetCollection", sets = "CMAPCollection", universe = "character")
signature(query = "GeneSetCollection", sets = "NChannelSet", universe = "character")
signature(query = "GeneSetCollection", sets = "GeneSetCollection", universe = "character")
signature(query = "GeneSet", sets = "GeneSetCollection", universe = "character")
signature(query = "GeneSet", sets = "GeneSet", universe = "character")
signature(query = "CMAPCollection", sets = "CMAPCollection", universe = "character")
signature(query = "CMAPCollection", sets = "GeneSetCollection", universe = "character")
This Bayesian approach does not require any additional correction of p-values for multiple testing. For consistency, the returned CMAPResults object contains a padj column duplicating the content of the pval column.
mgsa
1 2 3 4 5 6 7 8 9 10 11 12 13 | if( is.element("mgsa", installed.packages()[,1])){
require( "mgsa", character.only = TRUE )
data(gCMAPData)
gene.set.collection <- induceCMAPCollection(gCMAPData, "z",
higher=2, lower=-2)
## compare all gene sets in the gene.set.collection
## to each other
universe = featureNames(gCMAPData)
mgsa_score(gene.set.collection, gene.set.collection,
universe = universe)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.