Description Usage Arguments Value Examples
loadCLS
loads a categorical or continuous cls formated file. Both file formats are described at the BROAD site.
1 | loadCLS(target, sampleNames)
|
target |
a string indicating the location of the .cls file. loadCLS will automatically determine whether the specified file is categorical or continuous. |
sampleNames |
a list of sample names that correspond to each each entry in the .cls file. |
a list indexed by sample id containing the specified categorical or continuous variable.
1 2 3 4 5 6 7 8 9 10 | # The .cls format does not include sample names, so it is necesary to have some already.
# In this case, we get them from the .gct file
sampleNames = names(loadGCT(file.path(path.package("tempoR"),"gse32472Example.gct")))
# Example continouous and categorical .cls files are included in the package
exampleAgesPath = file.path(path.package("tempoR"),"gse32472Example.age.cls")
exampleAges = loadCLS(exampleAgesPath, sampleNames)
exampleClassesPath = file.path(path.package("tempoR"),"gse32472Example.phen.cls")
exampleClasses = loadCLS(exampleClassesPath, sampleNames)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.