read_gctx_ids: Read GCTX row or column ids

Description Usage Arguments Value See Also Examples

View source: R/io.R

Description

Read GCTX row or column ids

Usage

1
2
3
read.gctx.ids(...)

read_gctx_ids(gctx_path, dim = "row")

Arguments

...

arguments passed on to read_gctx_ids

gctx_path

path to the GCTX file

dim

which ids to read (row or column)

Value

a character vector of row or column ids from the provided file

See Also

Other GCTX parsing functions: GCT, append.dim(), fix.datatypes(), parse.gctx(), process_ids(), read.gctx.meta(), write.gctx.meta(), write.gctx(), write.gct()

Examples

1
2
3
4
5
6
7
gct_file <- system.file("extdata", "modzs_n25x50.gctx", package="cmapR")
# row ids
rid <- read_gctx_ids(gct_file)
head(rid)
# column ids
cid <- read_gctx_ids(gct_file, dim="column")
head(cid)

cmapR documentation built on Dec. 12, 2020, 2 a.m.