deleteEdgeAttribute: deleteEdgeAttribute

Description Usage Arguments Value Author(s) See Also Examples

Description

Node and edge attributes are usually added to a Cytoscape network by defining them on the graph used to construct a CytoscapeWindow. Once Cytoscape has been passed an attribute, however, it persists until you exit the application or delete it by using the Cytoscape graphical user interface or by calling this method.

Usage

1
deleteEdgeAttribute(obj, attribute.name)

Arguments

obj

a CytoscapeConnectionClass object or CytoscapeWindow object.

attribute.name

a character string, the name of the attribute you wish to delete.

Value

nothing

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

getEdgeAttributeNames addEdgeAttribute deleteNodeAttribute

Examples

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

  window.name = 'demo.deleteEdgeAttribute'
  cw = CytoscapeWindow (window.name, graph=makeSimpleGraph ())
  setDefaultEdgeLineWidth (cw, 5);
  displayGraph (cw)
  redraw (cw)
  layoutNetwork(cw)
  
    # before:
  print (getEdgeAttributeNames (cw))
    # [1] "name"        "interaction" "edgeType"    "score"       "misc"  
  deleteEdgeAttribute (cw, 'score')
    # after
  print (getEdgeAttributeNames (cw))
    # [1] "name"        "interaction" "edgeType"    "misc" 

## End(Not run)

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