Learn R Programming

RCy3 (version 1.2.0)

setEdgeTargetArrowRule: specify the arrow types to be used at the end of an edge, at the 'target' node

Description

Specify how data attributes -- for the specified named attribute -- are mapped to the target arrow type.

Usage

setEdgeTargetArrowRule(obj, edge.attribute.name, attribute.values, arrows, default='ARROW')

Arguments

obj
a CytoscapeWindowClass object.
edge.attribute.name
the edge attribute whose values will determine the target arrow of each edge when this rule is applied.
attribute.values
A list of scalar, discrete values. For instance, interaction types:'phosphorylates', 'ubiquinates', 'represses', 'activates'
arrows
One arrow type for each of the attribute.values
default
The arrow type to use when an explicit mapping is not provided.

Value

None.

See Also

getArrowShapes setNodeBorderColorRule (detailed example) setEdgeColorRule

Examples

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

  cw <- CytoscapeWindow ('setEdgeTargetArrowRule.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'force-directed')
  
  arrows <- c('DIAMOND', 'ARROW', 'CIRCLE')
  edgeType.values <- c('phosphorylates', 'synthetic lethal', 'undefined')
  
  setEdgeTargetArrowRule (cw, 'edgeType', edgeType.values, arrows)

Run the code above in your browser using DataLab