| isGctFile | R Documentation |
Test a file is a GCT file or not
isGctFile(file, strict.column.names = FALSE)
file |
Character string, a file name |
strict.column.names |
Logical, whether the names of the first two columns must be 'NAME(tab)Description' |
A file is a valid GCT file if it meets following three rules:
The first line of the file is #1.2
The second line contains number of rows and number of columns, separated by a tab.
The rest of file contain a rectangular matrix, with the first
two columns named NAME and Description
respectively.
A logical value: TRUE means file is of the GCT format.
https://software.broadinstitute.org/cancer/software/genepattern/file-formats-guide
read_gct_matrix to read in GCT files
myInFile <- system.file("extdata/test.gct", package="ribiosIO")
isGctFile(myInFile)
myInfileLS <- system.file("extdata/test_lessStrict.gct", package="ribiosIO")
isGctFile(myInfileLS)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.