Learn R Programming

RCy3 (version 1.2.0)

getNodeAttributeNames: getNodeAttributeNames

Description

Node and node attributes belong to the Cytoscape session as a whole, not to a particular window. Use this method to find out the names of the currently defined node attributes.

Usage

getNodeAttributeNames(obj)

Arguments

obj
a CytoscapeConnectionClass object or CytoscapeWindow object.

Value

A list of names.

See Also

getNodeAttribute deleteNodeAttribute getEdgeAttributeNames

Examples

Run this code
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('demo.getNodeAttributeNames', graph=makeSimpleGraph())
  displayGraph (cw)
  # displayGraph is required. If you do not display the graph,
  # your R graph data has not been sent to Cytoscape yet.
  print (getNodeAttributeNames (cw))
    # [1] "name"  "type"  "lfc"   "label" "count"

Run the code above in your browser using DataLab