View source: R/methodsInternal.R
extractInformationWhenIntersection | R Documentation |
Create a list containing all node and edge information needed to create the network
extractInformationWhenIntersection(gostResults)
gostResults |
a |
list
containing 2 entries:
"geneNodes"
: a data.frame
containing the information
about the nodes present in the network. The nodes are genes.
"termNodes"
: a data.frame
containing the information
about the nodes present in the network. The nodes are terms.
"edges"
: a data.frame
containing the information about
the edges present in the network. The edges connect one gene to one term.
Astrid DeschĂȘnes
## Loading dataset containing result from an enrichment analysis done with
## gprofiler2
data(parentalNapaVsDMSOEnrichment)
## Only retained the GO Molecular Function results
results <- parentalNapaVsDMSOEnrichment$result[
parentalNapaVsDMSOEnrichment$result$source == "GO:MF", ]
## Extract node and edge information
information <-
enrichViewNet:::extractInformationWhenIntersection(
gostResults=results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.