read.gctx.meta {cmapR} | R Documentation |
Parse row or column metadata from GCTX files
read.gctx.meta(...) read_gctx_meta(gctx_path, dim = "row", ids = NULL)
... |
arguments passed on to |
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 |
a data.frame
of metadata
Other GCTX parsing functions:
GCT
,
append.dim()
,
fix.datatypes()
,
parse.gctx()
,
process_ids()
,
read.gctx.ids()
,
write.gctx.meta()
,
write.gctx()
,
write.gct()
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)