ndex_create_network: Create a Network at a server from RCX data

View source: R/ndex_networks_simple_operations.r

ndex_create_networkR Documentation

Create a Network at a server from RCX data

Description

This method creates a new network on the NDEx server from the given RCX object

Usage

ndex_create_network(ndexcon, rcx)

Arguments

ndexcon

object of class NDExConnection linkndex_connect

rcx

RCX-object object

Details

Note: In future 'ndexr' uses the RCX-object from the corresponding package to handle the networks!

Value

UUID of the newly created network

REST query

POST (multipart/form-data): ndex_config$api$network$create$url data: CXNetworkStream = data

Note

Requires an authorized user! (ndex_connect with credentials)

Compatible to NDEx server version 1.3 and 2.0

Examples

## Establish a server connection with credentials 
# ndexcon = ndex_connect('MyAccountName', 'MyPassword')
## Find a network and get its UUID
# networks = ndex_find_networks(ndexcon,"p53", "nci-pid")
# networkId = networks[1,"externalId"]
## Get the network data 
# rcx = ndex_get_network(ndexcon, networkId) 
## Do some changes to rcx..
## and create a new network
# networkId = ndex_create_network(ndexcon, rcx)
NULL

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