How to read mzxml file with Bad subscripting error?

조회 수: 3 (최근 30일)
khalfalla
khalfalla 2014년 10월 8일
답변: Luuk van Oosten 2014년 11월 24일
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
khalfalla
khalfalla 2014년 10월 10일
First of all, there are no numerical values for the three parameters just expressions. I use matlab R2013a version. The original file is mzxml file, the software is able to open it, and if I save the file without processing, I'm still able to read it again with matlab, but if I did any processing and save as mzxml as before, the error appear.
Geoff Hayes
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
Luuk van Oosten 2014년 11월 24일
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!

카테고리

Help CenterFile Exchange에서 Data Import에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by