lxb2mat {cmapR} | R Documentation

## Read an LXB file and return a matrix

### Description

Read an LXB file and return a matrix

### Usage

    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

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

[Package cmapR version 1.2.1 Index]