Reading the mzxml file
4 views (last 30 days)
Show older comments
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
Ricardo Borges
on 22 Feb 2016
I'm having the same problem. Is there any requirement for the conversion of raw data into mzXML using MSconvert?
Answers (1)
Luuk van Oosten
on 11 Apr 2016
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.
0 Comments
See Also
Categories
Find more on Data Import in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!