read_expr {BPRMeth} | R Documentation

## Read expression data file

### Description

`read_expr` reads a file containing expression data. It should contain two columns: "id", "expr" and by default columns are considered in tab delimited format.

### Usage

    read_expr(file, log2_transf = FALSE, delimiter = "\t")

### Arguments

`file` | File name
`log2_transf` | Logical, whether to log2 transform the expression data.
`delimiter` | Delimiter format the columns are splitted. Default is tab.

### Value

A `data.table` object.

### Author(s)

C.A.Kapourani C.A.Kapourani@ed.ac.uk

### See Also

`read_met`, `read_anno`

### Examples

    # Obtain the path to files
    file <- system.file("extdata", "dummy_expr.bed", package = "BPRMeth")
    expr_dt <- read_expr(file)

    # Extract feature id
    expr_ids <- expr_dt$id

[Package BPRMeth version 1.13.0 Index]