read.gctx.meta {cmapR} | R Documentation

## Parse row or column metadata from GCTX files

### Description

Parse row or column metadata from GCTX files

### Usage

    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

    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)

[Package cmapR version 1.0.0 Index]