setLayoutProperties: setLayoutProperties

Description Usage Arguments Value Author(s) See Also Examples

Description

Sets the specified properties for the specified layout. Unmentioned properties are left unchanged.

Usage

1
setLayoutProperties(obj, layout.name, properties.list)

Arguments

obj

a CytoscapeConnectionClass object.

layout.name

a string object.

properties.list

a a named list with as many entries as you wish to modify

Value

None.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

layout getLayoutNames getLayoutNameMapping getLayoutPropertyNames getLayoutPropertyType getLayoutPropertyValue

Examples

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

  cy <- CytoscapeConnection ()
  prop.names <- getLayoutPropertyNames (cy, 'isom')
  print (prop.names)
    # [1] "maxEpoch"           "radiusConstantTime" "radius"             "minRadius"         
    # [5] "initialAdaptation"  "minAdaptation"      "sizeFactor"         "coolingFactor"     
    # [9] "singlePartition"  
  print (getLayoutPropertyValue (cy, 'isom', 'radiusConstantTime'))
    # [1] 4
    
    # modify just two of the eight properties; the others are unchanged
  setLayoutProperties (cy, 'isom', list (radiusConstantTime=4, radius=20))

## End(Not run)

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