How to read mzxml file with Bad subscripting error?
이전 댓글 표시
I'm working in mass spectrometer data with an extension (.mzxml) and I'm able to read the file using (mzxmlread) command. The problem, when I read the same file with another software that used for re-processing mass spectrometer data OpenMZ "TOPPView" and save the file with the same extension (mzxml) when I try to read the file in Matlab, the error message appears which is: {
??? Error using ==> numel Bad subscripting index.
Error in ==> mzxmlread at 222 count2 = numel(out.mzXML.msRun.(elementName).(childElemNm)); }
if there is any help that will be really appreciated. Khalf
댓글 수: 7
Geoff Hayes
2014년 10월 8일
What do you observe when you type the following into the Command Window
mzxmlinfo('yourFile.mzxml')
where yourFile.mzxml is the name of your file?
khalfalla
2014년 10월 8일
Geoff Hayes
2014년 10월 8일
If in the Command Window you type
dbstop if error
then read your file with mzxmlread, the debugger will pause at line 222 when the error occurs. At this point, in the Command Window type
elementName
childElemNm
out.mzXML.msRun.(elementName).(childElemNm)
What do you see for each?
Geoff Hayes
2014년 10월 9일
편집: Geoff Hayes
2014년 10월 9일
Khalfalla's answer moved here
I did, but it's still not work. Three parameters come out with Operation Processing in workspace.
Geoff Hayes
2014년 10월 9일
편집: Geoff Hayes
2014년 10월 9일
But each of the above three variables must have some sort of value, not Operation Processing. What are their values?
Also, please include the version of MATLAB that you are using.
What are your steps in using the other software. Do you convert the mzxml file to the mxML format (for TOPPView) as
FileConverter -in infile.mzXML -out outfile.mzML
And afterwards, do you convert it back to the mzXml format using a similar conversion (and if so, what is it), or do you just change the extension?
Are you sure that the modified file is still a valid mzXML file that conforms to the mzXML 2.1 specification?
khalfalla
2014년 10월 10일
Geoff Hayes
2014년 10월 10일
Given the line of code
numel(out.mzXML.msRun.(elementName).(childElemNm));
I expect elementName and chilElemNm to be strings, as they are used to access fields within the out.mzXML.msRun structure.
답변 (1개)
Luuk van Oosten
2014년 11월 24일
0 개 추천
Dear Khalfalla,
The problem might be that your mzxml file that you create is too new/advanced for MATLAB to read using 'mzxmlread'.
The function ' mzxmlread' reads mzXML files that are conform to the mzXML 2.1 specification or earlier specifications. Use an older version of your mzxml processing software and try again!
카테고리
도움말 센터 및 File Exchange에서 Class Introspection and Metadata에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!