This function removes all selected edges in Cytoscape. These edges will still exist in the corresponding R graph until you delete them there as well.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
selectEdges cy2.edge.names deleteSelectedNodes
1 2 3 4 5 6 7 8 9 10 11 12 13 14
## Not run: # first, delete existing windows to save memory: deleteAllWindows(CytoscapeConnection()) cw <- CytoscapeWindow ('deleteSelectedEdges.test', graph=makeSimpleGraph()) displayGraph (cw) redraw (cw) layoutNetwork(cw, 'force-directed') print (cy2.edge.names (cw@graph)) # find out Cytoscape's names for these edges selectEdges (cw, "B (synthetic lethal) C") deleteSelectedEdges (cw) redraw (cw) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.