getLayoutPropertyType: getLayoutPropertyType

Description Usage Arguments Value Author(s) See Also Examples

Description

Returns the type of one of the tunable properties (property.name) for the specified layout.

Usage

1
getLayoutPropertyType(obj, layout.name, property.name)

Arguments

obj

a CytoscapeConnectionClass object.

layout.name

a string object.

property.name

a string object.

Value

A character string specifying the type. These types do not always necessarily need to be R types.

Author(s)

Tanja Muetze, Georgi Kolishovski, Paul Shannon

See Also

layout getLayoutNames getLayoutNameMapping getLayoutPropertyNames getLayoutPropertyValue setLayoutProperties

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())

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

  sapply (prop.names, function (pn) getLayoutPropertyType (cy, 'isom', pn))
    # maxEpoch radiusConstantTime             radius          minRadius
    #           "int"              "int"              "int"              "int"
    # initialAdaptation      minAdaptation         sizeFactor      coolingFactor
    #        "double"           "double"           "double"           "double"
    # singlePartition 
    #       "boolean" 

## End(Not run)

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