Suppose I have to create a cls file, do the number of the class labels have to formed in groups, such as
0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1
or it can be
0 0 0 0 0 0 0 0 1 1 0 0 0 1 1 1 1 0 0 0 0 0 1 1 1 1 1
Because if it have to formed into the grouped, then I have to modified the gct file everytime I want to regroup my samples.
Any Idea?
1 answer
order of class should be same in both files (cls & gct), so in categorical label, the cls file should be in grouped format (according your first example)
take a look at this link : http://www.broadinstitute.org/cancer/software/genepattern/file-formats-guide
"The third line contains a class label for each sample. The class labels are sequential numbers beginning with zero. The first label used (0) is assigned to the first class named on the second line; the second unique label (1) is assigned to the second class named; and so on. (NOTE: While most GenePattern modules adhere to this rule of 0 as the first class, some modules (such as GSEA) do not. Check the documentation for the module you are using if you are unsure.) The number of class labels specified on this line should be the same as the number of samples specified in the first line. The number of unique class labels specified on this line should be the same as the number of classes specified in the first line. "
Log in to answer this question.
did you find out the answer? I am confused too, when I find out my class labels are reordered in the cls file in output edb folder,. So which cls did GSEA use? The cls in edb folder, or my original one? Thanks.