getAllEdgeAttributes: getAllEdgeAttributes

Description Usage Arguments Value Author(s) See Also Examples

Description

Create a data frame with all the edge attributes for the graph contained by the supplied CytoscapeWindow object. Only the local copy of the graph is queried. If you want all the (possibly different) edge attributes from the Cytoscape network which corresponds to this graph, one option is to create a new CytoscapeWindow; see the existing.CytoscapeWindow function.

Usage

1
getAllEdgeAttributes(obj, onlySelectedEdges=FALSE)

Arguments

obj

a CytoscapeWindowClass object object.

onlySelectedEdges

a logical variable, used to restrict the query.

Value

A data frame, with a column for each attribute, a row for each edge.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

getEdgeAttribute deleteEdgeAttribute getAllNodeAttributes

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
  ## Not run: 
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  window.name = 'demo.getAllEdgeAttributes'
  cw = CytoscapeWindow (window.name, graph=makeSimpleGraph ())
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw)
    # get all attributes for all edges
  tbl.eda = getAllEdgeAttributes (cw, onlySelectedEdges=FALSE)
  tbl.eda
    #             edgeType source target score         misc
    # A|B   phosphorylates      A      B    35 default misc
    # B|C synthetic lethal      B      C   -12 default misc
    # C|A        undefined      C      A     0 default misc


## End(Not run)

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