setEdgeLineStyleDirect: setEdgeLineStyleDirect

Description Usage Arguments Value Author(s) See Also Examples

Description

In the specified CytoscapeWindow, set the line style of the specified edge or edges, bypassing all rule mapping. The getLineStyles method shows the possible values.

Usage

1
setEdgeLineStyleDirect(obj, edge.names, new.values)

Arguments

obj

a CytoscapeWindowClass object.

edge.names

one or more String objects, cy2-style edge names.

new.values

one or more String object, from the supported set of line styles (see getLineStyles).

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

setEdgeLineStyleRule setEdgeColorDirect setEdgeFontSizeDirect setEdgeLabelColorDirect setEdgeLabelDirect setEdgeLabelOpacityDirect setEdgeLabelWidthDirect setEdgeLineStyleDirect setEdgeLineWidthDirect setEdgeOpacityDirect setEdgeSourceArrowColorDirect setEdgeSourceArrowDirect setEdgeSourceArrowOpacityDirect setEdgeSourceArrowShapeDirect setEdgeTargetArrowColorDirect setEdgeTargetArrowDirect setEdgeTargetArrowOpacityDirect setEdgeTargetArrowShapeDirect setEdgeTooltipDirect

Examples

 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
  ## Not run: 
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cw <- CytoscapeWindow ('setEdgeLineStyleDirect.test', graph=makeSimpleGraph())
  displayGraph (cw)
  layoutNetwork (cw, 'force-directed')
  edges.of.interest <- as.character (cy2.edge.names (cw@graph))
  supported.styles <- getLineStyles (cw)

    # pass three edges and three styles
  setEdgeLineStyleDirect (cw, edges.of.interest, supported.styles [5:7])

    # pass three edges and one style
  setEdgeLineStyleDirect (cw, edges.of.interest, supported.styles [8])

    # now loop through all of the styles
  for (style in supported.styles) {
    setEdgeLineStyleDirect (cw, edges.of.interest, style)
  }

     # restore the default
  setEdgeLineStyleDirect (cw, edges.of.interest, 'SOLID')

## End(Not run)

tmuetze/Bioconductor_RCy3_the_new_RCytoscape documentation built on May 31, 2019, 4:39 p.m.