
Last chance! 50% off unlimited learning
Sale ends in
Note that node (and node) attibutes are defined, not just for a specific, single CytoscapeWindow, but for an entire Cytoscape application session. Thus if you have two nodes (or nodes) with the same ID (the same name) in two different windows, adding a node attribute results in both nodes having that attribute.
getNodeAttribute(obj, node.name, attribute.name)
CytoscapeConnectionClass
object or CytoscapeWindow
object. character string
specifying the
Cytoscape-style name of an node.character string
, the name of the
attribute you wish to retrieve.
window.name = 'demo.getNodeAttribute'
cw = new.CytoscapeWindow (window.name, graph=makeSimpleGraph ())
displayGraph (cw)
redraw (cw)
layoutNetwork(cw)
count.B = getNodeAttribute (cw, "B", 'count')
Run the code above in your browser using DataLab