ndex_network_update_aspect: Update an Aspect of a Network

View source: R/ndex_networks_aspects_and_metadata.r

ndex_network_update_aspectR Documentation

Update an Aspect of a Network

Description

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

Usage

ndex_network_update_aspect(
  ndexcon,
  networkId,
  aspectName,
  aspectAsRCX,
  isJson = FALSE
)

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

isJson

logical if aspectAsRCX is already JSON

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

## 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

frankkramer-lab/ndexr documentation built on April 4, 2023, 7:19 p.m.