Description Usage Arguments Value See Also Examples
Parse row or column metadata from GCTX files
1 2 3 | 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()
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.