Description Usage Arguments Value Author(s) See Also Examples
All selected nodes, their connecting edges, and associated attributes are copied into a new CytoscapeWindow, with the supplied title.
1 | createWindowFromSelection(obj, new.windowTitle, return.graph)
|
obj |
a |
new.windowTitle |
a |
return.graph |
an |
A new CytoscapeWindow object, with the graph slot populated with the new selected subgraph, if requested. If not requested, the graph slot holds an empty graph.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
selectNodes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cy <- CytoscapeConnection ()
title <- 'createWindowFromSelection demo'
cw <- CytoscapeWindow (title, makeSimpleGraph ())
displayGraph (cw)
layoutNetwork (cw)
selectNodes (cw, c ('A', 'C'))
new.window.title <- 'NEW WINDOW'
c2 <- createWindowFromSelection (cw, new.window.title, TRUE)
layoutNetwork (c2, 'force-directed')
print (getEdgeCount(c2)) # should be 1
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.