There were errors: ERROR(S) #:1 Parsing trouble java.lang.NumberFormatException: ...

86 views
Skip to first unread message

大川拓眞

unread,
Jul 16, 2022, 11:04:19 PM7/16/22
to gsea-help
Hello!

I am having trouble loading my data on GSEA. To my knowledge, I have followed the formatting guidelines. I am not sure why I am receiving this message. I'm sure you can maintain confidentiality so I have attached the raw data file to the email. Please help me.

<Error Details>

---- Full Error Message ----
There were errors: ERROR(S) #:1
Parsing trouble
java.io.FileNotFoundException: / ...

---- Stack Trace ----
# of exceptions: 1
------/Users/okawatakuma/Desktop/Book3.txt (No such file or directory)------
java.io.FileNotFoundException: /Users/okawatakuma/Desktop/Book3.txt (No such file or directory)
    at java.base/java.io.FileInputStream.open0(Native Method)
    at java.base/java.io.FileInputStream.open(Unknown Source)
    at java.base/java.io.FileInputStream.<init>(Unknown Source)
    at org.gsea_msigdb.gsea/edu.mit.broad.genome.parsers.ParserWorker.doInBackground(ParserWorker.java:48)
    at java.desktop/javax.swing.SwingWorker$1.call(Unknown Source)
    at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
    at java.desktop/javax.swing.SwingWorker.run(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.base/java.lang.Thread.run(Unknown Source)

スクリーンショット 2022-07-17 12.02.39.png

Sincerely,

Takuma Okawa

Anthony Castanza

unread,
Jul 18, 2022, 2:30:55 PM7/18/22
to gsea-help
Hello,

In the first message the error is pointing to an invalid string in the header "GENE_SYMBOL".
instead of this you currently have FEATURE_ID and GENE_SYMBOL, which the parser isn't able to recognise.
This structure that you've used also expects that the filename will end with the extension ".gct", in the second error message you sent the parser is looking for, and failing to find, a file called "Book3.txt", I suggest clearing the load data window, then dragging and dropping the corrected file with the gct file extension in, and trying again.

Let me know if you still have issues after making these adjustments
-Anthony

Anthony S. Castanza, PhD
Curator, Molecular Signatures Database
Mesirov Lab, Department of Medicine
University of California, San Diego

Sincerely,

Takuma Okawa

--
You received this message because you are subscribed to the Google Groups "gsea-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gsea-help+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gsea-help/e6f40521-dab6-4bad-bec9-72e9092e873an%40googlegroups.com.

Takuma Okawa

unread,
Jul 19, 2022, 11:13:22 AM7/19/22
to gsea-help
Hello, 

Thank you for your reply.

>The expected names for the first two columns are NAME and Description: instead of this you currently have FEATURE_ID and GENE_SYMBOL, which the parser isn't able to recognise.

So, I changed the first columns like this(below↓). (And also I changed file name. It's not a big deal.) 
スクリーンショット 2022-07-19 23.59.37.png
But the same errors occurred like this(↓) .
<Error Details>

---- Full Error Message ----
There were errors: ERROR(S) #:1
Parsing trouble
java.lang.NumberFormatException: ...


---- Stack Trace ----
# of exceptions: 1
------For input string: "Description"------
java.lang.NumberFormatException: For input string: "Description"
    at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(Unknown Source)
    at java.base/jdk.internal.math.FloatingDecimal.parseFloat(Unknown Source)
    at java.base/java.lang.Float.parseFloat(Unknown Source)
    at org.gsea_msigdb.gsea/edu.mit.broad.genome.parsers.AbstractParser.parseStringToFloat(AbstractParser.java:250)
    at org.gsea_msigdb.gsea/edu.mit.broad.genome.parsers.AbstractParser.parseFieldsIntoFloatArray(AbstractParser.java:361)
    at org.gsea_msigdb.gsea/edu.mit.broad.genome.parsers.AbstractParser.parseTextMatrixToDataset(AbstractParser.java:277)
    at org.gsea_msigdb.gsea/edu.mit.broad.genome.parsers.TxtDatasetParser.parse(TxtDatasetParser.java:108)
    at org.gsea_msigdb.gsea/edu.mit.broad.genome.parsers.ParserFactory.readDatasetTXT(ParserFactory.java:201)
    at org.gsea_msigdb.gsea/edu.mit.broad.genome.parsers.ParserFactory.read(ParserFactory.java:760)
    at org.gsea_msigdb.gsea/edu.mit.broad.genome.parsers.ParserFactory.read(ParserFactory.java:737)
    at org.gsea_msigdb.gsea/edu.mit.broad.genome.parsers.ParserWorker.doInBackground(ParserWorker.java:53)

    at java.desktop/javax.swing.SwingWorker$1.call(Unknown Source)
    at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
    at java.desktop/javax.swing.SwingWorker.run(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.base/java.lang.Thread.run(Unknown Source)

> This structure that you've used also expects that the filename will end with the extension ".gct", in the second error message you sent the parser is looking for, and failing to find, a file called "Book3.txt", I suggest clearing the load data window, then dragging and dropping the corrected file with the gct file extension in, and trying again.

According to "Supported file formats", I thought that filename which end with the extension ".txt" is able to be used in this application.
Is this a misinterpretation?
And also, I'd like to know the way to convert ".txt" file to ".gct" file.
 
スクリーンショット 2022-07-20 0.06.50.png

Sincerely,

Takuma Okawa

2022年7月19日火曜日 3:30:55 UTC+9 Anthony Castanza:

Takuma Okawa

unread,
Jul 19, 2022, 11:19:30 AM7/19/22
to gsea-help
Hello, 

I tried again with the filename which end with the extension ".gct.txt".
Then, I succeeded!!

Thank you again!!

Takuma Okawa

2022年7月20日水曜日 0:13:22 UTC+9 Takuma Okawa:
Reply all
Reply to author
Forward
0 new messages