Learn R Programming

RCy3 (version 1.2.0)

getNodeShapes: getNodeShapes

Description

Retrieve the names of the currently supported node shapes, which can then be used in calls to setNodeShapeRule and setDefaultVizMapValue.

Usage

getNodeShapes(obj)

Arguments

obj
a CytoscapeConnectionClass object.

Value

A list of character strings, e.g. 'ELLIPSE', 'RECTANGLE'.

Examples

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

  cy <- CytoscapeConnection ()
  getNodeShapes(cy)
   # [1] "VEE"             "RECTANGLE"       "PARALLELOGRAM"   "DIAMOND"        
   # [5] "ROUND_RECTANGLE" "ELLIPSE"         "TRIANGLE"        "HEXAGON"        
   # [9] "OCTAGON" 

Run the code above in your browser using DataLab