parse_gctx: Parse GCTX

Description Usage Arguments Value Examples

View source: R/io.R

Description

Parse a GCTX file into the R workspace as a GCT object

Usage

1
2
3
4
5
6
7
parse_gctx(
  fname,
  rid = NULL,
  cid = NULL,
  set_annot_rownames = FALSE,
  matrix_only = FALSE
)

Arguments

fname

character(1), path to the GCTX file on disk

rid

either a vector of character or integer row indices or a path to a grp file containing character row indices. Only these indices will be parsed from the file.

cid

either a vector of character or integer column indices or a path to a grp file containing character column indices. Only these indices will be parsed from the file.

set_annot_rownames

boolean indicating whether to set the rownames on the row/column metadata data.frames. Set this to false if the GCTX file has duplicate row/column ids.

matrix_only

boolean indicating whether to parse only the matrix (ignoring row and column annotations)

Value

gct object

Examples

1
2
3
gctx <- system.file("extdata", "test_sample_n2x12328.gctx", 
                    package="signatureSearch")
gct <- parse_gctx(gctx)

signatureSearch documentation built on April 16, 2021, 6 p.m.