How to read mzxml file with Bad subscripting error?
Mostra commenti meno recenti
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 Commenti
Geoff Hayes
il 8 Ott 2014
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
il 8 Ott 2014
Geoff Hayes
il 8 Ott 2014
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
il 9 Ott 2014
Modificato: Geoff Hayes
il 9 Ott 2014
Khalfalla's answer moved here
I did, but it's still not work. Three parameters come out with Operation Processing in workspace.
Geoff Hayes
il 9 Ott 2014
Modificato: Geoff Hayes
il 9 Ott 2014
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
il 10 Ott 2014
Geoff Hayes
il 10 Ott 2014
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.
Risposte (1)
Luuk van Oosten
il 24 Nov 2014
0 voti
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!
Categorie
Scopri di più su Class Introspection and Metadata in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!