2
$\begingroup$

I am creating a .cls file for my GSEA analysis and see the below error. Can anyone suggest a solution?

I create the file using TeXworks. The file looks like this:

37 2 1
#CD69neg CD69pos
CD69neg CD69pos
CD69neg CD69pos CD69pos CD69pos CD69neg CD69pos CD69pos CD69pos CD69pos CD69neg CD69neg CD69neg CD69neg CD69pos CD69pos CD69neg CD69pos CD69pos CD69neg CD69neg CD69neg CD69pos CD69pos CD69pos CD69neg CD69pos CD69pos CD69neg CD69neg CD69pos CD69pos CD69pos CD69neg CD69pos CD69pos CD69pos CD69pos

Error Details

---- Full Error Message ----
There were errors: ERROR(S) #:1 Parsing trouble edu.mit.broad.genome.parsers.Par ...

---- Stack Trace ----

of exceptions: 1
------Number of items found in cls data 10 is not equal to the number specified on the header line 37------ 

edu.mit.broad.genome.parsers.ParserException:
Number of items found in cls data 10 is not equal to the number specified on the header line 37 at 
edu.mit.broad.genome.parsers.ClsParser.doSanityChecks(ClsParser.java:388) at 
edu.mit.broad.genome.parsers.ClsParser._parse_genecluster_style_categorical(ClsParser.java:252) at 
edu.mit.broad.genome.parsers.ClsParser.parse(ClsParser.java:226) at 
edu.mit.broad.genome.parsers.ParserFactory._readTemplates(ParserFactory.java:342) at 
edu.mit.broad.genome.parsers.ParserFactory.readTemplate(ParserFactory.java:293) at 
edu.mit.broad.genome.parsers.ParserFactory.read(ParserFactory.java:753) at 
edu.mit.broad.genome.parsers.ParserFactory.read(ParserFactory.java:726) at 
edu.mit.broad.genome.parsers.ParserWorker.doInBackground(ParserWorker.java:52) at 
javax.swing.SwingWorker$1.call(SwingWorker.java:295) at 
java.util.concurrent.FutureTask.run(FutureTask.java:266) at 
javax.swing.SwingWorker.run(SwingWorker.java:334) at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
$\endgroup$

1 Answer 1

3
$\begingroup$

You seem to have forgotten the space after the #. It should be as in here (Just for future readers know where to find the specs). Also it should be a single line (Maybe this error was introduced while pasting here or it has been a duplicate because there are 39 samples in the 3 line and they should be 37).

Either adding 2 more samples to the initial count and removing the newline of the third line:

39 2 1
# CD69neg CD69pos
CD69neg CD69pos CD69neg CD69pos CD69pos CD69pos CD69neg CD69pos CD69pos CD69pos CD69pos CD69neg CD69neg CD69neg CD69neg CD69pos CD69pos CD69neg CD69pos CD69pos CD69neg CD69neg CD69neg CD69pos CD69pos CD69pos CD69neg CD69pos CD69pos CD69neg CD69neg CD69pos CD69pos CD69pos CD69neg CD69pos CD69pos CD69pos CD69pos

Or removing the third line:

37 2 1
# CD69neg CD69pos
CD69neg CD69pos CD69pos CD69pos CD69neg CD69pos CD69pos CD69pos CD69pos CD69neg CD69neg CD69neg CD69neg CD69pos CD69pos CD69neg CD69pos CD69pos CD69neg CD69neg CD69neg CD69pos CD69pos CD69pos CD69neg CD69pos CD69pos CD69neg CD69neg CD69pos CD69pos CD69pos CD69neg CD69pos CD69pos CD69pos CD69pos
$\endgroup$
2
  • $\begingroup$ Thank you so much! Yeah the error was about I have multiple columns rather than just one line. $\endgroup$
    – Son nguyen
    Jan 7, 2018 at 19:43
  • 1
    $\begingroup$ Glad I could help. Don't forget to mark an answer as accepted or post yourself the solution you find most useful $\endgroup$
    – llrs
    Jan 7, 2018 at 20:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.