View source: R/methodsInternal.R
createNetworkForCytoscape | R Documentation |
Create network from gprofiler2 results and load it into Cytoscape
createNetworkForCytoscape(nodeEdgeInfo, title, collection)
nodeEdgeInfo |
a TODO |
title |
a |
collection |
a |
TRUE
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)
## The creation of the network can only be done when Cytoscape
## is up and running
## A network using GO - Molecular Function enriched terms will be
## generated and loaded into Cytoscape
if (enrichViewNet:::isCytoscapeRunning()) {
enrichViewNet:::createNetworkForCytoscape(nodeEdgeInfo=information,
title="Test", collection="New Collection")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.