ndex_create_group: Create Group

Description Usage Arguments Value REST query Note Examples

View source: R/ndex_groups.R

Description

Create a group owned by the authenticated user based on the supplied group JSON object.

Usage

1
ndex_create_group(ndexcon, groupName, image, website, description, properties)

Arguments

ndexcon

object of class NDExConnection linkndex_connect

groupName

character; name of the new graoup

image

character (optional); URL of the account owner's image

website

character (optional); URL of the account owner's web site

description

character (optional); Short description of this user

properties

list (optional); additional properties for the group

Value

url (including the UUID) of the newly created group

REST query

POST: ndex_config$api$group$create

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
## Establish a server connection with credentials 
# ndexcon = ndex_connect('MyAccountName', 'MyPassword')
# groupURL = ndex_create_group(ndexcon, 'SomeGroupName')
## [1] "http://public.ndexbio.org/v2/group/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
# groupURL = ndex_create_group(ndexcon, 'SomeGroupName', 
#                              image='http://bit.ly/1M3NoQZ', 
#                              website='www.gidf.com', 
#                              description='A very special group..')
NULL

ndexr documentation built on March 13, 2021, 2 a.m.