Description Usage Arguments Value Author(s) See Also Examples
Expand the selection by adding the first neighbors, in the Cytosape network, of the nodes currently selected (again, in the Cytoscape network). The R graph is unchanged.
1 | selectFirstNeighborsOfSelectedNodes (obj)
|
obj |
a |
None.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
clearSelection getSelectedNodeCount getSelectedNodes hideSelectedNodes getFirstNeighbors
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 ('selectFirstNeighborsOfSelecteNodes.test', graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork(cw)
clearSelection (cw)
selectNodes (cw, 'A')
selectFirstNeighborsOfSelectedNodes (cw)
print (sort (getSelectedNodes (cw)))
# [1] "A" "B" "C"
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.