View source: R/ndex_networks_aspects_and_metadata.r
ndex_network_update_aspect | R Documentation |
This function updates an aspect with the provided CX for the aspect.
ndex_network_update_aspect(
ndexcon,
networkId,
aspectName,
aspectAsRCX,
isJson = FALSE
)
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]]) |
isJson |
logical if aspectAsRCX is already JSON |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.