Description Usage Arguments Value Examples
View source: R/geneSetAnalysis.R
Query MSigDb to find all gene sets that query gene is in, then compute the similarity of the gene sets. Return both the similarity scores and the gene set information that was retrieved. This is a wrapper function which performs the full gene set analysis pipeline (not including buildNetworkPlot). Note that this function is computationally heavy and may take a while to run (this is mostly due to large, slow MSigDb API queries).
1 | geneSetAnalysis(geneId, queryType, similarityMetric = "overlap")
|
geneId |
The ENSEMBL ID of the gene you want to query |
queryType |
The type of gene sets you want to retrieve; see MSigDb for
possible subcategories (use |
similarityMetric |
The algorithm used to compute the similarity between gene sets. The default (and only option currently) is "overlap". |
A named list with two fields: "geneSets" and "similarityDf".
"geneSets" contains a data.table of all the gene sets containing the query
gene and belonging to the queryType category (see
?PGxVision::getGeneSets
for more info). "similarityDf" contains a
data.frame with the similarity scores for each pair of gene sets (see
?PGxVision::computeGeneSetSimilarity
for more info).
1 | geneSetAnalysis("ENSG00000000971", "GO:BP")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.