process_ids: Return a subset of requested GCTX row/colum ids out of the...

Description Usage Arguments Details Value See Also Examples

View source: R/io.R

Description

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

Usage

1
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

1
2
3
4
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)

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