Description Usage Arguments Value Author(s) Examples
Retrieve the identifiers of all the nodes selected in the current graph.
1 | getSelectedNodes(obj)
|
obj |
a |
A list of character strings.
Paul Shannon
1 2 3 4 5 6 7 8 | cw <- new.CytoscapeWindow ('getSelectedNodes.test', graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork(cw, 'jgraph-spring')
redraw (cw)
# in Cytoscape, interactively select two nodes, or
selectNodes (cw, c ('A','B'))
getSelectedNodes (cw)
# [1] "A" "B"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.