Description Usage Arguments Value TODO Author(s) See Also Examples
View source: R/genepattern2spd.R
Convert from GenePattern GCT and CLS files to the input file required for Sample Progression Discovery (SPD) The input file is a matlab binary file, containing probe names, data matrix and samples names, and optionally class labels, from a cls file. This makes use of the R.matlab library by Henrik Bengtsson & creates v5 matlab files (which work fine with matlab v7.)
1 2 | genepattern2spd(gct.file, cls.files, cls.names = "Class",
out.file = "spd.mat")
|
gct.file |
The path to a GenePattern formatted GCT file |
cls.files |
The path to a GenePattern formatted CLS file. Optional. |
cls.names |
What do the classes in cls.file represent? Tumour Type? Cell Line? Specify a short label, eg “Tumour Type” |
out.file |
The path to the output file. It should end in .mat. |
Creates a version 5 matlab file which you can then open in Matlab
support >1 cls files
Mark Cowley, 2011-04-20
http://icbp.stanford.edu/software/SPD, http://www.broadinstitute.org/cancer/software/genepattern/tutorial/gp_fileformats.html#gct, http://www.broadinstitute.org/cancer/software/genepattern/tutorial/gp_fileformats.html#cls
1 2 3 4 5 6 | ## Not run:
setwd("/Volumes/marcow-1/projects/SPD/analysisV1")
genepattern2spd("norm.rsn.medianNorm.gct", out.file="norm.rsn.medianNorm.SPD.mat")
genepattern2spd("norm.rsn.medianNorm.gct", "norm.rsn.medianNorm.cls", "Tumour Grade", "norm.rsn.medianNorm.SPD.mat")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.