Description Usage Arguments Value Author(s) References See Also Examples
convertToGeneAnswers
constitutes a wrapper function for converting the results of doEnrichment
function to a GeneAnswers-class
object. This way the user can utilize the functions of GeneAnswers
package to visualize the results of InterMineR enrichment analysis.
1 2 3 4 5 6 7 8 9 | convertToGeneAnswers(
enrichmentResult,
geneInput,
geneInputType,
geneExprProfile,
annLib,
categoryType,
enrichCategoryChildName
)
|
enrichmentResult |
a list containing the results of |
geneInput |
a data.frame containing the gene identifiers used for the InterMineR enrichment analysis, and possible values associated with them. |
geneInputType |
a character string specifying the InterMineR gene identifier type of the values assigned to geneInput argument. InterMineR identifiers for each Mine can be retrieved with |
geneExprProfile |
a data.frame containing gene expression information (optional) |
annLib |
name of given annotation library file or user provided annotation list. |
categoryType |
name of given annotation category or NULL for user provided annotation list. |
enrichCategoryChildName |
a character string specifying the InterMIneR annotation category identifier. This argument must be assigned manually if: 1) 'enrichIdentifier' column is missing from the widgets of the Mine used by 2) the value of 'enrichIdentifier' for the enrichment widget used by InterMineR identifiers for each Mine can be retrieved with |
a GeneAnswers-class
object.
InterMine Team
https://bioconductor.org/packages/release/bioc/html/GeneAnswers.html
doEnrichment
, GeneAnswers-class
, getWidgets
, getModel
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 29 30 31 32 | #The example code is hashed out as it requires an API key to run
# load human genes which are associated with Diabetes (retrieved from HumanMine)
#data("PL_DiabetesGenes")
# get Gene.primaryIdentifiers (ENTREZ Gene identifier)
#hsa_gene_entrez = as.character(PL_DiabetesGenes$Gene.primaryIdentifier)
# perform enrichment analysis with InterMineR
#im.human = initInterMine(listMines()["HumanMine"], 'Your token') #change here to your token
#class(im.human)
#hsa_enrichResult = doEnrichment(
# im.human,
# genelist = "PL_DiabetesGenes",
# widget = "go_enrichment_for_gene",
# correction = "Benjamini Hochberg"
#)
# convert InterMineR enrichment analysis results to a GeneAnswers object
# Do not run unless you have installed and loaded GeneAnswers package!
# load GeneAnswers
#library(GeneAnswers)
#hsa_geneanswers = convertToGeneAnswers(
# enrichmentResult = hsa_enrichResult,
# geneInput = data.frame(GeneID = as.character(hsa_gene_entrez),
# stringsAsFactors = FALSE),
# geneInputType = "Gene.primaryIdentifier",
# annLib = 'org.Hs.eg.db',
# categoryType = "GO"
# enrichCategoryChildName = "Gene.goAnnotation.ontologyTerm.parents.identifier"
#)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.