selectEdges

Description

Select the specified edges.

Usage

1
selectEdges(obj, edge.names, preserve.current.selection=TRUE)

Arguments

obj

a CytoscapeWindowClass object.

edge.names

a list of strings, the names of edges to select.

preserve.current.selection

a logical object.

Value

None.

Author(s)

Paul Shannon

See Also

clearSelection selectEdge getSelectedEdgeCount getSelectedEdges hideSelectedEdges

Examples

1
2
3
4
5
6
7
  cw <- new.CytoscapeWindow ('selectEdges.test', graph=makeSimpleGraph())
  displayGraph (cw); layoutNetwork(cw); redraw (cw)
  clearSelection (cw)
  selectEdges (cw, c ("A (phosphorylates) B", "B (synthetic lethal) C"))
  getSelectedEdges (cw)
    # more complicated, but more realistic:
  #selectEdges (cw, as.character ( cy2.en (g, names (which (eda (g, 'edgeType') == 'phosphorylates')))))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.