input_file: Function to read-in the gene expression file and assign gene...

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/input_file.R

Description

Function to read-in the gene expression file and assign gene probe names as the rownames.

Usage

1
input_file(input)

Arguments

input

String indicating the name of the text file containing the gene expression matrix to be read in. This matrix file should have the gene probes in the first column of the matrix. The gene probes will be assigned as the rownames of the matrix.

Value

Returns an object containing the gene expression matrix with the gene probe names as the rownames.

Note

This function works best when using gene expression datasets from Gene Expression Omnibus.

Author(s)

Nathan Lawlor

See Also

read.table

Examples

1
2
3
4
5
6
# Load in a test file
data_file <- system.file("extdata", "GSE2034.normalized.expression.txt",
    package="multiClust")
data <- input_file(input=data_file)
# View matrix with gene probes assigned as rownames
data[1:4, 1:4]

nlawlor/multiClust documentation built on May 16, 2019, 8:12 p.m.