ndex_network_update_aspect: Update an Aspect of a Network

Description Usage Arguments Value REST query Note Examples

View source: R/ndex_networks_aspects_and_metadata.r

Description

This function updates an aspect with the provided CX for the aspect.

Usage

1
ndex_network_update_aspect(ndexcon, networkId, aspectName, aspectAsRCX)

Arguments

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]])

Value

networkId unique ID of the modified network

REST query

PUT: ndex_config$api$network$aspect$update

Note

Requires an authorized user! (ndex_connect with credentials)

Compatible to NDEx server version 2.0

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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

ndexr documentation built on April 29, 2020, 5:20 a.m.