ndex_network_update_aspect {ndexr} | R Documentation |
This function updates an aspect with the provided CX for the aspect.
ndex_network_update_aspect(ndexcon, networkId, aspectName, aspectAsRCX)
ndexcon |
object of class NDExConnection linkndex_connect |
networkId |
unique ID of the network |
aspectName |
name of the aspect |
aspectAsRCX |
rcx data for the aspect (rcx[[aspectName]]) |
networkId unique ID of the modified network
PUT: ndex_config$api$network$aspect$update
Requires an authorized user! (ndex_connect with credentials)
Compatible to NDEx server version 2.0
## Establish a server connection with credentials # ndexcon = ndex_connect('MyAccountName', 'MyPassword') ## Find one of your networks and get its UUID # networks = ndex_find_networks(ndexcon, accountName='MyAccountName') # networkId = networks[1,"externalId"] ## Get the network data # aspect = ndex_network_get_aspect(ndexcon, networkId, 'nodeAttributes') ## Do some changes to the aspect.. # aspectModified = aspect[1:5,] ## and update the aspect # ndex_network_update_aspect(ndexcon,pws[1,"externalId"], 'nodeAttributes', aspectModified) NULL