read.cls | R Documentation |
Read CLS file which stores the phenotype data
read.cls(file, treatment, control)
file |
cls file path |
treatment |
string of treatment label in cls file |
control |
string of control label in cls file |
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.
A sampleLabel
class object
Zuguang Gu <z.gu@dkfz.de>
read.gct
, sampleLabel
## Not run:
# 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")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.