setEdgeTargetArrowRule: specify the arrow types to be used at the end of an edge, at...

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

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

Arguments

obj

a CytoscapeWindowClass object.

edge.attribute.name

the edge attribute whose values will, when this rule is applied, determine the targetArrow of each edge.

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.

Author(s)

Paul Shannon

See Also

getArrowShapes

Examples

1
2
3
4
5
  cw <- new.CytoscapeWindow ('setEdgeTargetArrowRule.test', graph=makeSimpleGraph())
  arrows <- c ('Arrow', 'Diamond', 'Circle')
  edgeType.values <- c ('phosphorylates', 'synthetic lethal', 'undefined')
  setEdgeTargetArrowRule (cw, 'edgeType', edgeType.values, arrows)
  redraw (cw)

RCytoscape documentation built on Nov. 17, 2017, 10:52 a.m.