Description Usage Arguments Value Author(s) See Also Examples
Specify how data attributes – for the specified named attribute – are mapped to the source arrow type.
1 2 | setEdgeSourceArrowRule(obj, edge.attribute.name, attribute.values, arrows,
default='ARROW', vizmap.style.name = 'default')
|
obj |
a |
edge.attribute.name |
the edge attribute whose values will determine the source 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. |
vizmap.style.name |
visual style name, defaults to the style 'default'. |
None.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
getArrowShapes
setNodeBorderColorRule (detailed example)
setEdgeColorRule
setNodeShapeRule
getVisualStyleNames
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cw <- CytoscapeWindow ('setEdgeSourceArrowRule.test', graph=makeSimpleGraph())
displayGraph (cw)
layoutNetwork (cw, 'force-directed')
arrows <- c('Arrow', 'Diamond', 'Circle')
edgeType.values <- c('phosphorylates', 'synthetic lethal', 'undefined')
setEdgeSourceArrowRule (cw, 'edgeType', edgeType.values, arrows)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.