필터 지우기
필터 지우기

How to fix an mzxmlread error?

조회 수: 15 (최근 30일)
Shenae
Shenae 2016년 2월 5일
댓글: Anyin Li 2022년 9월 12일
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
cccc17
cccc17 2016년 3월 3일
I have the same error. Do you have any solution?
Katie
Katie 2016년 4월 7일
I HAVE THIS ERROR AS WELL.
Anybody? Please?

댓글을 달려면 로그인하십시오.

답변 (3개)

Kundai Sachikonye
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.
  댓글 수: 1
Anyin Li
Anyin Li 2022년 9월 12일
This solved the similar problem I am having

댓글을 달려면 로그인하십시오.


Arthur Goldsipe
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

Luuk van Oosten
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.

카테고리

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