ndex_network_get_aspect {ndexr} | R Documentation |
This function retrieves the provided aspect as CX. The result is the same as accessing an aspect of a RCX object.
ndex_network_get_aspect(ndexcon, networkId, aspect, size)
ndexcon |
object of class NDExConnection linkndex_connect |
networkId |
character; unique ID of the network |
aspect |
character; name of the aspect |
size |
integer; specifies the number of elements returned |
data.frame of the aspect data (the same as rcx[[aspectName]])
GET: ndex_config$api$network$aspect$getMetaDataByName
Compatible to NDEx server version 1.3 and 2.0, but doesn't work for version 1.3
## Establish a server connection ndexcon = ndex_connect() ## Find a network and get its UUID networks = ndex_find_networks(ndexcon) networkId = networks[1,"externalId"] ## Get the aspect of a network aspect = ndex_network_get_aspect(ndexcon, networkId, 'nodeAttributes') aspect = ndex_network_get_aspect(ndexcon, networkId, 'nodeAttributes', 10) # limit the returned elemets of the aspect to the first 10 elements