setEdgeSourceArrowRule | R Documentation |
Specify how data attributes – for the specified named attribute – are mapped to the source arrow type.
setEdgeSourceArrowRule(obj, edge.attribute.name, attribute.values, arrows, default='Arrow')
obj |
a CytoscapeWindowClass object. |
edge.attribute.name |
the edge attribute whose values will, when this rule is applied, determine the sourceArrow 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. |
None.
Paul Shannon
getArrowShapes
cw <- new.CytoscapeWindow ('setEdgeSourceArrowRule.test', graph=makeSimpleGraph()) arrows <- c ('Arrow', 'Diamond', 'Circle') edgeType.values <- c ('phosphorylates', 'synthetic lethal', 'undefined') setEdgeSourceArrowRule (cw, 'edgeType', edgeType.values, arrows) redraw (cw)