Learn R Programming

CePa (version 0.8.1)

read.cls: Read CLS file which stores the phenotype data

Description

Read CLS file which stores the phenotype data

Usage

read.cls(file, treatment, control)

Value

A sampleLabel class object

Arguments

file

cls file path

treatment

string of treatment label in cls file

control

string of control label in cls file

Author

Zuguang Gu <z.gu@dkfz.de>

Details

The CLS file format defines the phenotype data of microarray experiments. The first line is the number of samples, number of classes and the third number always be 1. These three numbers are seperated by spaces or tabs. The second line begins with #. The next two strings usually are the label of the phenotype. The third line is the label of each samples where same label represents the same class.

The first and the second line is ignored by this function and class labels are taken from the factor of the vector parsed from the third line.

See Also

read.gct, sampleLabel

Examples

Run this code
if (FALSE) {
# P53.cls can be downloaded from
# http://mcube.nju.edu.cn/jwang/lab/soft/cepa/
label = read.cls("http://mcube.nju.edu.cn/jwang/lab/soft/cepa/P53.cls", 
    treatment="MUT", control="WT")
}

Run the code above in your browser using DataLab