How to fix an mzxmlread error?
3 次查看(过去 30 天)
显示 更早的评论
I used the program msconvert from proteowizard to convert my Thermo .raw files to .mzXML files. When I use the mzxmlread command in MATLAB2015b(mzxmlread('data1.mzXML');) in matlab, I get this...
Starting to parse document...
Building mzXML substructure...
Building scan substructure...
Error using typecast
The first input must contain a multiple of 8 elements to convert from int8 (8 bits) to double (64 bits).
Error in mzxmlread>processPeaks (line 699) mzpeaks = swapbytes(typecast(peaks,'double'));
Error in mzxmlread/parseScan (line 555) out.(elementNameScan)(countScan+1).peaks.mz = processPeaks(b64.decode(data),64);
Error in mzxmlread (line 420) parseScan;
2 个评论
回答(3 个)
Kundai Sachikonye
2017-6-15
I had the same problem for a while and stumbled upon a solution. When using MSConvert to convert raw files to mzXML files, set binary precision to 32bit and add "Write index" and "TPP Compatability" as options and ensure that "Use zlib compression" tab is unchecked. Finally, for the filter section, add "Pick Peaking", check "Prefer Vendor" tab and add the appropiate MS Levels you require. After the relatively quick conversion, your file should load into MATLAB without any errors.
Arthur Goldsipe
2016-4-8
Hi,
I believe the mzXML file is invalid. mzxmlread could give a more helpful error message, but the error occurs when the peaks data for a run is invalid. Perhaps msconvert did not correctly encode the data.
-Arthur
0 个评论
Luuk van Oosten
2016-4-11
Dear Shenae, Katie, cccc17,
The problem might occur due to the fact that your mzXML file is improperly generated, as Arthur Goldspie already remarked.
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 EEG/MEG/ECoG 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!