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 nodeColor and nodeSize rule already specified, you can animate the display of the nodes across time in the graph by pumping new values of the attributes attributes using this method, and then asking for a redraw. An example of such node-attribute-driven animation can be found here....[todo].
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.
Paul Shannon
setNodeAttributes setEdgeAttributes setEdgeAttributesDirect
1 2 3 | cw <- new.CytoscapeWindow ('setNodeAttributesDirect.test', graph=makeSimpleGraph())
stopifnot ('count' %in% noa.names (cw@graph))
result = setNodeAttributesDirect (cw, 'count', 'int', c ('A', 'B', 'C'), c (4, 8, 12))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.