If any nodes are selected in the current Cytocape window, they will be unselected.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
1 2 3 4 5 6 7 8 9 10 11 12
## Not run: # first, delete existing windows to save memory: deleteAllWindows(CytoscapeConnection()) cw <- CytoscapeWindow ('clearSelection.test', graph=makeSimpleGraph()) displayGraph (cw) layoutNetwork(cw) selectNodes (cw, 'A') print (getSelectedNodeCount (cw)) # should be 1 clearSelection (cw) print (getSelectedNodeCount (cw)) # should be 0 ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.