RCy3 2.22.1
This vignette will show you how to convert networks between graphNEL and Cytoscape.
if(!"RCy3" %in% installed.packages()){
install.packages("BiocManager")
BiocManager::install("RCy3")
}
library(RCy3)
The whole point of RCy3 is to connect with Cytoscape. You will need to install and launch Cytoscape:
cytoscapePing()
The graph package is a popular network tool among R users. With RCy3, you can easily translate graphNEL networks to Cytoscape networks!
Create a simple GraphNEL object
g <- makeSimpleGraph()
Now pass it along to Cytoscape:
createNetworkFromGraph(g,"myGraph")
Inversely, you can use createGraphFromNetwork() in RCy3 to retreive vertex (node) and edge data.frames to construct a GraphNEL object.
g2 <- createGraphFromNetwork("myGraph")
Compare the round-trip result for yourself…
g
g2