View source: R/methodsEmapInternal.R
validateCreateEnrichMapMultiComplexArg | R Documentation |
Validate the arguments passed to
validateCreateEnrichMapMultiComplex() 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.
validateCreateEnrichMapMultiComplexArg(
gostObjectList,
queryInfo,
showCategory,
groupCategory,
categoryLabel,
categoryNode,
line
)
gostObjectList |
a |
queryInfo |
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(parentalNapaVsDMSOEnrichment)
data(rosaNapaVsDMSOEnrichment)
queryDataFrame <- data.frame(queryName=c("parental_napa_vs_DMSO",
"rosa_napa_vs_DMSO"), source=c("KEGG", "WP"), removeRoot=c(TRUE, TRUE),
termIDs=c("", ""), groupName=c("parental - KEGG", "rosa - WP"),
stringsAsFactors=FALSE)
## Check that all arguments are valid
enrichViewNet:::validateCreateEnrichMapMultiComplexArg(
gostObjectList=list(parentalNapaVsDMSOEnrichment,
rosaNapaVsDMSOEnrichment),
queryInfo=queryDataFrame,
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.