View source: R/methodsEmapInternal.R
validateCreateEnrichMapArguments | R Documentation |
Validate the arguments passed to createEnrichMap() function.
First, the object containing the enrichment results must correspond to a
object created by gprofiler2
software. Second, the selected
source must at least have one enriched term in the results. Then, if the
source is 'TERM_ID', the listed terms must be present in the enrichment
results.
validateCreateEnrichMapArguments(
gostObject,
query,
source,
termIDs,
removeRoot,
showCategory,
groupCategory,
categoryLabel,
categoryNode,
line
)
gostObject |
a |
query |
a |
source |
a |
termIDs |
a |
removeRoot |
a |
showCategory |
a positive |
groupCategory |
a |
categoryLabel |
a positive |
categoryNode |
a positive |
line |
a non-negative |
TRUE
when all arguments are valid
Astrid DeschĂȘnes
## Load the result of an enrichment analysis done with gprofiler2
data(demoGOST)
## Check that all arguments are valid
enrichViewNet:::validateCreateEnrichMapArguments(gostObject=demoGOST,
query="query_1", source="GO:BP", termIDs=NULL, removeRoot=FALSE,
showCategory=20, groupCategory=FALSE,
categoryLabel=1.1, categoryNode=1, line=1.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.