lxb2mat: Read an LXB file and return a matrix

Description Usage Arguments Value See Also Examples

View source: R/io.R

Description

Read an LXB file and return a matrix

Usage

1
lxb2mat(lxb_path, columns = c("RID", "RP1"), newnames = c("barcode_id", "FI"))

Arguments

lxb_path

the path to the lxb file

columns

which columns in the lxb file to retain

newnames

what to name these columns in the returned matrix

Value

a matrix

See Also

Other CMap parsing functions: parse.gmt(), parse.gmx(), parse.grp(), write_gmt(), write_grp()

Examples

1
2
3
lxb_path <- system.file("extdata", "example.lxb", package="cmapR")
lxb_data <- lxb2mat(lxb_path)
str(lxb_data)

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