Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with importing MGF files in Sirius #127

Closed
yhshengjy opened this issue Jul 15, 2023 · 0 comments
Closed

Issue with importing MGF files in Sirius #127

yhshengjy opened this issue Jul 15, 2023 · 0 comments

Comments

@yhshengjy
Copy link

yhshengjy commented Jul 15, 2023

Dear Sirius team,

I am using Sirius version 5.5.7, and I have encountered an issue while trying to import two MGF files, f1.mgf and f11.mgf, which have identical content. Surprisingly, the import process works fine for f1.mgf, but I receive an error when attempting to import f11.mgf. The error message I receive is as follows:

For input string: "MS2" at java.base/java.lang.NumberFormatException.forInputString(Unknown Source) at java.base/java.lang.Integer.parseInt(Unknown Source) at java.base/java.lang.Integer.parseInt(Unknown Source) at de.unijena.bioinf.babelms.mgf.MgfParser$MgfParserInstance.handleKeyword(MgfParser.java:202) at de.unijena.bioinf.babelms.mgf.MgfParser$MgfParserInstance.readNext(MgfParser.java:245) at de.unijena.bioinf.babelms.mgf.MgfParser$MgfParserInstance.addNextEntry(MgfParser.java:114) at de.unijena.bioinf.babelms.mgf.MgfParser$MgfParserInstance.hasNext(MgfParser.java:98) at de.unijena.bioinf.babelms.mgf.MgfParser.parse(MgfParser.java:329) at de.unijena.bioinf.babelms.mgf.MgfParser.parse(MgfParser.java:42) at de.unijena.bioinf.babelms.GenericParser.parse(GenericParser.java:177) at de.unijena.bioinf.babelms.GenericParser$1.<init>(GenericParser.java:84) at de.unijena.bioinf.babelms.GenericParser.parseIterator(GenericParser.java:76) at de.unijena.bioinf.babelms.GenericParser.parseIterator(GenericParser.java:72) at de.unijena.bioinf.projectspace.MS2ExpInputIterator.fetchNext(MS2ExpInputIterator.java:101) at de.unijena.bioinf.projectspace.MS2ExpInputIterator.<init>(MS2ExpInputIterator.java:71) at de.unijena.bioinf.projectspace.InstanceImporter$ImportInstancesJJob.importMsParserInput(InstanceImporter.java:149) at de.unijena.bioinf.projectspace.InstanceImporter$ImportInstancesJJob.importMultipleSources(InstanceImporter.java:118) at de.unijena.bioinf.projectspace.InstanceImporter$ImportInstancesJJob.compute(InstanceImporter.java:107) at de.unijena.bioinf.projectspace.InstanceImporter$ImportInstancesJJob.compute(InstanceImporter.java:94) at de.unijena.bioinf.jjobs.BasicJJob.call(BasicJJob.java:117) at java.base/java.util.concurrent.FutureTask.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)

I am wondering what could be the reason behind this issue and how can I resolve it? It seems that there is a problem parsing the MGF file, specifically with the "MS2" string. Both files have similar content, so I expected them to behave the same way during the import process. Any insights or suggestions on how to overcome this issue would be greatly appreciated.

Thank you in advance for your help!

f1.zip
f11.zip

yh sheng

mfleisch pushed a commit that referenced this issue Aug 2, 2024
Resolve "Remove window size from wavelet filter"

Closes #127

See merge request bright-giant/sirius/sirius-libs!95
mfleisch pushed a commit that referenced this issue Aug 2, 2024
…mono-repo' into 'master'

Resolve "Merge sirius-libs into sirius-frontend to create a mono repo."

Closes #300, #132, #126, #123, #128, #125, #127, #124, #122, #121, #120, #109, #115, #106, #99, #112, #111, #61, #110, #103, #108, #107, #104, #221, #102, #98, #198, #92, #94, #93, #85, #84, #87, #76, #56, #73, #32, #70, #65, #43, #63, #33, #53, #58, #59, #57, #54, #52, #41, #47, #50, #49, #48, #39, #46, #37, #38, #27, #34, #22, #31, #28, #18, #23, #21, #19, #9, #240, #280, #254, #242, #246, #238, #156, #25, #155, #189, #172, #154, #11, #6, #16, and #4

See merge request bright-giant/sirius/sirius-frontend!106
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant