Learn R Programming

RCy3 (version 1.2.0)

getLayoutPropertyValue: getLayoutPropertyValue

Description

Returns the appropriately typed value of the specified tunable property for the specified layout.

Usage

getLayoutPropertyValue(obj, layout.name, property.name)

Arguments

obj
a CytoscapeConnectionClass object.
layout.name
a string object.
property.name
a string object.

Value

Typically an integer, numeric or string value, the current setting of this property for this layout.

See Also

layout getLayoutNames getLayoutNameMapping getLayoutPropertyNames getLayoutPropertyType setLayoutProperties

Examples

Run this code
  # first, delete existing windows to save memory:
  deleteAllWindows(CytoscapeConnection())

  cy <- CytoscapeConnection ()
  prop.names <- getLayoutPropertyNames (cy, 'isom')
  print (prop.names)
    # "maxEpoch"           "radiusConstantTime" "radius"             "minRadius"
    # "initialAdaptation"  "minAdaptation"      "sizeFactor"         "coolingFactor"
    # "singlePartition" 
  sapply (prop.names, function (pn) getLayoutPropertyValue (cy, 'isom', 'coolingFactor'))
    # maxEpoch radiusConstantTime             radius          minRadius 
    #       2                  2                  2                  2 
    # initialAdaptation      minAdaptation         sizeFactor      coolingFactor 
    #               2                  2                  2                  2 
    # singlePartition 
    #               2 

Run the code above in your browser using DataLab