ids: Extract the or set row or column ids of a GCT object

Description Usage Arguments Value See Also Examples

Description

Extract the or set row or column ids of a GCT object

Usage

1
2
3
4
5
6
7
8
9
ids(g, dimension = "row")

## S4 method for signature 'GCT'
ids(g, dimension = "row")

ids(g, dimension = "row") <- value

## S4 replacement method for signature 'GCT'
ids(g, dimension = "row") <- value

Arguments

g

the GCT object

dimension

the dimension to extract/update ['row' or 'column']

value

a character vector

Value

a vector of row ids

See Also

Other GCT accessor methods: mat(), meta()

Examples

1
2
3
4
5
6
7
8
# extract rids
rids <- ids(ds)
# extract column ids
cids <- ids(ds, "column")
# set rids
ids(ds) <- as.character(1:length(rids))
# set cids
ids(ds, "column") <- as.character(1:length(cids))

cmap/cmapR documentation built on Oct. 14, 2021, 12:51 a.m.