read_gctx_meta: Parse row or column metadata from GCTX files

Description Usage Arguments Value See Also Examples

View source: R/io.R

Description

Parse row or column metadata from GCTX files

Usage

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

read_gctx_meta(gctx_path, dim = "row", ids = NULL)

Arguments

...

arguments passed on to read_gctx_meta

gctx_path

the path to the GCTX file

dim

which metadata to read (row or column)

ids

a character vector of a subset of row/column ids for which to read the metadata

Value

a data.frame of metadata

See Also

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
gct_file <- system.file("extdata", "modzs_n25x50.gctx", package="cmapR") 
# row meta
row_meta <- read_gctx_meta(gct_file)
str(row_meta)
# column meta
col_meta <- read_gctx_meta(gct_file, dim="column")
str(col_meta)
# now for only the first 10 ids
col_meta_first10 <- read_gctx_meta(gct_file, dim="column",
ids=col_meta$id[1:10])
str(col_meta_first10)

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