Description Usage Arguments Value Author(s) See Also Examples
Transfer the named node attribute, for all named nodes, to Cytoscape. The attribute must be previously defined on the nodes of the graph: see nodeDataDefaults in the graph class.This method is useful if you wish to run a 'movie'. For example, if you have a timecourse experiment, with different values at successive time points of the 'lfc' (log fold change) measurements or 'pValue' of each node. With a node color and node size rule already specified, you can animate the display of the nodes across time in the graph by pumping new values of the attributes using this method.
1 | setNodeAttributesDirect(obj, attribute.name, attribute.type, node.names, values)
|
obj |
a |
attribute.name |
a |
attribute.type |
a |
node.names |
a |
values |
a list of objects of the type specified by 'attribute.name', one per node |
None.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
setNodeAttributes setEdgeAttributes setEdgeAttributesDirect
1 2 3 4 5 6 7 8 9 | ## Not run:
# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cw <- CytoscapeWindow ('setNodeAttributesDirect.test', graph=makeSimpleGraph())
sendNodes(cw)
setNodeAttributesDirect (cw, 'count', 'int', c ('A', 'B', 'C'), c (4, 8, 12))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.