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

[BUG] #48

Open
JeremyLilili opened this issue Feb 22, 2022 · 1 comment
Open

[BUG] #48

JeremyLilili opened this issue Feb 22, 2022 · 1 comment
Assignees

Comments

@JeremyLilili
Copy link

Describe the bug
Hi Alan:
I'm a new user in SpectralAnalysis. After I run the code you provide, I found here comes an error.If possible,could you help me to solve this?

Many Thanks
Jeremy

To Reproduce
Steps to reproduce the behavior:

  1. Run the code.
  2. Press the ImzML button in Open and choose MouseBrainCerebellum.imzML in the example folder.
  3. See error that shows "Java exception occurred:".

Expected behavior
The data should be showed from the viewer.

Screenshots
123

Error using ImzMLParser/parse (line 56)
Java exception occurred:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1

at java.lang.String.substring(String.java:1967)

at com.alanmrace.jimzmlparser.obo.OBO.<init>(OBO.java:115)

at com.alanmrace.jimzmlparser.obo.OBO.<init>(OBO.java:119)

at com.alanmrace.jimzmlparser.obo.OBO.<init>(OBO.java:119)

at com.alanmrace.jimzmlparser.obo.OBO.loadOntologyFromFile(OBO.java:252)

at com.alanmrace.jimzmlparser.obo.OBO.getOBO(OBO.java:169)

at com.alanmrace.jimzmlparser.parser.ImzMLHandler.parseimzML(ImzMLHandler.java:178)

at com.alanmrace.jimzmlparser.parser.ImzMLHandler.parseimzML(ImzMLHandler.java:156)

at com.alanmrace.jimzmlparser.parser.ImzMLHandler.parseimzML(ImzMLHandler.java:140)

Error in SpectralAnalysisInterface/openFile (line 79)
parser.parse();

Error in SpectralAnalysisInterface>@(src,evnt)this.openFile(this.openFileMethods{i}) (line 330)
'Callback', @(src, evnt) this.openFile(this.openFileMethods{i}));

Error while evaluating Menu Callback.

Software version

  • Version number 1.4.0-38ce932
  • Source code

If using source code, MATLAB version (please complete the following information):

  • MATLAB R2021b

Desktop (please complete the following information):

  • OS: [Windows]
  • Version [ Windows 10]

Additional context

@YaqiZhangAngel
Copy link

Hi Jeremy and Alan,

I was using Matlab 2022 and exactly same issue occurred. Just wondering is there any tips or updates on this issue?
Thanks for the help!

best

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

3 participants