Reading the mzxml file

I use the mzxmlread to extract the data.
It occurred error:
??? Error using ==> typecastc
Too few input values to make output type.
Error in ==> typecast at 31
out = typecastc(in, lower(datatype));
Error in ==> mzxmlread>processPeaks at 716
mzpeaks = swapbytes(typecast(peaks,'single'));
Error in ==> mzxmlread>parseScan at 561
out.(elementNameScan)(countScan+1).peaks.mz
=
processPeaks(b64.decode(data),32);
Error in ==> mzxmlread at 430
parseScan;
Is there any problem for data file??
Thanks for help.

1 Comment

I'm having the same problem. Is there any requirement for the conversion of raw data into mzXML using MSconvert?

Sign in to comment.

Answers (1)

Luuk van Oosten
Luuk van Oosten on 11 Apr 2016

0 votes

Dear Chi, Ricardo,
The problem might occur due to the fact that your mzXML file is improperly generated.
Note that MATLAB is only able to handle mzXML files that are conform the 2.1 specifications or earlier. Try to generate your mzXML file with an older version and try again... I believe that you can find those versions somewhere over here.
That might solve it.

Tags

Asked:

on 26 Feb 2015

Answered:

on 11 Apr 2016

Community Treasure Hunt

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

Start Hunting!