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

Description Usage Arguments Details Value Source Author(s) See Also Examples

Description

Read CLS file which stores the phenotype data

Usage

1
read.cls(file, treatment, control)

Arguments

file

cls file path

treatment

string of treatment label in cls file

control

string of control label in cls file

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.

Value

A sampleLabel class object

Source

https://www.broadinstitute.org/cancer/software/gsea/wiki/index.php/Data_formats

Author(s)

Zuguang Gu <z.gu@dkfz.de>

See Also

read.gct, sampleLabel

Examples

1
2
3
4
5
6
7
## Not run: 
# P53.cls can be downloaded from
# https://mcube.nju.edu.cn/jwang/lab/soft/cepa/
label = read.cls("https://mcube.nju.edu.cn/jwang/lab/soft/cepa/P53.cls", 
    treatment="MUT", control="WT")

## End(Not run)

jokergoo/CePa documentation built on July 2, 2021, 10:28 p.m.