msresample error message: The MZ vector is not evenly nor linearly spaced.

조회 수: 3 (최근 30일)
I am this error while trying to msresample a Orbi MS spectrum:
Error using msdroppedsamples (line 61) The MZ vector is not evenly nor linearly spaced.
Error in msresample (line 215) [X,Y] = msdroppedsamples(X,Y);
I know that my MZ vector is not linear and has also a lot of O intensities, that is why I want to resample it, but I dont know excatly which parameters I need to adjust, I used this: [MZH,YH] = msresample(MZ, Y, 100000,'RANGE',[150 1200], 'Uniform', false, 'Missing', true, 'showplot', true)
Thanks
  댓글 수: 2
Oleg Komarov
Oleg Komarov 2012년 8월 3일
You didnt's give us the fundamental info. What code are you using and what is your input.
As the error says, you should have linearly spaced input.
Aurelie
Aurelie 2012년 8월 3일
I put the all code in the post, but for the input I have a CSV file extracted from a HRMS spectrun acquired on a LTQ Orbitrap, the MZ values are definitively not evenly or linearly spaced but I dont understand why this is a problem

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

채택된 답변

Lucio Cetto
Lucio Cetto 2012년 8월 3일
Setting the option MISSING to TRUE should only be used when you are certain that the spacing between MZ values follows a linear or quadratic function of MZ and you are trying to recover some missing points. One example of a dataset like this is the one provided in the example, for instance:
load sample_hi_res
plot(diff(MZ_hi_res),'.')
Here you can se that sometimes 1,2,3,4 or 5 samples are dropped. MSRESAMPLE interpolates these missing points before resampling the data. In most of the instruments, dropped samples come form the background and are removed to reduce the size of the dataset.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Design Condition Indicators Interactively에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by