Learn R Programming

dslice (version 1.2.2)

load_gct: Load gene expression file

Description

Load gene expression data from .gct file

Usage

load_gct(file)

Value

A matrix with row names and column names.

Arguments

file

Name of .gct file which contains gene expression data. Should be a tab-separated text file. The first row is version and the second is the dimension of expression matrix. There is an expression matrix from the third row to the end. The third row is column name of expression matrix. The first column is gene symbol and the second is the description of gene. For the remaining rows and columns, each row is a gene and each column is a sample.

Examples

Run this code
# Gene expression files are available after registration at Broad institute GSEA website
# http://www.broadinstitute.org/gsea

if (FALSE) {
filename <- "P53.gct"
expdat <- load_gct(filename)
}

Run the code above in your browser using DataLab