rcx_asNewNetwork {ndexr} | R Documentation |
Remove all interfering NDEx artefacts from RCX object
rcx_asNewNetwork(rcx)
rcx |
RCX object |
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.
RCX
object
## 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)