View source: R/methodsInternal.R
createCXJSONForCytoscape | R Documentation |
Create a CX JSON text that represent the network which includes information about nodes and edges present in the network.
createCXJSONForCytoscape(nodeEdgeInfo, title)
nodeEdgeInfo |
a |
title |
a |
character
string that represent the network in a CX JSON
format.
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)
jsonFormat <- enrichViewNet:::createCXJSONForCytoscape(
nodeEdgeInfo=information, title="WikiPathways")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.