process_ids {cmapR} | R Documentation

## Return a subset of requested GCTX row/colum ids out of the universe of all ids

### Description

Return a subset of requested GCTX row/colum ids out of the universe of all ids

### Usage

    process_ids(ids, all_ids, type = "rid")

### Arguments

`ids` | vector of requested ids. If `NULL`, no subsetting is performed
`all_ids` | vector of universe of ids
`type` | flag indicating the type of ids being processed

### Details

This is a low-level helper function which most users will not need to access directly

### Value

a list with the following elements `ids`: a character vector of the processed ids `idx`: an integer list of their corresponding indices in `all_ids`

### See Also

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

### Examples

    gct_file <- system.file("extdata", "modzs_n25x50.gctx", package="cmapR")
    ids <- read_gctx_ids(gct_file)
    processed_ids <- cmapR:::process_ids(ids[1:10], ids)
    str(processed_ids)

[Package cmapR version 1.2.1 Index]