read_expr: Read expression data file

Description Usage Arguments Value Author(s) See Also Examples

View source: R/process_data.R

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

1
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

1
2
3
4
5
6
# 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

BPRMeth documentation built on Nov. 8, 2020, 5:54 p.m.