Description Usage Arguments Value Author(s) See Also Examples
In the specified CytoscapeWindow, set the edge target arrow color of the specified edge or edges.
1 | setEdgeTargetArrowColorDirect(obj, edge.names, new.colors)
|
obj |
a |
edge.names |
one or more |
new.colors |
one or more |
None.
Tanja Muetze, Georgi Kolishovski, Paul Shannon
setNodeEdgeTargetArrowColorDirect setEdgeTargetArrowRule setDefaultEdgeSourceArrowColor setEdgeSourceArrowColorDirect setEdgeSourceArrowColorRule setEdgeSourceArrowRule setEdgeSourceArrowShapeDirect setEdgeTargetArrowColorRule setEdgeTargetArrowRule setEdgeTargetArrowShapeDirect setDefaultEdgeTargetArrowColor
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | ## Not run:
# first, delete existing windows to save memory:
deleteAllWindows(CytoscapeConnection())
cw <- CytoscapeWindow ('setEdgeTargetArrowColorDirect.test', graph=makeSimpleGraph ())
displayGraph (cw)
layoutNetwork (cw, 'force-directed')
arrows <- c ('Arrow', 'Diamond', 'Circle')
edgeType.values <- c('phosphorylates', 'synthetic lethal', 'undefined')
setEdgeTargetArrowRule (cw, 'edgeType', edgeType.values, arrows)
setEdgeTargetArrowRule (cw, 'edgeType', edgeType.values, arrows)
colors.1 <- c ("#FFFFFF", "#FFFFFF", "#FFFFFF")
colors.2 <- c ("#AA00AA", "#00AAAA", "#0000AA")
edge.names <- as.character (cy2.edge.names (cw@graph)) [1:3]
for (i in 1:2) {
setEdgeTargetArrowColorDirect (cw, edge.names, colors.1)
Sys.sleep (0.3)
setEdgeTargetArrowColorDirect (cw, edge.names, colors.2)
Sys.sleep (0.3)
} # for i
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.