Learn R Programming

RCy3 (version 1.2.0)

setEdgeLineStyleRule: specify the line styles to be used in drawing edges

Description

Specify how data attributes -- for the specified named attribute -- are mapped to edge line style.

Usage

setEdgeLineStyleRule(obj, edge.attribute.name, attribute.values, line.styles, default.style='SOLID')

Arguments

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

Value

None.

See Also

getLineStyles setNodeBorderColorRule (detailed example)

Examples

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

  cw <- CytoscapeWindow ('setEdgeLineStyleRule.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'force-directed')
  line.styles <- c('SINEWAVE', 'DOT', 'PARALLEL_LINES')
  edgeType.values <- c('phosphorylates', 'synthetic lethal', 'undefined')
  setEdgeLineStyleRule (cw, 'edgeType', edgeType.values, line.styles)

Run the code above in your browser using DataLab