rcx_asNewNetwork {ndexr}R Documentation

Remove all interfering NDEx artefacts from RCX object

Description

Remove all interfering NDEx artefacts from RCX object

Usage

rcx_asNewNetwork(rcx)

Arguments

rcx

RCX object

Details

After a RCX object is downloaded from an NDEx server, it will contain some aspects that are not present in a newly generated network, i.e. ndexStatus', provenanceHistory' and 'status'. Removing those aspects might be useful in some cases.

Value

RCX object

See Also

rcx_fromJSON ndex_get_network

Examples

## Establish a server connection
ndexcon = ndex_connect()
## Find a network and get its UUID
networks = ndex_find_networks(ndexcon,"p53")
networkId = networks[1,"externalId"]
## Get the network data 
rcx = ndex_get_network(ndexcon, networkId)
## Remove NDEx artefacts
rcx = rcx_asNewNetwork(rcx)
## Not run: 
rcxjson = rcx_toJSON(rcx)
ndex_create_network(ndexcon, rcxjson) 

## End(Not run)

[Package ndexr version 1.0.4 Index]