rcxToJson | R Documentation |
Functions for converting the different aspects to JSON following the CX data structure definition (see NDEx documentation: https://home.ndexbio.org/data-model/).
rcxToJson(aspect, verbose = FALSE, ...) ## Default S3 method: rcxToJson(aspect, verbose = FALSE, ...) ## S3 method for class 'MetaDataAspect' rcxToJson(aspect, verbose = FALSE, ...) ## S3 method for class 'NodesAspect' rcxToJson(aspect, verbose = FALSE, ...) ## S3 method for class 'EdgesAspect' rcxToJson(aspect, verbose = FALSE, ...) ## S3 method for class 'NodeAttributesAspect' rcxToJson(aspect, verbose = FALSE, ...) ## S3 method for class 'EdgeAttributesAspect' rcxToJson(aspect, verbose = FALSE, ...) ## S3 method for class 'NetworkAttributesAspect' rcxToJson(aspect, verbose = FALSE, ...) ## S3 method for class 'CartesianLayoutAspect' rcxToJson(aspect, verbose = FALSE, ...) ## S3 method for class 'CyGroupsAspect' rcxToJson(aspect, verbose = FALSE, ...) ## S3 method for class 'CyHiddenAttributesAspect' rcxToJson(aspect, verbose = FALSE, ...) ## S3 method for class 'CyNetworkRelationsAspect' rcxToJson(aspect, verbose = FALSE, ...) ## S3 method for class 'CySubNetworksAspect' rcxToJson(aspect, verbose = FALSE, ...) ## S3 method for class 'CyTableColumnAspect' rcxToJson(aspect, verbose = FALSE, ...) ## S3 method for class 'CyVisualPropertiesAspect' rcxToJson(aspect, verbose = FALSE, ...) ## S3 method for class 'CyVisualProperty' rcxToJson(aspect, verbose = FALSE, propertyOf = "", ...) ## S3 method for class 'CyVisualPropertyProperties' rcxToJson(aspect, verbose = FALSE, ...) ## S3 method for class 'CyVisualPropertyDependencies' rcxToJson(aspect, verbose = FALSE, ...) ## S3 method for class 'CyVisualPropertyMappings' rcxToJson(aspect, verbose = FALSE, ...)
aspect |
aspects of an RCX object |
verbose |
logical; whether to print what is happening |
... |
additional parameters, that might needed for extending |
propertyOf |
character; provide propertyOf (only necessary for CyVisualProperty) |
For converting RCX objects to JSON, each aspect is processed by a generic function for its aspect class. Those functions return a character only containing the JSON of this aspect, which is then combined by toCX to be a valid CX data structure.
To support the conversion for non-standard or own-defined aspects, generic functions for those aspect classes have to be implemented.
character; JSON of an aspect
toCX, writeCX, jsonToRCX, readCX
nodes = createNodes(name = c("a","b","c","d","e","f")) rcxToJson(nodes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.