rcx_aspect_toJSON: Generate JSON data for a single aspect of a RCX object

Description Usage Arguments Value See Also Examples

View source: R/ndex_RCX.r

Description

Generate JSON data for a single aspect of a RCX object

Usage

1
rcx_aspect_toJSON(rcxAspect, verbose = FALSE, pretty = FALSE)

Arguments

rcxAspect

aspect in RCX object (rcx[[aspectName]])

verbose

logical; whether to print out extended feedback

pretty

logical; adds indentation whitespace to JSON output

Value

json object if successfull, empty string otherwise

See Also

rcx_toJSON and rcx_fromJSON

Examples

1
2
3
4
## Create an RCX object
rcx = rcx_new(c('@id'=1, n='Some Name', r='HGNC:Symbol'))
## Convert RCX aspect to JSON
rcxNodesJson = ndexr:::rcx_aspect_toJSON(rcx$nodes)

ndexr documentation built on March 13, 2021, 2 a.m.