updateMetaDataProperties: Update meta-data properties

Description Usage Arguments Value Examples

View source: R/RCX-MetaData.R

Description

The Meta-data aspect contains meta-data about the aspects in the RCX-object. Properties that need to be fetched or updated independently of aspect data are added with this function.

Usage

1
updateMetaDataProperties(rcx, aspectName, property)

Arguments

rcx

RCX object;

aspectName

character; name of the aspect as displayed in Meta-data (e.g. "nodes")

property

named list; property as key-value pairs (empty list to remove all)

Value

RCX object with updated Meta-data aspect

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## prepare RCX object:
nodes = createNodes(name = c("a","b","c","d","e","f"))
edges = createEdges(source=c(1,2,0,0,0,2), 
                    target=c(2,3,1,2,5,4))
rcx = createRCX(nodes, edges)
cySubNetworks = createCySubNetworks(
  id = c(1,2),
  nodes = list("all", c(1,2,3)),
  edges = list("all", c(0,2))                    
)
rcx = updateCySubNetworks(rcx, cySubNetworks)

## add properties for edges
updateMetaDataProperties(rcx, 
                         "edges", 
                         list(some="value",
                              another="VALUE"))

## remove properties for edges
updateMetaDataProperties(rcx, 
                         "edges", 
                         list())

frankkramer-lab/RCX documentation built on July 14, 2021, 6:33 p.m.