View source: R/ndex_networks_aspects_and_metadata.r
ndex_network_get_aspect | 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 |
Note: In future 'ndexr' uses the RCX-object from the corresponding package to handle the networks!
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,"p53", "nci-pid")
networkId = networks[1,"externalId"]
## Get the aspect of a network
aspect = ndex_network_get_aspect(ndexcon, networkId, 'nodeAttributes')
# limit the returned elements of the aspect to the first 10 elements
aspect = ndex_network_get_aspect(ndexcon, networkId, 'nodeAttributes', 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.