readExprsMatrix: Read an expression matrix into an ExpressionSet object

View source: R/import.R

readExprsMatrixR Documentation

Read an expression matrix into an ExpressionSet object

Description

The function reads in an expression matrix into an ExpressionSet object. The expression matrix should be saved in the file format supported by the read_exprs_matrix function: currently supported formats include tab-delimited file and gct files.

Usage

readExprsMatrix(x)

Arguments

x

A file containing an expression matrix

Details

The function is a wrapper of the read_exprs_matrix function in the ribiosIO package. The difference is it returns a valid ExpressionSet object instead of a primitive matrix.

Value

An ExpressionSet object holding the expression matrix. Both pData and fData are empty except for the feature/sample names recorded in the expression matrix.

Author(s)

Jitao David Zhang <jitao_david.zhang@roche.com>

See Also

read_exprs_matrix in the ribiosIO package.

Examples


idir <- system.file("extdata", package="ribiosExpression")
myeset <- readExprsMatrix(file.path(idir, "sample_eset_exprs.txt"))
myeset2 <- readExprsMatrix(file.path(idir, "test.gct"))


bedapub/ribiosExpression documentation built on Sept. 2, 2023, 4:37 a.m.