Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
METHODS AND APPARATUS FOR OBTAINING ENHANCED MASS SPECTROMETRIC DATA
Document Type and Number:
WIPO Patent Application WO/2013/171313
Kind Code:
A1
Abstract:
A method of mass spectrometry comprising decomposing measured data, especially data obtained from species of ions performing multiple changes of direction in a periodic manner, the data comprising signal and noise measured over time using a spectrometer into a sum of K harmonic component signals and a noise component, wherein the harmonic component signals and their number K are derived from the measured data and a determined quantity (10) representative of the noise in the measured data. Preferably, the harmonic component signals and their number K are determined iteratively on the basis of: using an initial value of K (20) to calculate a minimised non-negative measure of difference between the measured data and model data comprising data sets of K-harmonic component signals (30), and if does not lie within a noise range based on the quantity representative of the noise (40), changing the value of K (50) and recalculating R(K)as many times as necessary (30) until does lie within the noise range (100). Mass spectral information may be derived from the model data set, such as a measure of the number of different ion species, a measure of the mass-to-charge ratio of each ion species and a measure of the signal intensity of each ion species.

Inventors:
AIZIKOV KONSTANTIN (DE)
GRINFELD DMITRY (DE)
Application Number:
PCT/EP2013/060166
Publication Date:
November 21, 2013
Filing Date:
May 16, 2013
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
THERMO FISHER SCIENT BREMEN (DE)
International Classes:
H01J49/00; G01N24/08; G01R33/46; G06K9/00; H01J49/38
Foreign References:
US20080270083A12008-10-30
EP2372747A12011-10-05
US20090278037A12009-11-12
Other References:
DIMITRIS G. MANOLAKIS, VINAY K. INGLE, STEPHEN M. KOGON: "Statistical and Adaptive Signal Processing", 2005, ARTECH HOUSE INC., Norwood, US, ISBN: 1-58053-610-7, pages: 478 - 493, XP002685385
DIMITRIS G. MANOLAKIS, VINAY K. INGLE, STEPHEN M. KOGON: "Statistical and Adaptive Signal Processing", 2005, ARTECH HOUSE INC., Norwood, US, ISBN: 1-58053-610-7, pages: 449 - 462, XP002685386
MARTIN BURGER ET AL: "A Survey on Level Set Methods for Inverse Problems and Optimal Design", 21 June 2004 (2004-06-21), pages 1 - 68, XP055041321, Retrieved from the Internet [retrieved on 20121017]
ANONYMOUS: "sclean", 24 February 2011 (2011-02-24), XP002685387, Retrieved from the Internet [retrieved on 20121016]
MANDELSHTAM V.A., PROGRESS IN NUCLEAR MAGNETIC RESONANCE SPECTROSCOPY, vol. 38, 2001, pages 159 - 196
AIZIKOV, K.; P. B. O'CONNOR, JOURNAL OF THE AMERICAN SOCIETY FOR MASS SPECTROMETRY, vol. 17, no. 6, 2006, pages 836 - 843
T.C. FARRAR; J.W. ELLING; M.D. KRAHLING, ANAL. CHEM., vol. 64, 1992, pages 2770 - 2774
S. GUAN; A.G. MARSHALL, ANALYTICAL CHEMISTRY, vol. 69, no. 6, 1997, pages 1156 - 1162
A. RAHBEE, INTERNATIONAL JOURNAL OF MASS SPECTROMETRY AND ION PROCESSES, vol. 72, no. 1-2, 1986, pages 3 - 13
Z. ZHANG; S. GUAN; A.G. MARSHALL, JOURNAL OF THE AMERICAN SOCIETY FOR MASS SPECTROMETRY, vol. 8, no. 6, 1997, pages 659 - 670
MANOLAKIS; INGLE; KOGON: "Statistical and Adaptive Signal Processing", 2005, ARTECH HOUSE INC., pages: 478 - 494
OSBORNE, M.R.; SMYTH, G.K.: "A modified Prony algorithm for fitting functions defined by difference equations", SIAM JOURNAL OF SCIENTIFIC AND STATISTICAL COMPUTING, vol. 12, 1991, pages 362 - 382
D. H. WILLIAMS; FLEMING: "Spectroscopic methods in organic chemistry", 1989
CARRARA ET AL., SPOTLIGHT SYNTHETIC APERTURE RADAR, 1995
PETER GUNTERT; VOLKER DOTSCH; GERHARD WIDER; KURT WUTHRICH: "Processing of multi dimensional NMR data with the new software PROSA", JOURNAL OF BIOMOLECULAR NMR, vol. 2, 1992, pages 619 - 629
VLADIMIR A. MANDELSHTAM; HOWARD S. TAYLOR; A. J. SHAKA: "Application of the Filter Diagonalization Method to One- and Two-Dimensional NMR Spectra", JOURNAL OF MAGNETIC RESONANCE, vol. 133, 1998, pages 304 - 312, XP004407396, DOI: doi:10.1006/jmre.1998.1476
Attorney, Agent or Firm:
PARLETT, Peter (1 St. George's CourtHanover Business Park, Altrincham Greater Manchester WA14 5TP, GB)
Download PDF:
Claims:
Claims

1 . A method of mass spectrometry comprising:

providing measured data comprising signal and noise measured over time that has been obtained from species of ions performing multiple changes of direction in a periodic manner within a mass analyser, the species being within a range of mass-to-charge ratios;

determining a quantity representative of the noise in the measured data, and

determining a noise range based upon the quantity representative of noise, and

determining a model data set of -harmonic component signals from the measured data;

wherein the harmonic component signals and their number K are determined iteratively on the basis of:

using an initial value of K to calculate a minimised non-negative measure of difference between the measured data and model data comprising data sets of K-harmonic component signals, , wherein is calculated under the condition that the model data c* satisfies the equation a0c* + a cn* +1+. . +aKcn* +K = 0 at measured data points with a set of complex values a0. . aK, and

if does not lie within the noise range , changing the value of K and recalculating R(K)as many times as necessary until does lie within the noise range;

and deriving mass spectral information about the ion species from the model data set, the mass spectral information comprising one or more of: a measure of the number of different species of ions; a measure of the mass-to- charge ratio of the species of ions; a measure of the signal intensity of each species of ions.

2. The method according to claim 1 wherein the complex values aQ. . aK satisfy the condition aK_k/a^ = 1 for k = 0 ... K .

3. The method according to claim 1 or claim 2 wherein the measure of difference comprises a minimised normalized sum of residuals between the measured data and the model data at a plurality of data points.

4. The method according to any preceding claim wherein is recalculated for increasing values of K starting from an initial value of 0.

5. The method according to any of claims 1 to 3 wherein is recalculated for decreasing values of K starting from an initial value.

6. The method according to any preceding claim wherein an initial value for K is determined from a number of peaks in the frequency domain spectrum of the measured data.

7. A method according to any preceding claim wherein the value of K is changed and is recalculated until the value of K is the minimum value of K for which R^ is less than, or is equal to, the quantity representative of the noise.

8. A method according to any preceding claim wherein the value of K is changed and R^ is recalculated until R^ becomes the closest value to the quantity representative of the noise.

9. The method according to any preceding claim wherein the ions undergo periodic motion within a range of frequencies within the mass analyser and the measured data is obtained by image current detection.

10. A method according to any preceding claim wherein the quantity representative of the noise comprises a noise power and the noise power is determined by a method comprising one or more of: evaluating the noise power from the measured data; evaluating the noise power from a previous or another set of measured data derived from the mass analyser; measuring characteristics of preamplifiers used in the data measuring apparatus of the mass analyser; setting a noise power on the basis of prior knowledge of the mass analyser.

1 1 .The method of any preceding claim wherein the model data set comprises a harmonic signal which may be described by a sum of K complex exponential terms each multiplied by complex amplitudes, and the K harmonic signals are derived assuming the harmonic signal possesses autocorrelative properties.

12. The method of any preceding claim wherein the measure of difference

is described by a term or terms involving: min ^∑^=o lcn _ cn l 2. where cn is measured data at each of N data points, and c* is the -harmonic signal at each of N data points in the model data set.

13. A method of determining the mass-to-charge ratios of the K species of ions found using the method of any preceding claim, wherein the method further comprises:

deriving a set of autocorrelation coefficients, a, relating terms c* according to a0c* + ί½(:* +1 +. . +aKc^+K = 0, where c* is the K-harmonic signal at measured data points in the model data set;

combining the autocorrelation coefficients, a, in a polynomial equation of the form α0 + α λ + α2λ2 ... + ακλκ = 0 ;

deriving the frequencies of the K harmonic signals from the roots of the polynomial equation; and

translating the frequencies of the K harmonic signals from the frequency to the mass-to-charge domain, each of the frequencies thereby describing the mass-to-charge ratio of each of the K species of ions.

14. A method of determining an estimate of the number of ions of each species within the mass analyser using the method of claim 13, wherein the number of ions of each species is represented by the amplitudes of the -harmonic signals, the amplitudes being found by minimization of the residual R, where R is of the form R = (1/N)∑n\cn -∑k Ak( k)n\2, and cn is measured data at each of N data points.

15. The method of any preceding claim wherein the measured data comprises ions of a range of mass-to-charge ratios selected from a larger measured data set. 16. The method of claim 15 wherein the range of mass-to-charge ratios is selected from a larger data set by a method comprising:

obtaining a frequency spectrum of the larger measured data set to form a transformed data set;

selecting a range of frequencies in the frequency domain spectrum of the transformed data set to form a transformed data subset, and; transforming the transformed data subset back into the time domain to form the measured data.

17. The method of claim 16 wherein the selected range of frequencies is multiplied by a smooth windowing (apodization) function W(f) of frequencies prior to transforming back into the time domain.

18. The method of claim 17 where dependent upon claim 1 1 wherein the complex amplitudes of the harmonic components are corrected by division by the value of the windowing function W(fk) taken in the obtained frequency values fk where fk is the obtained frequency of the kth harmonic.

19. The method of claims 17 or 18 wherein the back transformed signal in the time domain is resampled at a number of equidistant time points starting from an arbitrary time t0 and ending at an arbitrary time tN-i > t0.

20. The method of any of claims 18 and 19 wherein the complex amplitudes of the harmonic components are corrected by multiplication by 21 . The method of any of claims 17 to 20 wherein the measure of difference is described by a term or terms involving: min ^∑n=o wn\cn ~ cn l 2. where cn is measured data at each of N data points, c* is the -harmonic signal at each of N data points in the model data set, and wn is the set of time-domain weight coefficients derived from the windowing function W{f) .

22. A method of deriving a mass spectrum comprising the method of any preceding claim, comprising deriving a mass spectrum from the model data set comprising a set of K harmonic component signals.

23. A system for determining mass spectral information about species of ions present within a mass analyser and within a range of mass-to-charge ratios, each species having a different mass-to-charge ratio, comprising: a computer having an input for receiving measured data comprising signal and noise measured over time that has been obtained using a mass analyser from different species of ions present within the mass analyser and within a range of mass-to-charge ratios, the ions performing multiple changes of direction in a periodic manner within a range of frequencies within the mass analyser, and an output for outputting the mass spectral information derived by the computer from the measured data;

wherein the computer is programmed with a program comprising:

one or more modules of program code for deriving a model data set comprising a set of K harmonic component signals from the measured data; and

one or modules of program code for finding the harmonic component signals and their number K iteratively on the basis of: using an initial value of K to calculate a minimised non-negative measure of difference between the measured data and model data set comprising a set of K harmonic component signals, wherein is calculated under the condition that the model data c* satisfies the equation oc; + 1 +1+. . +ai ;+J{ = 0 at measured data points with a set of complex values a0. . aK, and changing the value of K and recalculating as many times as necessary until lies within a noise range derived from a determined quantity representative of the noise.

24. A computer readable medium carrying a computer program, the program having modules of program code for carrying out the method of any of claims 1 to 22.

Description:
Methods and apparatus for obtaining enhanced mass spectrometric data

Field of the invention This invention generally relates to mass spectrometry, particularly to methods and apparatus for obtaining enhanced mass spectrometric data. An aspect of the invention relates to methods of determining a measure of how many different species of ions are present within a mass analyser within a range of mass-to-charge ratios. Further aspects relate to determining the mass-to-charge ratios and abundances of such ions.

Background of the Invention

Mass Spectrometry (MS) is a widely used analytical technique for characterising atomic and/or molecular compositions by measuring the masses, or more particularly the mass-to-charge ratios, of ionized analytes in an electric and/or magnetic field of a mass analyser.

Among the various types of mass spectrometers, Fourier Transform Mass Spectrometers (FTMS) are known as the instruments providing the highest accuracy, resolution and resolving power. The method of FTMS analysis is based on trapping ions, for instance in a combination of electrostatic and magnetic fields in the case of Fourier Transform Ion Cyclotron Resonance MS (FT-ICR MS), or in solely an electrostatic field in the case of the Orbitrap™ analyser. In both cases, the trapped ions oscillate and induce alternating image charge on detector electrodes with specific frequencies dependent on their respective mass-to-charge ratios (m/z). The resulting image current is amplified, sampled, and recorded.

Historically, a typical FTMS spectrum is obtained by applying a Fourier Transform (FT) to the signal (the so-called "transient") recorded during time T at N temporally equidistant points to obtain a spectrum in the frequency domain. In turn, the frequency is related to the m/z. Fast Fourier Transform (FFT) algorithms are typically used for this processing. The technique treats a transient as a sum of non-decaying harmonic signals and produces a spectrum on an equidistant grid of frequencies separated by Af FT = 1/T in the Nyquist frequency band -N/2T < f ≤ N/2T. Although robust and fast, FT has a frequency resolution uncertainty Af FT which restricts both the precision and resolution of mass measurements and thus limits the overall quality of the mass spectra. Furthermore, FT does not provide explicit information about the decay rate of any harmonic component of a spectrum, which degrades the accuracy of the ion abundances in the mass spectra. Since FT utilises interfering harmonic waveforms, it produces spectra which might have different intensities for closely separated peaks compared to MS methods utilising direct detection of ion beams such as Time-Of-Flight (TOF) MS.

The aforementioned shortcomings of FT are the tradeoffs against its advantages. To address the drawbacks, improvements have been devised that take advantage of certain properties of the recorded FTMS signal.

Lange and Senko describe in EP2372747 a method that capitalises on the phase correlation in the FTMS signal to obtain more accurate FT amplitude spectra in so-called absorption mode. Although the resulting spectral peaks are somewhat narrower and side-lobes are suppressed, this method still fails to provide resolution beyond the FT uncertainty described above. Moreover, the phase-corrected FT algorithm employed requires exact knowledge of the expected signal phase, which is not always a priori known for FTMS signals and is not necessarily preserved throughout the entire mass range.

A model-based method has been proposed by R.A. Grothe in US 2009/0278037 A that comprises processing a signal in the frequency domain and involves a least squares approximation of each FT spectral peak of a measured signal with a model signal of an unknown frequency, initial amplitude, phase, and decay. It also utilises the signal's frequency sparseness, which allows isolation of peaks of interest within a narrow frequency window. This method provides much better precision in obtaining all spectral parameters, i.e. phase, amplitude, decay, and frequency. The frequency accuracy is not restricted to 1/T for any peak separated from the other by at least several FT data bins. Although a generalisation of the method to the case of K peaks that overlap in the FT domain is straightforward, it necessarily leads to a non-linear problem of finding K sets of individual spectral parameters. Moreover, in order to solve this problem, any numerical algorithm requires an a priori knowledge of the value K and close initial approximations of frequencies. Therefore, in practice this method does not provide peak resolution better than 1/T.

Another approach recently introduced is the Filter Diagonalization Method (FDM) [3,4], as described in Mandelshtam V.A., Progress in Nuclear Magnetic Resonance Spectroscopy, 38, 159-196 (2001 ) which has been described in relation to the field of FTMS in Aizikov, K. and P. B. O'Connor, Journal of the American Society for Mass Spectrometry, 17(6), 836-843 (2006). FDM represents an attempt to bypass the limitations imposed by the FT equidistant frequency grid and go beyond the consequently imposed uncertainty. The technique introduces a special auxiliary quasi-quantum dynamic system with a not self-conjugate Hamiltonian operator, which is then diagonalized to find the complete set of frequencies. The FDM can be also reformulated as utilising the auto-correlative nature of FTMS transients that means that each successive intensity value in a transient can formally be represented as a linear combination of values at previous time-points. Typically operating on discrete "pseudo-transient" signals reconstructed from narrow frequency band FT windows by means of inverse FT, FDM decomposes a discrete signal in the time domain represented by N temporally equidistant complex data points into a sum of N/2 decaying harmonic components (sinusoids), each of them characterized by a complex frequency and complex amplitude.

FDM succeeds in providing mass peak resolution superior to that of FFT. However, FDM realises exact collocation of a measured, i.e. noisy, FTMS signal with a number (N/2) of harmonics that significantly exceeds the number of unique ion spices in the mass analyser, thus making no allowance for noise. Since a measured signal typically contains significant noise and given the sparse nature of FTMS signals, the degeneracy introduced by the excessive number of harmonic components leads to instabilities in the method that manifest themselves in spurious peaks, peak splitting and other undesirable artifacts which are difficult to separate from real peaks.

Other methods under the so-called Linear Prediction (LP) scheme that rely on the auto-correlative properties of FTMS transients have been described for bypassing the FT uncertainty, as in, for example, T.C. Farrar, J.W. Elling and M.D. Krahling Anal. Chem. 64 2770-277 '4 (1992), S. Guan, A.G. Marshall Analytical Chemistry 69(6), 1 156-1 162 (1997),and the Maximum Entropy Method (MEM) (see, for example, A. Rahbee International Journal of Mass Spectrometry and Ion Processes 72(1 -2), 3-13 (1986) and Z. Zhang, S. Guan and A.G. Marshall Journal of the American Society for Mass Spectrometry 8(6), 659-670 (1997)). These methods reduce the degeneracy of FDM by approximating, rather than collocating exactly as with FDM, the measured time domain signal as a linear combination of a typically smaller than N/2 number of exponentially decaying harmonics (sinusoids). An approximate number of harmonics has to be known a priori or guessed. The problem is hence formulated as an over-determined system of linear equations which is solved using the least squares technique. Harmonics that are related to signals from ions can be distinguished from harmonics that are related to noise by their amplitude (see T.C. Farrar et al and Guan and Marshall). Yet, the excessive number of assumed harmonics can lead, similarly to the FDM, to peak splitting and spurious solutions, whereas underestimation of this value of this value degrades resolution.

Although these LP methods can provide a resolution similar to that of FDM with better stability, they still employ a large number of harmonics and are known to work only under low noise conditions since they become increasingly unstable at the elevated noise levels typical associated with FTMS signals. Furthermore, if applied directly to a typical FTMS transient these methods become computationally prohibitively costly, more so than FDM since they are iterative in finding the number of harmonics.

For these types of methods to work efficiently and effectively in practice, it is essential to have an a priori knowledge of the exact number of harmonic components; too few may result in subpar resolution whilst too many may introduce the previously mentioned artefacts, such as spurious peaks. With the LP methods, the number of harmonic components is difficult to estimate.

Manolakis, Ingle and Kogon ("Statistical and Adaptive Signal Processing", 2005, Artech House Inc., Norwood, US, ISBN: 1 -58053-610-7, pp. 478-494) describe an harmonic signal model comprising complex exponentials in noise. An autocorrelation technique is used under the assumption that the noise component is small in order to attempt to determine the number of complex exponentials present. The correlation matrix is constructed using the set of measured data, and the eigenvalues and eigenvectors are determined. The eigenvalues exceeding the expected noise level are considered to represent true signal components and the rest are considered as related to noise. However in this approach the autocorrelation properties of the measured signals are evaluated, instead of the autocorrelation properties of the model signal. This means that the residual determined is not directly related to the noise in the measured signal, but is only an approximation of it, which is unsatisfactory if either the signal-to-noise ratio is low, and/or there are measured peaks separated in frequency by less than 1/T where T is the signal duration (the very problem this present invention seeks to address). Whenever there are at least two peaks separated by less than 1/T, the problem of resolution becomes ill-defined and the role of noise increases dramatically, making the methods described not applicable. Critical assumptions are that the noise component is small and the data records are long (large T), neither of which is the case in FTMS. The authors of the referred book note that the autocorrelation techniques described are best used as rough estimates, as their performance is not very accurate, especially for short data records.

Summary of the Invention

The invention has been made against the above background.

Aspects of the invention provide a method of mass spectrometry comprising: providing measured data comprising signal and noise measured over time that has been obtained from species of ions performing multiple changes of direction in a periodic manner within a mass analyser, the species being within a range of mass-to-charge ratios; determining a quantity representative of the noise in the measured data, and determining a model data set of -harmonic component signals from the measured data; wherein the harmonic component signals and their number K are determined iteratively on the basis of: using an initial value of K to calculate a minimised non-negative measure of difference between the measured data and model data comprising data sets of -harmonic component signals, wherein is calculated under the condition that the model data c * satisfies the equation a 0 c * + a t c * +1 +. . +a K c n * +K = 0 at measured data points with a set of complex values a Q . . a K , and if does not lie within a noise range based upon the quantity representative of noise, changing the value of K and recalculating R (K) as many times as necessary until does lie within the noise range; and, deriving mass spectral information about the ion species from the model data set, the mass spectral information comprising one or more of: a measure of the number of different species of ions; a measure of the mass-to-charge ratio of the species of ions; a measure of the signal intensity of each species of ions.

The invention also provides a method of deriving mass spectral data comprising; deriving a model data set comprising a set of K harmonic component signals from measured data comprising signal and noise measured over time using a mass analyser from different species of ions present within the mass analyser and within a range of mass-to-charge ratios, the ions performing multiple changes of direction in a periodic manner within a range of frequencies within the mass analyser; determining a quantity representative of the noise in the measured data; finding the harmonic components and their number K on the basis of: using an initial value of K to calculate a minimised non-negative measure of difference R^ between the measured data and model data set comprising a set of K harmonic component signals wherein R^ is calculated under the condition that the model data c * satisfies the equation a 0 c * + a t c * +1 +. . +a K c n * +K = 0 at measured data points with a set of complex values a Q . . a K , and if R^ does not fall within a noise range derived from the quantity representative of the noise, changing the value of K and recalculating R^ as many times as necessary until R^ does fall within a noise range derived from the quantity representative of the noise; and deriving mass spectral data from the model data set. The K harmonic signals are sinusoids with amplitudes and frequencies that may include decay and phase information as described in more detail below. Each amplitude and frequency represents respectively an abundance and mass-to-charge ratio of a different species of ion.

Beneficially, the mass spectral data derived by the invention is of high resolution and resolving power with reduced incidence of spurious solutions and split peaks. The derived mass spectral data may include data representing mass-to-charge ratios of ions and/or data representing the numbers of ions (ion abundances or intensities) having said mass-to charge ratios. The data representing mass-to-charge ratios of ions may comprise frequency data (e.g. relating to ion periodic motion frequency) and/or the mass-to-charge ratios themselves. Preferably, the mass-to-charge ratios are derived, e.g. from frequencies of the -harmonic component signals. Conversion of frequencies to mass-to-charge ratios may be performed in any well known manner, for example in a similar way to how it is done in FTMS. Preferably, the ion abundances are derived, e.g. from amplitudes of the K- harmonic component signals. It will be appreciated thus that the derived mass spectral data preferably comprises a mass spectrum. The derived mass spectral data may be of a limited or narrow range of mass-to-charge ratios. The method, however, is preferably repeated a plurality of times to derive mass spectral data of a wider range of mass-to-charge ratios. In other words, the derived mass spectral data may relate to a window of mass-to-charge ratios, that is preferably limited or narrow, and the method may be repeated a plurality of times to derive data for a plurality of such windows of mass-to charge ratios, each window covering a different range of mass-to-charge ratios, although the windows may overlap. Thus, a limited range mass spectrum may be derived on the basis of each such window and a wider or full range mass spectrum may be derived on the basis of a plurality of such windows.

Viewed in another aspect, the invention can be seen to provide a method of mass spectrometry comprising decomposing measured data comprising signal and noise measured over time using a mass analyser into a sum of K harmonic component signals and a noise component, wherein the harmonic component signals and their number K are derived from the measured data and a determined quantity representative of the noise in the measured data.

The invention also provides various methods of mass spectrometry as hereinafter described comprising the steps of the method of determining a measure of how many different species of ions are present within a mass analyser or the method of deriving mass spectral data. The methods are preferably methods of Fourier transform (FT) mass spectrometry, i.e. they may be performed using measured data acquired on an FT mass spectrometer.

Another aspect of the invention provides a system for determining mass spectral information about species of ions present within a mass analyser and within a range of mass-to-charge ratios, each species having a different mass-to-charge ratio, comprising: a computer having an input for receiving measured data comprising signal and noise measured over time that has been obtained using a mass analyser from different species of ions present within the mass analyser and within a range of mass-to-charge ratios, the ions performing multiple changes of direction in a periodic manner within a range of frequencies within the mass analyser, and an output for outputting the mass spectral information derived by the computer from the measured data; wherein the computer is programmed with a program comprising: one or more modules of program code for deriving a model data set comprising a set of K harmonic component signals from the measured data; and one or modules of program code for finding the harmonic component signals and their number K iteratively on the basis of: using an initial value of K to calculate a minimised non-negative measure of difference between the measured data and model data set comprising a set of K harmonic component signals, wherein is calculated under the condition that the model data c * satisfies the equation a 0 c * + a c n * +1 +. . +a K c n * +K = 0 at measured data points with a set of complex values a 0 . . a K , and changing the value of K and recalculating as many times as necessary until lies within a noise range derived from a determined quantity representative of the noise. Another aspect of the invention provides a system for deriving mass spectral data comprising: a computer having an input for receiving measured data comprising signal and noise measured over time using a mass analyser from different species of ions present within the mass analyser and within a range of mass-to-charge ratios, the ions performing multiple changes of direction in a periodic manner within a range of frequencies within the mass analyser, and an output for outputting mass spectral data derived by the computer from the measured data; wherein the computer is programmed with a program comprising: one or more modules of program code for deriving a model data set comprising a set of K harmonic component signals from the measured data; one or modules of program code for finding the harmonic component signals and their number K on the basis of: using an initial value of K to calculate a minimised non-negative measure of difference between the measured data and model data set comprising a set of K harmonic component signals, wherein is calculated under the condition that the model data c * satisfies the equation a 0 c * + a c n * +1 +. . +a K c n * +K = 0 at measured data points with a set of complex values a 0 . . a K , and changing the value of K and recalculating as many times as necessary until lies within a noise range derived from a determined quantity representative of the noise; and one or more modules of program code for deriving mass spectral data from the model data set.

The system may further comprise an input for the predetermined noise power, or the computer program may further comprise a module for predetermining the quantity representative of the noise, e.g. by evaluating noise on the measured signal. The system may form part of a mass spectrometry system, e.g. further comprising the mass analyser.

A further aspect of the invention provides a computer program having modules of program code for carrying out the method of the present invention (i.e. when the program is executed on a computer), more specifically for carrying out the data processing steps.

A still further aspect of the invention provides a computer readable medium carrying the computer program. The medium is to be read by a computer such that the program can be executed on the computer. The method may be used to determine a measure, K, of the number of different species of ions present within a mass analyser within a range of mass-to-charge ratios, the ions being present in the analyser at least when the measured data is collected from them, the ions performing multiple changes of direction within the analyser in a periodic manner. Preferably the ions follow a flight path comprising oscillations or rotations within the analyser. The ions thereby perform multiple changes of direction in a periodic manner at frequencies within the mass analyser, the frequencies of periodic motion being related to the mass-to-charge ratios of the ions. Thus, the different species of ions present within the mass analyser having different mass-to- charge ratios within a range of mass-to-charge ratios will undergo periodic motion within a range of frequencies. A detector is used to detect the passage of ions within the analyser. Preferably the method of detection utilises image currents induced within detection electrodes positioned close to at least a portion of the flight path. The image currents thus induced may contain harmonics of the frequencies of periodic motion of the ions, or may, depending upon the geometry of the detection electrodes, comprise pulses at frequencies related to the frequencies of motion of the ions. The ions may remain in the analyser while the method is being performed, for example if the method is performed on-the-fly, but more likely the ions will no longer be present in the analyser as they will typically be removed once the measured data has been collected and as they are not required to remain present in the analyser whilst the method determines the harmonic component signals and their number K and performs any other data processing operations such as determining a mass spectrum from the data. Thus, it is not material to the operation of the invention whether the ions are present in the analyser while the method is being performed.

The measured data is typically a transient signal (sometimes referred to herein simply as a "transient"), e.g. as obtained from an FTMS mass analyser. The measured data may be derived using a method employing image current detection, or any other method which detects the periodic motion of charged particles within a mass analyser. For many of its preferred embodiments as described below, the invention may take advantage of one or more properties of a typical transient signal. A first such property is that the signal is sparse in the frequency domain, which means that the number of acquired signal values N usually far exceeds the number of harmonic components (equal to the number of ion species with unique mass to charge ratios simultaneously present in an analyzer). Another such property is that the noise power on the signal can be treated as being substantially constant within a narrow frequency window. Still another property is the autocorrelation property of the signal, namely that the value of the signal at a given point in time can be expressed as a combination of values of the signal at previous or succeeding time points. A further such property is that the phases of ion oscillation are usually correlated with the moment of ion injection in, for example, an Orbitrap analyser or ion excitation in an FT-ICR analyser. A still further such property is that the decay constants of the harmonic signals are predictable in most cases. Not all embodiments of the invention rely on these properties however. Some aspects rely on only a single constraint that the noise power is substantially constant within the frequency range corresponding to the range of mass-to-charge ratios, as will be further described.

A typical transient signal decays exponentially from an initial amplitude, usually due at least in part to ion-background gas collisions causing a reduction in the oscillating ion population within the mass analyser. Some aspects of the present invention make use of the decay properties of a transient; others may be used with a steady transient having zero decay.

The measured data, because it is real data, comprises both signal and noise. The quantity representative of the noise is a value representing the noise that is determined and used as a reference to find the optimum value of K. It is preferably the noise power derived from the spectral noise power. The quantity representative of the noise may be an evaluated or measured quantity or it may simply be a value that is set. The quantity is preferably a measured or evaluated quantity. Thus, the invention preferably comprises measuring or evaluating a quantity representative of the noise on the measured data. The noise may be evaluated from the measured data being used to derive the model data (i.e. the measured data under analysis), or it may be evaluated from one or more sets of previous or subsequent measured data (e.g. in a calibration procedure). Thus, the noise power is generally known or can be measured from calibration data (e.g. a calibration transient) acquired separately from the measured data (e.g. measured transient). Noise power may be determined from the actual measured data, for example, by statistical analysis of the measured data. However, preferably the quantity representative of the noise, e.g. noise power, is, for example, measured from calibration data (e.g. a calibration transient acquired with no ions purposely present in the detecting volume of the analyser). The determined quantity representative of the noise can be measured in this way and the noise determined for the frequency window under analysis (i.e. the frequency window in the measured data). The measured noise in this way typically varies as a function of frequency but is typically constant and is preferably assumed constant for the frequency window in the measured data. The noise may be determined as a characteristic of the preamplifier, e.g. as a known smooth function of frequency.

In certain preferred embodiments, therefore, the quantity representative of the noise is determined by a method comprising one or more of: evaluating the noise power from the measured data; evaluating the noise power from a previous set of measured data derived from the mass analyser; measuring characteristics of preamplifiers used in the signal measuring apparatus of the mass analyser; setting a noise power on the basis of prior knowledge of the mass analyser.

Typically, the noise on the measured data has a substantially constant spectral density and comprises noise components at each measured data point which are statistically independent and normally distributed having zero mean and a dispersion related to the spectral noise power, the spectral noise power being substantially constant over the measured data set, at least in a narrow frequency window. The robustness of the invented method demonstrates itself in an ability to derive the model signal from noisy transients beyond FT uncertainty.

Overall the invention can be seen to reside in fitting a model data set to measured data, which herein means mathematically fitting, taking into account the noise on the measured data. The step of determining the noise power and using the determined noise power in finding the most probable number K of harmonic signals in the model set is a different approach to the prior art methods, such as the FDM, which does not account for noise and solves the problem on the basis of a large K, i.e. K = N/2. Other linear prediction methods approximate the measured data with the model data and so have a residual difference between them but the residual is not correlated to a determined noise power of the measured data to find K. On the contrary, the prior art approach of minimising K (as close to zero as possible) will not find the most probable K since real noise in the measured data is not negligible. Other prior art methods attempt to fit K harmonic signals to measured data containing noise and, having found a multitude of such -harmonic signals, face the problem of distinguishing which of them model harmonic signals originating from ion motion within the mass analyser and which of them are harmonic signals which are effectively fitted to noise components. The present invention on the other hand, by taking account of a realistic measure of noise and purposely using it to find the most probable K, preferably fits a minimum number of K-harmonic signals to the measured data without significantly thereby fitting harmonic signals to measured noise. The method is a robust method that results in fewer spurious peaks and artefacts whilst being computationally highly efficient since it does not involve calculations with a larger number of terms than is necessary, K being much smaller than N. The method advantageously doesn't require any input of additional computational parameters except for a determined noise measurement, which itself may optionally be determined from the measured data.

It may be convenient to perform the methods of the present invention using measured data comprising information on a limited range of mass-to- charge ratios in which case, optionally, the range of mass-to-charge ratios may be limited and selected from a larger data set.

In preferred embodiments, the invention uses Fourier Transform (especially FFT) of the measured transient signal, i.e. the measured data, followed by windowing the transformed signal in a number (one or more) of relatively narrow frequency intervals before transforming each window of data back to the time domain to be processed independently, optionally in parallel. Each window typically at least partially overlaps its neighbouring window or windows. Alternatively other known methods for deriving a frequency spectrum from a measured transient may be used. By way of further explanation, the full measured data set as detected by the mass analyser contains signals from all the ions present in the mass analyser. This may comprise a large number of different mass-to-charge ratios spread over a wide range, i.e. with a large number of peaks in the mass spectrum. In order to simplify computation and to take advantage of the property of constant noise in a narrow frequency window, the measured data preferably is windowed or filtered so it contains data only from ions of a narrow or selected range of mass-to-charge ratios selected from ions of a wider range of mass-to-charge ratios present in the mass analyser. In other words, the measured data, on which the method of the invention is preferably performed, preferably consists of signals from the ions of the narrow or selected range, together with noise, the measured data thus being a selection from a larger data set with a frequency range corresponding to a limited mass- to-charge range.

Given the sparseness and highly localized nature of FTMS signals in the Fourier transform spectrum, subdividing the whole spectrum into relatively narrow windows (preferably overlapping) to be analyzed individually does not introduce noticeable artefacts whilst substantially reduces both computational time and hardware resources. The measured data thus is preferably windowed or filtered, i.e. to contain only information on ions in a limited or narrow range of mass-to-charge ratios. It is frequency filtered or windowed so as to only contain signals with frequencies in a narrow range corresponding to the frequency window and the corresponding ions of selected mass-to-charge ratio. Simple B-spline windowing functions W(f) such as rectangular, triangular, or others can be used for this purpose. Yet, among other options, windows with the lower spectral leakage are the most beneficial. Typically these are smooth windows such as polynomial, generalized Hamming, cosine, adjustable, and hybrid windows, Hence the method may also comprise multiplying the spectrum within the selected range of frequencies by a smooth windowing (apodization) function W(f) of frequencies prior to transforming into the time domain. Such windowing, however, may not be necessary in every application. For example, such windowing may not be required where there are only a few peaks in the whole spectrum. For a non-unit windowing function, the obtained complex amplitudes A k may be further adjusted with respect to the windowing function, preferably by multiplication by Wifa) '1 , where f k is the obtained frequency of the k th harmonic.

Thus, the method preferably operates on "pseudo-transient" signals (or "windowed" signals) as the measured data, which have been reconstructed from narrow frequency band FT windows by means of inverse FT. The windows may or may not be overlapping. The reported results of the computation may or may not be from the non-overlapping part of the original spectral region. For dense spectra the edges of the windows preferably may correspond with troughs or local minima between spectral peaks The method can then be repeated on a plurality of such narrow or selected ranges ("windows") in order to obtain the desired data (e.g. frequency, mass-to charge ratio and/or abundance) for all ions of interest. That is, the method is performed in such cases on a plurality of such pseudo-transients or windowed signals, optionally in parallel.

The filtered measured data from the narrower range of mass-to-charge ratios is preferably selected from the larger data set by a method comprising: taking a Fourier transform of the larger measured data set (entire transient) to form a transformed data set (i.e. a spectrum in the frequency domain); selecting data in a range of frequencies (i.e. a frequency window) in the frequency domain spectrum of the transformed data set to form a transformed data subset; and transforming the transformed data subset (e.g. by inverse FT) back into the time domain to form the filtered measured data. More specifically, such a method comprises selecting a range of frequencies in the Fourier transform spectrum comprising N subsequent Fourier coefficients; and taking the inverse Fourier transform of the selected range of Fourier coefficients to form a time-domain windowed signal comprising N or less complex-value data points (reconstructed transient). An arbitrary part of the reconstructed transient may be used as the pseudo-transient, preferably the inner part. The reconstructed transient can be re-sampled at a number of equidistant time points starting from an arbitrary time to and ending at an arbitrary time ti¾.i > to, where N≤N. For non-zero to the found amplitudes A k may be corrected by multiplication by θχρ(-2πί f k t Q ), where f k is the obtained frequency of the k th harmonic.

Methods of the present invention may be used to provide mass spectral information from a first set of windowed data sets whilst other methods may be used to provide mass spectral data on a second set of windowed data sets. The first and second windowed data sets may overlap. The mass spectral information from the first set and the mass spectral information from the second set may be combined or stitched together to form an augmented set of mass spectral information. The other methods could be Fourier transform for example.

Unlike known methods of harmonic inversion, the invention treats the measured data as the sum of the "true" signal and the noise, both of which are initially unknown. However, in the method of the invention the noise is accounted for by determining a noise power as herein described. The "true" signal is then obtained from the model data set derived from the measured data taking into account the determined noise.

The ions typically comprise ions having a plurality of mass-to-charge ratios. Each mass-to-charge ratio gives rise to periodic ion motion at a characteristic frequency related to the mass-to-charge ratio. Thus, each type of ion of a given mass-to-charge ratio provides a signal detected in the time domain with a characteristic frequency. The measured data is a sum of these individual signals of characteristic frequency, and noise.

The measured data is measured using the mass analyser from the periodic motion of ions within the mass analyser, typically by image current detection in a detecting volume of the analyser. The measured data is thus typically a transient, more preferably wherein the measured data is recorded at substantially constant time periods. Since the mass analyser may be a known type of mass analyser, typically an FTMS mass analyser, the specific details of the analyser are not given herein as they will be apparent to a person skilled in the art. Instead only general details of the analyser will be given. It will be appreciated that the invention may relate to mass spectrometry employing a single stage of mass analysis, or two stages of MS (i.e. MS/MS analysis), or further stages of MS (i.e. MS n analysis). That is, the measured data may be from any one or more stages of mass analysis.

Prior to analysis in the mass analyser, ions are typically produced first and then introduced into the mass analyser for detection. The invention preferably comprises producing ions in an ion source of a mass spectrometer. The ion source may be, for example, any suitable known ion source such as, for example, a MALDI source, electrospray ionisation (ESI) source etc. The sample or samples from which the ions are produced in the ion source may originate from any suitable source, for example a liquid chromatograph (LC). The ions to be analysed in the mass analyser may comprise, for example, ions of biological analytes such as proteins, peptides, lipids, pharmaceuticals and/or metabolites etc., as well as non-biological analytes. The invention is especially useful in proteomics where the ions are typically of peptides from the digest of a mixture of proteins and where high resolution and stability of the mass spectrum are particularly required.

The produced ions, which are to be analysed, are preferably directed into a mass analyser using an ion injector. The ion injector may comprise one or more of an ion trap, an ion accelerator and the like. A curved linear ion trap (C-trap) is a suitable ion injector for an Orbitrap™ mass analyser. The mass analyser is preferably one in which the ions undergo oscillations or rotations, especially oscillations or rotations at a frequency which depends upon their mass-to-charge ratio (m/z).

The mass analyser is preferably a mass analyser for Fourier transform mass spectrometry (FTMS). Examples of such analysers include electrostatic trapping mass analysers, such as electrostatic orbital trapping mass analysers (preferably an Orbitrap™ mass analyser) and FT-ICR mass analysers.

The measured data is data measured in the time domain from motions of ions within a mass analyser. The mass analyser preferably comprises an image current detector, e.g. one or more electrodes (especially a pair of electrodes), to detect the ions in the analyser and the method accordingly preferably comprises detecting an image current induced by the motion of the ions in the mass analyser to provide a transient signal as the measured data. The measured data or image current is detected over a period of time T, especially at a multiple time points t n over the period of time T (n = 1 ... /V where N is the total number of digitised data points in the signal). The detector thus detects the image current as a signal S(t n ) in time (i.e. as a transient), which is measured. The measured data is thus preferably an image current signal.

The measured signal is preferably amplified, e.g. using a pre-amplifier, as known in the art. As mentioned, the measured signal S(t n ) is preferably digitised at moments of time t n {n = 1 .../V). The measured data is thus preferably recorded at substantially constant time periods, i.e. at temporally equidistant data points. A digitiser (A/D) is typically employed for this purpose. The moments of time t n preferably constitute an arithmetic progression, i.e. are equidistant. The total recording or sampling time of the observed signal being T, the sampling rate is thus given by NIT.

Whilst suitable mass analysers have thus been described, it will be appreciated that the method of the present invention may be applied to measured data in the time domain which emanates from as yet unknown mass analysers, as long as the measured data is, or may be converted into, data in which each ion having a given mass-to-charge ratio had periodic ion motion within the mass analyser at a characteristic frequency related to the mass-to-charge ratio at the time the measured data was acquired.

According to a further aspect of the present invention there is provided a mass spectrometer comprising: an ion source for forming ions of different mass-to-charge ratios from sample material; an ion injector for injecting ions formed by the ion source into a mass analyser, the mass analyser arranged to cause the ions received from the ion injector to undergo periodic motion at frequencies related to the mass-to-charge ratio of the ions; a detection system arranged to detect an image current signal from the ions as they undergo periodic motion; and a processor for receiving measured data comprising signal and noise from the detection system, the processor being configured to determine mass spectral information about the ions formed from sample material using the steps of the method according to the present invention.

Preferably, the measure of difference R (K> is based on a normalized sum of residuals (i.e. differences) between the measured data and the model data at a plurality of data points, more particularly a sum of residual norms (herein also termed simply a residual norm). More preferably, the measure of difference R ' is a minimised sum of such residuals, especially with respect to a set of autocorrelation coefficients, as described in more detail below. Accordingly, the measure of difference R (K> preferably is a minimum difference. Expressed another way, preferably the measure of difference R (K> is the minimum residual norm of the difference between the measured data and any sum of K harmonic signals.

Preferably a noise range is determined, based upon the determined quantity representative of noise; the noise range preferably includes the quantity representative of noise. The noise range may for example be one of: 0.1 to 10 times the quantity representative of noise; 0.2 to 5 times the quantity representative of noise; 0.5 to 2 times the quantity representative of noise; or any combination of minimum and maximum range values just stated.

In view of the foregoing description, preferably a noise range is determined, the noise range being based upon the determined noise quantity, and the harmonic component signals and their number K are derived from the condition that the minimum norm of the measure of difference R (K> between the measured data and any sum of K harmonic signals lies within the noise range, most preferably from the condition that the minimum norm of the measure of difference R (K> is lower than or equal to the determined noise quantity (wherein the noise range is the determined noise quantity or lower), and the minimal norm of a measure of difference R (K'1> between the measured data and any sum of -1 harmonic signals is higher than the determined noise quantity. According to another preferred criteria, K is derived from the condition that the minimum norm of the measure of difference R (K> between the measured data and any sum of K harmonic signals is the closest in absolute value to the determined noise quantity.

The method may start finding the harmonic component signals and their number K by using any suitable initial value of K. Preferably, K is increased from an initial value of 0 and R (K> is evaluated for each increasing value of K. In other words, using K = 0, a minimum measure of difference R (K> is found between the measured data and model data set comprising the set of -harmonic signals. Then, using K = 1 , another minimum measure of difference R (K> is found between the measured data and model data set and this is repeated for further values of K (e.g. K = 2 etc.), as many times as necessary until, for a given K, R ' lies within the noise range. Preferably, K is the minimum value for which the measure of difference R (K> equals or preferably becomes less than the noise quantity, typically just less than the noise quantity. Thus, in such preferred embodiments, the value of K is changed and R (K> is recalculated until R (K> equals or becomes less than the noise quantity. In such situations, the R (K> lies within the noise range and is deemed to be substantially equal to the noise quantity.

In another, similar approach, the method of the invention comprises changing the value of K and recalculating R (K> until R (K> becomes the closest value to the noise quantity.

However, whilst less efficient, it is possible to perform the method wherein K is decreased from an initial value and R (K> is evaluated for each decreasing value of K (i.e. until the criteria for finding K is reached). In such embodiments, the method may include situations wherein K is decreased from an initial value which is less than N/2, and more preferably less than N/4, where N is the number of measured data points. In embodiments in which the method assumes free decay of the harmonic signals, the natural upper limit of K (above which R (K> is zero) is N/2, so that K may be decreased from an initial value which is N/2 or less, preferably less than N/2. In embodiments in which the method assumes fixed (especially zero) decay of the harmonic signals, , the natural upper limit of K is 2Λ//3, so that K may decreased from an initial value which is 2Λ//3 or less, preferably less than 2Λ//3. Generally, as the number of different species of ions within the mass analyser is very much less than N, the number of iterations required is greater in that case, which is why it is preferred to start from K = 0. Furthermore, the method preferably comprises various matrix calculations which are more rapidly and efficiently performed where the number of component signals is small and so it is preferably to obtain the highest computational efficiency to start from K = 0.

The method finds K harmonic signals that exceed the determined noise, i.e. the method limits the K harmonic signals sought to those that exceed the determined quantity representative of the noise. Thus, the method finds far fewer K harmonic signals for the model data set than typical prior art methods such as FDM and linear prediction methods. The number K of harmonic signals in the model data set is certainly smaller than the value N/2 that is used in FDM and is preferably less than N/4. On the other hand, the large numbers for K used in FDM and linear prediction methods means that many of the K harmonic component signals in those cases effectively characterise noise thereby leading to spurious peaks. Thus, whilst FDM and linear prediction work in instances of low noise transients, in practice the levels of noise in real FTMS transients means that FDM and linear prediction are severely limited by the production of artefacts. The present invention, however, succeeds in reducing the appearance of artefacts whilst achieving similar levels of high resolution beyond the FT limit.

The method may be implemented wherein an initial value for K is determined by obtaining a frequency spectrum (e.g. by taking a Fourier transform) of the measured data and determining an initial value for K from the number of peaks in the frequency domain spectrum of the transformed data.

Preferably, R (K> , being a normalized sum of residuals (also termed herein a sum of residual norms), is described by a term or terms comprising: min ^∑n=o w n\ c n - c n l 2 . where c n is measured data at each of N data points, w n are the time-domain weight coefficients and c * is the model data set of K- harmonic signals at each of N data points in the model data set. In other words, the measured data is represented with a number N of complex values c n at a plurality of data points, the model data that is a sum of K harmonics is represented by the same number N of complex values c * (thus situated on the same temporal grid as c n ) and R (K> is the minimum of the norm of their residual or difference ("residual norm") \\c n - c * || = (1/N)∑ w n \c n - c * | 2 (i.e is the sum of squared absolute values of their differences normalized by N) taken in the space of all possible complex values c * that can be represented as a sum of the K harmonics.

The time-domain weight coefficients w n may or may not be constant. For the sake of simplicity but not restricting generality, these coefficients are assumed in this example to be identically unit: w n = 1.

In order to minimise the norm of said residual for a given K, the method comprises deriving, preferably by a method of harmonic inversion, a set or vector of autocorrelation coefficients, a, relating terms c * according to a 0 c * + a 1 c^ l+1 +. . +a K Cn +K = 0, where c * is the K-harmonic signal at data points in the model data set and a 0 ... a K are the autocorrelation coefficients. This brings the minimum R {K) = min(l/N)∑^=o l c n _ c n \ 2 to the norm of the difference \\c n - c n * \\ between the measured signal c n and the model signal c * that obeys the above autocorrelation condition with a given vector a. The vector of autocorrelation coefficients, Qk, is preferably found that minimises the expression

RW = \\c n - 11 = min(N _1 a T H(o) a) where H(a) is a Hermitian (K+1 )x(K+1 ) matrix and a is the vector of autocorrelation coefficients.

Thus the above mentioned spectral sparseness and autocorrelation properties of the transient signal can be employed to cast the problem to be solved as one of a non-linear norm residual minimization with respect to the autocorrelation coefficients, which allows feasible and robust numerical solution.

The K harmonic signals are sinusoids with amplitudes and frequencies. Each of the frequencies represents a mass-to-charge ratio of a different species of ion and each of the amplitudes represents an abundance of a different species of ion (the amplitudes being generally proportional to the abundances).

The method of the invention thus preferably comprises deriving mass spectral data from the model data set. The method preferably comprises determining mass-to-charge ratios of ions (i.e. ions in the mass analyser from which the data was measured) from the model data set. The method further preferably comprises determining signal intensities of the ions, i.e. numbers of ions (ion abundances) of each mass-to-charge ratio. Thus, the method of the invention preferably comprises deriving a mass spectrum. The mass spectrum can be either a full or partial (i.e. limited mass-to-charge ratio range) spectrum.

The method preferably comprises determining mass-to-charge ratios of ions from the K harmonic component signals, especially from the frequencies of the K harmonic component signals. The method more preferably comprises determining the mass-to-charge ratios of the K species of ions found using the method from the K harmonic component signals, especially from the frequencies of the K harmonic component signals. The frequencies of the K harmonic component signals are readily found from the autocorrelation coefficients once K has been found.

More preferably, the method further comprises: combining the autocorrelation coefficients, a, in a polynomial equation of the form α 0 + α λ + α 2 λ 2 ... + α κ λ κ = 0; deriving the frequencies of the K harmonic signals from the roots k of the polynomial equation; and translating the frequencies of the K harmonic signals from the frequency domain to the mass-to-charge domain, each of the frequencies thereby describing a mass-to-charge ratio of each of the K species of ions. From the determined mass-to-charge ratios, a mass spectrum can be obtained. It is thus a further feature that a mass spectrum is determined from the K harmonic component signals, especially from the frequencies of the K harmonic component signals.

The method preferably comprises determining an estimate of the number of ions (i.e. the abundance) of each ion species (each mass-to-charge ratio) within the mass analyser, more preferably from the amplitudes of the K- harmonic signals. The roots of the polynomial equation used to find the frequencies can also be used to find the amplitudes. The amplitudes may be found, for example, by minimization of the sum R, where R is of the form R = (1/N) 2 > ancl c n is measured data at each of N data points, as will be further described below. The number of ions of each species is substantially proportional to the absolute value of the complex amplitudes A k . The determined mass spectrum thus preferably contains abundance data, as well as the determined mass-to-charge ratios.

A probabilistic measure is preferably reported for the value K. More preferably, confidence intervals are reported for both real and imaginary component of each of the K reported complex-value frequencies. More preferably, confidence intervals are reported for both real and imaginary component of each of the K reported complex-value amplitudes. In some applications, there are physical grounds to consider the phases argC fc ) of harmonics constituting the signal related to the frequencies f k as a smooth (either known or unknown) function of the frequency. The phases of harmonics within a small frequency window appear, therefore, practically constant. This criterion may be used to estimate fidelity of obtained results as shown below.

The discrepancy between a measured signal and a model signal may alternatively be evaluated in the frequency domain, having skipped the reverse Fourier transform of a windowed spectrum into the time domain. Having the spectrum of a K-harmonic model signal represented as a sum ∑ k A k Y n (f k ) > where y n (/ fc ) is the complex-value spectrum of a model harmonic with complex frequency f k taken in the n th data point of the Fourier domain, the L-2 norm of the spectral discrepancy is # F (/i ... f K , A 1 ... A K ) =∑ n g n \c n - ∑ k A k y n (f k ) \ 2 , where the summation extends over the frequency window under consideration. The windowing coefficients g n are preferably equal to the values of the windowing function W(f) taken at the n th Fourier data point. Having the frequencies f k fixed as obtained according to this invention, one calculates two minima of R F with respect to the complex-value amplitudes A k

R F1 = min Rpfa ... f K ,A 1 ... A K ), A k E C and

R F2 = min Rpif ... f K , e i > ... a K e l p ), a k , φ E R

ai..a K ,<P

where R F1 is the unconditional minimum and R F2 is calculated under the restriction that the phases of all harmonics are equal to a value φ ε [0,2π). The fact that the difference R F2 - R F1 doesn't exceed the pre-estimated noise measure is the numerical criterion that the found harmonics have effectively equal phases in agreement with the physical expectation.

The invention preferably comprises processing the data using a computer (i.e. the invention is preferably computer implemented). A further aspect of the invention thus provides a computer program having modules of program code for carrying out the method of the present invention (i.e. when the program is executed on a computer), more specifically for carrying out the data processing steps. The modules of program code of the computer program are thus devised to execute an algorithm that performs the data processing steps of the method. A still further aspect of the invention provides a computer readable medium carrying the computer program. The medium can be read by a computer such that the program can be executed on the computer.

The computer program and the computer readable medium preferably form part of a computer system, also including a computer, which is made operable by the program to perform the method of the invention and which includes at least one computer processor to execute the program code and perform the method, i.e. the data processing thereof. Processed data may be written to a storage system (e.g. computer memory). The computer system preferably comprises an input interface, e.g. to receive the measured data and/or the determined quantity representative of the noise. The computer system preferably comprises an output interface, e.g. to output the results, such as the peak frequencies, mass-to-charge ratios, ion abundances, mass spectrum etc. The computer system typically has a human user interface to enable a user to change or set certain parameters used by the method.

The method preferably comprises a step of outputting the result, e.g. the mass spectral data, mass spectrum etc. Any of the data acquired, processed or generated, at any of the stages or steps of the method, may be outputted if desired. Outputting means to a resource, i.e. tangible medium. The resource preferably includes at least one human readable resource. Outputting may be to a resource such as a hard copy form, such as paper, or soft copy form such as on a video display. Outputting may be to resource such as a computer readable data storage medium. According to a yet another aspect of the present invention there is provided a mass analyser under the control of a controller, wherein the controller comprises the computer system and is configured such that the mass analyser is operable to acquire the measured data and input the measured data to the computer system to perform the steps of the method according to the present invention. The computer system of the controller is programmed with the computer program according to the present invention. The invented methods are designed to be used with sparse spectra, preferably where the number of peaks in the underlying model is much smaller than one half of the complex spectral points within a given window.

The invention enables enhancement of mass spectra by means of accurate and robust signal processing performed on measured MS data, i.e. transient signals, e.g. FTMS signals.

An advantage of the invention lies in providing a mass spectrum of high resolution and resolving power.

Another advantage of the invention lies in an increased stability of a mass spectrum obtained from a measured noisy transient data, i.e. a reduction of spurious peaks, peak splitting and/or other artefacts, compared to the FDM method and other LP methods.

A further advantage of the invention lies in its applicability to short data records.

Thus, the invention may enable a high fidelity mass spectrum to be obtained from a measured noisy transient data which may also be of relatively short duration. This may comprise the determination of all or substantially all statistically significant individual component signals (corresponding to mass- to-charge peaks in the mass spectrum), each of them characterized with a number of parameters, such as frequency, amplitude, decay, and phase, and optionally estimating confidence intervals for one or more of these parameters.

A still further advantage of the invention is that it may be performed with high speed. Hence, the invention may be implemented using one or more high speed signal processing algorithms. Such algorithms may allow real-time processing of data obtained at high acquisition rates from a mass spectrometer, for example that exceed 10 6 bits/sec, which is typical for contemporary FTMS instruments.

The number of points within a frequency window is preferably limited by the sparseness condition noted above, and consideration may also be given to computational complexity, the methods providing particular advantages on spectral windows containing five points or more, and for spectral windows containing 1000 points or less. Advantageously, the improvements provided by the invention are obtainable without requiring changes in, for example, sample preparation, mass analysis hardware, or workflow and may be obtained on archived measured data acquired using mass analysers in the past. The invention is preferably partially implemented on a computer, especially the signal processing steps.

Further details of the means by which the invention provides these, and other, advantages are given in the description below.

In order to further understand the invention, embodiments will now be described in more detail with reference to the accompanying drawings. The embodiments described are examples and for illustration only and are not intended to, and do not, limit the scope of the invention.

List of Figures

Fig. 1 shows a schematic block diagram depicting an example of the method of the present invention.

Fig. 2a shows a schematic block diagram depicting an example of the method of the present invention in further detail . Fig. 2b shows in further detail a step in the method of the present invention, the step being the calculation of the minimum residual.

Fig. 3 shows a schematic representation of part of a process of selecting a frequency window of interest from the Fourier transform of the measured data and transforming it into pseudo-transient.

Figs. 4a and 4b show schematic block diagrams depicting two examples of workflow of algorithms for performing the invention.

Fig. 5a shows a noiseless test signal that comprises synthetic test data of three sine waves plotted on an amplitude vs. frequency bin scale.

Fig. 5b shows the conventional FT power spectrum which would be generated for the three sine waves of Fig. 5a.

Fig. 6a is a plot of the resultant values calculated using the methods of the invention of amplitude vs. frequency on the test signal of Fig. 5a for 1000 different random noise cases each of which has noise σ = 0.001 . Fig. 6b shows the FT power spectrum of the noise-free signal together with error bars indicating the uncertainty which would be produced by the noise.

Fig. 7a and Fig. 8a are similar plots to that of Fig. 6a but with RMS noise deviations such that σ = 0.01 in Fig. 7a and σ = 0.1 in Fig. 8a.

Fig. 7b and Fig. 8b are similar plots to that of Fig. 6b but with RMS noise deviations such that σ = 0.01 in Fig. 7b and σ = 0.1 in Fig. 8b.

Fig. 9a- Fig.9d are plots of the probability distribution of the number of -harmonic signals found using the methods of the invention.

Fig. 10a - Fig.10d are plots of the reduced residual, R^ K V σ 2 , vs. the number of harmonics, K

Fig. 1 1 schematically shows how the methods of the invention effectively find the optimum location in the space of K-harmonic signals S K for each value of K so as to minimise the residual R (K> .

Fig. 12 shows a comparison of the methods of the invention (plots b, d, f, h) with the FDM approach (plots a, c, e, g).

Detailed description of the invention Fig. 1 shows a schematic block diagram depicting an example of the method of the present invention. In Fig. 1 , a method is represented for determining harmonic component signals and their number, K, representative of different species of ions that are or were present within a mass analyser and within a range of mass-to-charge ratios, each species having a different mass-to-charge ratio,. A quantity representative of the noise is determined, 10, which is representative of the noise in measured data comprising signal and noise which has been measured over time. An initial value of K is chosen, 20. A measure of difference between the measured data and model data comprising data sets of K-harmonic component signals is calculated 30. The measure of difference R^\s compared to a noise range based upon the quantity representative of noise, 40, and if Redoes not lie within the noise range, a new value of K is chosen, 50, and the measure of difference between the measured data and model data comprising data sets of K- harmonic component signals is again calculated, 30. When and if does lie within the noise range, K and the harmonic component signals have been determined, and the method terminates 100 in respect of finding K. Subsequent steps can then be performed as herein described, such as finding frequencies and amplitudes of the K harmonic signals and determining a mass spectrum. Where the method is performed using calculating apparatus, K and information about the harmonic component signals are output immediately prior to termination.

The measured data may have been measured immediately preceding the application of the method, or it may have been measured at any preceding time. The measured data may have been measured at the location at which the method is performed, or it may have been measured at some distant location. Consequently the method may be applied to data measured before the present invention had been made and it may be applied to data taken using a mass analyser at any remote location. Accordingly the method of the present invention does not necessarily include the step of measuring the measured data since the measured data may have been acquired earlier and/or elsewhere.

It will be appreciated that step 10, determining a quantity representative of the noise, may be performed before or after step 20 (choosing an initial value of K), and before or after step 30 (calculating R^ ).

Fig. 2a is a schematic block diagram depicting an example of the method of the present invention in further detail. Similar steps to those depicted in Fig. 1 have the same identifiers.

The measured data comprises N data points c n , where c n further comprises noise components δ η . δ η represents additive noise with spectral noise power v(/) = v 0 over the frequency window corresponding to the range of mass-to-charge ratios, the RMS deviations of which are (\e n \ 2 ) = σ η = yJv Q N/T . In this example the quantity representative of the noise is the noise power σ 2 . The spectral noise power v(/) = v 0 is determined, 10 and the noise power σ 2 is determined from it; the additive noise components δ η , are unknown. Preferably in the methods of the present invention the spectral noise power is substantially constant, and in the present embodiment is assumed to be constant over the frequency window corresponding to the range of mass-to-charge ratios.

The quantity representative of the noise may be determined by one or more of: measuring the quantity representative of the noise from the measured data; measuring the quantity representative of the noise from a previous set of measured data derived from the mass analyser; measuring characteristics of preamplifiers used in the data measuring apparatus of the mass analyser; setting a quantity representative of the noise on the basis of prior knowledge of the mass analyser.

One preferred method of measuring the noise power from a previous set of measured data derived from the mass analyser comprises calculating the L2 norm of a calibration transient that is detected and digitized with no ions directed into the mass analyser.

A preferred method of measuring the quantity representative of the noise from the measured data itself, which may be performed on the frequency spectrum (i.e. after an FFT has been performed), comprises the steps of:

(a) calculating an average intensity of all the measured data;

(b) calculating the standard deviation of the intensity of all the measured data;

(c) calculating a first noise threshold on the basis of the average (avg) and standard deviation (sigma) calculated, preferably as avg + 0.3.sigma;

(d) selecting a first set of points from the measured data on the basis that they have lower intensities than the first noise threshold;

(e) calculating the average intensity of the first set of points (avgl );

(f) calculating the standard deviation of the intensity of the first set of points (sigmal );

(g) calculating a second noise threshold on the basis of the average (avgl ) and standard deviation (sigmal ) calculated, preferably as avgl + 0.3.sigma1 ;

(h) selecting a second set of peaks from the measured data on the basis that they have lower intensities than the second noise threshold. The second set of peaks comprise noise and having been thus separated from peaks which are considered to be signal, the quantity representative of noise may be calculated from the second set of peaks.

In this example, a noise range is determined, 1 1 , based upon the quantity representative of the noise.

Steps 10 and 1 1 , determining a quantity representative of the noise, and determining a noise range, may be performed at any stage prior to 40, the comparison between the measure of difference and the quantity representative of the noise.

The model data comprising data sets of noiseless -harmonic component signals forms a total model data set c *

K

c n * = ^ A k exp(2?n f k t n ) (1)

k=l

where t n = N _1 n T n = 0 ... N - 1 , such that c n = c * + δ η .

The number of harmonics K, complex value amplitudes A k and complex-value frequencies f k are to be determined, and may be obtained by methods of the present invention as will be further described. The sought amplitudes and frequencies are complex and include, therefore, phase and decay information correspondingly. The measured data is preferably recorded at substantially constant time periods, T/N.

Fig. 2b describes in more detail the calculation of the minimum residual R (K that is shown as position 30 in Fig. 1 . A value for K is supplied and the initial values for the autocorrelation coefficients vector a are initialized with a normalized complex value K+1 dimensional vector 31 . Iterations 32 in accordance with formulas

are performed a number of times until the difference of the autocorrelation coefficients on two subsequent iterations is smaller than a certain value of ε 1 33. The value of residual and its gradient V are then calculated 34, and the residual values on two subsequent iterations are compared 35. The quasi- Newton iterations 36 are performed in accordance with the formulas until the minimum of is approached with a certain accuracy ε 2 . The value of is assumed equal to the residual norm on the last iteration 37.

It may be convenient to perform the methods of the present invention using measured data comprising data relating to a limited range of mass-to- charge ratios in order to reduce computational complexity, and in order to ensure that the spectral noise power is substantially constant over the range of mass-to-charge ratios. Therefore optionally, the range of mass-to-charge ratios may be limited and selected from a larger data set. Preferably the range of mass-to-charge ratios is limited and is selected from a larger data set by a method comprising: obtaining a frequency spectrum of the larger measured data set to form a transformed data set, by for example, taking a Fourier transform of the larger measured data set,; selecting a range of frequencies in the frequency domain spectrum of the transformed data set to form a transformed data subset, and; transforming the transformed data subset back into the time domain to form the measured data. A schematic representation of an example of part of this process is shown in Fig. 3. Step (I) consists of selecting a frequency window of interest from the Fourier transform of the larger measured data spectrum (a), and shifting the frequency window of interest by a negative offset, so that it is centered around zero within Nyquist frequency band to produce spectrum (b). Step (II) involves application of a windowing function W(f) to spectrum (b) to obtain spectrum (c). Step (III) involves creating an inverse Fourier transform image of spectrum (c) and possible resampling to obtain the windowed measured data (d). This process is depicted at step 12 in Fig. 2a. Where the methods of the present invention are performed using measured data comprising a limited range of mass-to- charge ratios, preferably a relatively narrow spectral window F s ε €, (s = s Q ... S q + N - 1) is taken from a fast Fourier transformation (FFT) of FTMS measured data F D F s that contains N Fourier transform bins. The reversed Fourier image in the time domain is: s 0 +N-l

° n = N J S EXP [ 2πί V ~ s ° ~ 2 )

s=s 0 T\ ' ΐη = Ύ ^

n = 0 ... N— 1

The frequency content of which is limited to the measured frequencies / ε [s Q /T ... (s 0 + N)/T ], which are shifted by a constant negative offset Af = -(s„ + N/2)/T to fit the Nyquist frequency band f ' = f + Af e [-N/2T ... N/2T].

The following detailed example of the methods of the present invention will utilize this optional 'windowed' data set, i.e. the measured data comprises a range of mass-to-charge ratios which has been limited and selected from a larger data set. It will be appreciated that whilst this option has been chosen in order to give an example in which a limited data set has been chosen from a larger data set, the principles that follow apply equally if the whole data set had been utilized, as long as the spectral power of the noise remains substantially constant over the data set used.

Accordingly, the windowed measured data c n is assumed to be the K- harmonic data set c * corrupted by white Gaussian noise δ η c n = c^ + δ η , where δ η E C A k E C il k = il k ' + iil k '' E C (3)

with complex amplitudes A k and frequencies n fe . The real parts of the frequencies are restricted within the band -πΝ/Τ < Q k ' ≤ πΝ/Τ thus eliminating the Nyquist uncertainty. (The space of -harmonic signals is further denoted as S K .)

Optionally, a step 14 in Fig. 2, may be performed to determine whether the measured data, which may be windowed measured data, contains any signal peaks. If it does not contain peaks, then there is no need to determine the harmonic component signals and their number K. If it contains peaks, then the method can be performed to find the harmonic component signals and their number K. Determining whether peaks are contained in a spectrum is a known technique and such techniques may be employed here, e.g. determining whether peaks are contained by finding peaks which exceed a threshold level of intensity, or by other "peak picking" routines. Whether peaks are contained is preferably determined by calculating a norm: \\c n \\ = N ~ V -2 ∑|cj 2 , and, if the norm is less than 1 , taking this to indicate that there are no peaks within the measured data which are above the noise, in which case the procedure terminates, 100. The method may then move to the next window of measured data and begin the procedure again.

A measure of difference between the measured data and model data comprising data sets of -harmonic component signals may be represented as:

W-1 W-1

R^ = m \\6 \ = m - \6 2 = m - \c n - c^\ 2 , {< } £ §* (4)

71=0 71=0

where K is the number of K-harmonic signals in the model data set, and K is the measure of how many different species of ions are or were present within a mass analyser when the measured data was acquired and within a range of mass-to-charge ratios, each species having a different mass- to-charge ratio. Other forms of difference may be used but preferably the form of equation (4) is used and will be used in this example, being a minimised normalized sum of residuals between the measured data and the model data at a plurality of data points. The measure of difference R^\s preferably minimised, i.e. is the minimum value, for each given value of K as described in more detail below. In other words, for each K, is determined as the minimum norm of the difference between the signal c n and any possible K-harmonic signal c * .

Accurate estimation of the number of mass peaks plays a vital role in the performance of this or any other method operating under noisy conditions typically found in FTMS data. Since the number of harmonics cannot be determined exactly for noisy measured data this method evaluates the statistically most probable value of K. On increasing K, R^ tends to zero, as more and more harmonic signals are added to the model data set and the model data set may more closely match the measured data. Indeed when K=N the model data set can equal the measured data - including the noise components within the measured data, i.e. such that the difference R^=0 when K = N. It may be shown that when K=N/2 a combination of K-harmonic signals may also be made to equal the measured data, as in the prior art FDM. However unlike prior art methods, in the present invention K is restricted so that the -harmonic model data set does not model significantly more than the signal component of the measured data, and in this way it distinguishes signal from noise. Methods of the invention use an initial value of K to calculate a value for and this value is compared to a noise range based upon the determined quantity representative of the noise. If does not lie within the noise range, the value of K is changed and recalculated. This process is repeated as many times as necessary until does lie within the noise range, thereby finding the most probable value of K and the harmonic component signals. This process ensures that the K-harmonic data set thus formed will substantially only model the signal component of the measured data.

Hence an initial value for K is chosen, 20 in Fig. 2a, and the measure of difference R^ is calculated, 30. The value R^ is compared to the noise range which is based upon the determined quantity representative of the noise, preferably the noise power, 40. If R^ does not lie within the noise range, the value of K is changed, 50, and R^ recalculated, 30. This process is repeated as many times as necessary until R^ does lie within the noise range. K and the harmonic component signals are thereby determined when that condition is met.

If the information within the measured data set is previously unprocessed, it is computationally efficient to start the process with an initial value for K of zero, and increase K from that value, as the data from mass analysers when operating at high resolving power is sparse. Alternatively, if the measured data is first processed, an initial value for K may be determined from a number of peaks in the frequency domain spectrum of the measured data. If the measured data is first processed by, for example, taking a Fourier transform of the measured data, then an initial value for K may be determined from a number of peaks in the frequency domain spectrum of the transformed data thus found. It will be appreciated that K may, alternatively, be decreased from an initial value (where the initial value is greater than zero). K may be decreased from an initial value which is less than N/4 as K will usually be very much smaller than N in the method of the present invention, because of the sparse nature of the data from mass analysers operating at high resolving powers, and, significantly, because the method of the invention does not seek to fit harmonics to noise, and then subsequently distinguish noise results from valid ion signals as is a feature of some prior art methods. Rather the method seeks to fit just enough -harmonic signals to the data so as to avoid the noise and this approach thereby preferably finds just enough -harmonics as there are ion species within the range of mass-to-charge ratios in the sample of measured data.

Accordingly the value of K is changed and is recalculated, preferably until falls within the noise range; and/or until is just less than, or is equal to, the quantity representative of the noise; and/or until becomes the closest value to the quantity representative of the noise. In practice this can be achieved simply by determining K as the minimum value for which the measure of difference fl^equals or preferably becomes less than the quantity representative of the noise, which typically means just less than the quantity representative of the noise.

Direct numerical evaluation of equation (4) with respect to complex frequencies and amplitudes A k , Q k is an essentially nonlinear problem which has no robust solution, given non-convexity of the norm and large number of local minima resulted from the oscillating nature of the fitting function equation (3). However, methods of the present invention utilize the property that the signal component of the measured data (i.e. not including the noise) possesses autocorrelative properties, which means that each successive value of intensity in the signal component of a measured data set (such as a transient) can formally be represented as a linear combination of the signal component of the measured data at previous time-points. Accordingly the K- harmonic signal may be written:

cn — a O c n-K " r l C n-K+l ■■■ a K-l c n-l

where a Q , . . , <½_ ! are autocorrelation coefficients.

It will be appreciated that the autocorrelative properties also mean that a preceding value of intensity in a measured data set can also formally be represented as a linear combination of the measured data at succeeding time- points, and a similar equation could be written to express that without departing from the present invention. In this example, equation (5) will be used.

Preferably the model data set comprises an harmonic signal which may be described by a sum of K complex exponential terms each multiplied by complex amplitudes, such as is set out in equations (1 ) and (3), and the K harmonic signals are derived assuming the harmonic signal possesses autocorrelative properties as described by equation (5).

As mentioned, the method of the invention effectively involves a form of estimating probabilities for different numbers K of individual harmonics with non-zero amplitudes in the model data set and finds the most probable number. Both real and imaginary parts of δ η are taken to be independent complex values, normally distributed with mean-square deviations σ/ λ . Therefore R = \\c n - c * || = ||5J| is statistically distributed as χ 2 with 2N degrees of freedom, having the probability density function

P (R) = Nl ^ R ΘΧΡ V^) ' R≥ 0 (6) and a corresponding cumulative probability can be expressed through the incomplete Euler gamma function as

The value P(P w )gives the probability for the number of harmonics in the noise-free model data {c * } to assume a value less than or equal to K. The probability for the number of harmonics to take value K exactly is p k = P(R W ) - P(R^- 1) ) . The most probable value of K that provides the highest fidelity approximation of the actual number of harmonics in the signal, corresponds to the maximum of the distribution (6) R * = (1 - 1/Ν)σ 2 « σ 2 lying between R^ and P (ii_1) . As already described, a practical way to estimate the most probable K consists in repeatedly increasing the values of K starting from an initial value (preferably zero) until the residual norm R^ drops below R * « σ 2 . In an alternative embodiment, involving the try value of K repeatedly decreasing, the method is stopped ( -1 is found and therefore K is found) when R <K_i> just exceeds the quantity representative of the noise σ 2 . Considering both cases (increasing or decreasing K), the stop condition can be formulated as the double inequality: ≤ σ 2 < β (ΛΓ_1) .

Calculation of is performed as the numerical minimization of the residual norm with respect to 2K complex-value parameters of the sought noise-free model data {c * } - the frequencies n fe and amplitudes A k . Since any K + l subsets r p = (c * , ... . Cp +K ) of K + 1 subsequent elements are not linearly independent and the matrix with rows r 0 ... IV is degenerate, there exists a non-zero complex-value vector a = (a 0 ... a K ), which is referred to as the set of autocorrelation coefficients for the signal c * , such that

a 0 c * + ί½(: * +1 +. . +a K Cn +K = 0 Vn £ 0 ... N - K - 1 (8) i.e. it is possible to associate any -harmonic signal with a set of +1 complex autocorrelation coefficients a Q , . . , a K with the use of N-K linear conditions. The coefficients a k are, for the purpose of computational feasibility, normalized as ∑|a fe | 2 = 1. Preferably, equation (8) is a strict condition imposed on the initially unknown noiseless model data set c * as proposed in Osborne, M.R. and Smyth, G.K. (A modified Prony algorithm for fitting functions defined by difference equations. SIAM Journal of Scientific and Statistical Computing, 12, 362-382, (1991 )). The formulae (8) are then treated as extra conditions to be satisfied in the minimization procedure for residual norm of equation (4). Methods of the present invention preferably find a set of autocorrelation coefficients α 0 ... α κ that define the K-harmonic signal being nearest to c n in the sense of the residual norm of equation (4), under N - K conditions imposed on c * . In matrix form these conditions read:

where X is (K + l)-diagonal rectangular (N - K) x N Toeplitz matrix. The Lagrange method is preferably used to express the minimal residual norm for the difference between the windowed measured data c n and any K- harmonic signal which satisfies the conditions (8) with given autocorrelation coefficients. Therefore, the norm in matrix notation becomes

R(o) = N '1 5 T _1 δ = N '1 α τ H(o) a , (10) where H(o) = C T B(a) _1 C, B(a) = X(a)∑ N(a) T , and C is a shifted measured data matrix

Although minimization of R(a) with respect to a is a nonlinear problem, it is robust and practically realizable for arbitrary initial values of a.

The problem of finding a minimal residual norm with respect to any possible -harmonic signal is thus reduced to minimization of (10) with respect to all possible normalized sets of a k , that is = mm R(a). The matrix H(a) is parametrically dependent on a k , which makes the said minimization problem nonlinear; nevertheless the function R(a) is smooth and generally has only one local minimum which represents the global minimum (its degeneracy with respect to the common phase of a k is not critical). Any known iterative method of numerical minimization to find and the minimizing set of a k , e.g. the method of gradient decent, or the method of conjugated gradients, gives a robust algorithm which is practically independent on the choice of initial values.

Preferably, therefore, a method of harmonic inversion is used to find the set of autocorrelation coefficients. By this process, the most probable value for K is found, where the most probably value is taken to be when R (Jf) becomes substantially equal to the quantity representative of the noise.

Having determined the harmonic component signals and their number

K, and in doing so, determined the autocorrelation coefficients (the complex- value vector a = (a 0 ... <½)), the frequencies of the K-harmonic signals are determined by finding the roots of the K-order polynomial equation

α 0 + α λ + α 2 λ 2 ... + α κ λ κ = 0. (13)

The set of autocorrelation coefficients unambiguously defines the set of frequencies Q k in the windowed measured data and corresponding real-value frequencies f k in the larger data set with formulas

s 0 + N/2 Im Ω

(14)

T 2π The fact that the signal is -harmonic and cannot be reduced to a (K - 1) harmonics with autocorrelation coefficients a 0 and a K non-zero and all frequencies Q K unique within the Nyquist band, ensures that all roots A fc are non-zero and unique.

If the harmonic signals are non-decaying, a particular case occurs. By setting additional constraints a K _ k / ¾ = 1, the following parameterization b t + ib K→ b t - ib K→

^2 ^2 ' a K/2 — u K/2 (15) where index t runs in the range 0 < t < K/2 and (b Q , ... , b K ) is real- value vector that obeys the normalization condition \b\ 2 =∑ k=0 b = 1 allows (10) to be rearticulated as

RW b) = N- 1 b T U(b) b , U(b) = Re(c , [}((a(i)))∑i¾ T ] " V} (16) where elements of the QV - K) x (K + 1) matrix C are

cp+t + c p+K-t p + t c p+K-t

C = ^2 ' Cpp,,KK --tt — i - ^2 ' c "P.K/2 — C p+K/2 (17) with 0 < t < K/2 (the last formula is only for even K).

The amplitudes are found by minimization of the original norm of the residual expressed as /? = (1/N)∑ n \c n -∑ k A k (A k ) n \ 2 . Having determined K and A fc , the noise-free signal can be reconstructed as

where A * is the vector of amplitudes. A * is determined by minimizing the norm of residual (4):

R = \\r - c II = FWA - G - G T A + Ik. II (19) where

This set of amplitudes that delivers the minimum to (19) appears as a solution to the system of linear equations dR/dA = MA - G = 0:

A * = M ~1 G, R(A * ) = RW = \\c n \\ - G T M _1 G (21) Fixating the phase is achieved by introducing an additional constraint to the amplitudes A = B * e ilf) , where B ε Re, and ψ is the common phase.

The method also allows for statistical assessment of the determined values for the amplitudes and frequencies, which provides qualitatively better data for further analysis of the mass spectrum. Reporting fidelity criteria for detected mass-to-charge peaks (such as confidence intervals for mass-to- charge ratios and abundances) significantly increases both specificity and selectivity of the informatics approaches that rely on mass spectra as an input.

In a similar way to the evaluation of the number of harmonics in windowed measured data, the residual of the norm is treated as a random variable which parametrically depends on deviations. Any deviation AA k of the amplitude from its most probable values A * k necessarily increases the residual norm by the value AR~r k \AA k \ 2 > 0 ; and any deviation Af k of the frequency from its most probable values f k necessarily increases the residual norm by the va\ue AR~q k \Af k \ 2 > 0.

The conditional cumulative probability function (under the condition that the number of harmonics is exactly K) is

P -τ- , N » 1 (22)

and gives the probability that R exceeds R^ by the value greater than AR . Correspondingly, the probability that AR > 1.96 a 2 / N appears less than 0.05. The confidence intervals in which the harmonic's amplitude or frequency are found with the 95% fidelity are estimated as correspondingly. The coefficients r k and q k are found either analytically or numerically.

In view of the above description, embodiments of the invention may be performed according to the schematic block diagrams depicted in Fig. 4, which show two examples of workflow of algorithms for performing the invention. In both examples (Fig. 4a and Fig. 4b) a FFT is taken of transient measured data, 2. A first window is selected 4a, and s 0 : = 0, the window being selected from the first N points of the Fourier transformed data.

Windowed transient measured data

c n = ^∑ ^ _1 s exp ^2πί (s - s 0 - ^) ] is then first compiled from the larger measured data set, 6. The norm \\c n \\ = N ~ V -2 ∑|cj 2 is calculated 14a, and a decision is made 14b: if the norm is greater than or equal to 1 , it is taken that peaks are present in the windowed measured data and the procedure continues to 20; if not, the procedure passes to step 85 which will be described below.

At step 20, a first value of K is selected which in the first iteration is, in this example, K ■= 1. The vector of autocorrelation coefficients a k is then calculated, 30, the values of a k being found which minimize the difference between the measured data and the model data set for the particular value of K, to give the measure of difference = \\c n - c * || = min(N _1 α τ H(a) a) . The measure of difference is then compared to the determined noise range, 40, and if the measure of difference lies within the noise range, the harmonic component signals and their number K, the measure of how many peaks are present in the windowed measured data, has been found, and the value of K is stored for future output, the procedure passing to step 60. If does not lie within the noise range, then a new value of K is selected, 50, in this case K ■= K + 1, and the new value of K is used in 30 to calculate a new value for R^ and so on until the measure of difference R^ does lie within the noise range and K has been found.

At 60, peak frequencies are found by solving the * h -order polynomial α 0 + α λ + α 2 λ 2 ... + α κ λ κ = 0, giving frequencies in the larger measured data set f k = T '1 ( s o + _ -N lnA f c). The frequencies are stored for future output and the procedure passes to 70, whereupon the peak amplitudes A k are found to minimize the norm of the residual: R^ = \\c n - c^\\ = min(c - / =lffA/ expi2nf/ tn .

The amplitudes thus found are again stored for future output and the procedure passes to 80 in Fig. 4a. An alternative calculation is, at this point, depicted in Fig. 4b, the procedure instead passing to 72, where the decision is made if the phases are correlated or not. If not, the residual is recalculated with phases kept constant (step74): two minima of R F are calculated with respect to the complex-value amplitudes A k :

R F1 = min Rpfa ... f K , A 1 ... A K ), A k E C and

R F2 = min Rpif ... f K , e i > ... a K e l p ), a k , φ E R

ai..a K ,<P

where R F1 is the unconditional minimum and R F2 is calculated under the restriction that the phases of all harmonics are equal to a value φ ε [0,2π). At 76, the decision is made if the change in the residual is above the noise level: the difference R F2 - R F1 is compared with the pre-estimated noise measure. If the change in the residual is above the noise measure, the procedure passes to the step 50 with K being incremented by one. If the change in the residual does not exceed the noise measure, the found harmonics have effectively equal phases in agreement with the physical expectation and the procedure passes to 80, now in common with Fig. 4a, finding the confidence intervals for the frequencies and amplitudes just obtained at 60 and 70. The confidence intervals are stored for future output, and the procedure passes to 85, where a decision is taken as to whether or not the windowed measured data just analysed, or partly analysed if the step is arrived at from 14b, was the last windowed measured data set from the larger measured data set. If not the procedure passes to 4b, at which the next windowed measured data is chosen, s 0 : = s k and the procedure then passes to 6 once again.

Once all windowed measured data sets have been processed in the above way, the procedure passes to 90 whereupon the previously stored data comprising K, the list of frequencies, amplitudes and their confidence intervals is output, and the procedure terminates, 100. It will be appreciated that the output may be of various formats. For example, the frequencies are typically translated into mass-to-charge ratios and the amplitudes into ion abundances for output. The preferred output comprises a measure of the number of different species of ions, mass-to-charge ratios of ions together with their abundances and terms indicating confidences in those values, e.g. as a mass spectrum.

To further illustrate methods of the invention, synthetic test data of three sine waves together with added noise is analysed, and the results illustrated in Figs. 5, 6, 7 and 8, at a succession of increasing noise powers, σ 2 , to enable comparison of the methods as the signal to noise alters. For each noise power, 1000 different random noise signals of the given noise power are used and in each of the 1000 cases the methods are applied to produce determined values of K, and the frequencies and amplitudes for each found K. This approach shows how the method performs for different random noise contributions at each signal to noise ratio.

Fig. 5a shows the noiseless test signal plotted on an amplitude vs. frequency bin scale, which consists of three non-decaying harmonics separated by 0.5 FT bins each with amplitudes 1 . Fig. 5b shows the conventional FT power spectrum which would be generated for the three sine waves which have differences in frequency below the Nyquist limit. The components are clearly not resolved in the FT spectrum.

Fig. 6a is a plot of the resultant values calculated using the methods of the invention of amplitude vs. frequency for the 1000 different random noise cases each of which has σ = 0.001 (the lowest noise case). It can be seen that the method has distinguished three peaks, each having amplitudes close to 1 .0, located at frequencies close to 0.5, 1 .0 and 1 .5, and though the figure cannot show this, for each of the 1000 cases three peaks were distinguished. The spread in the points plotted indicates the range of variation of the calculated amplitudes and frequencies due to the presence of the noise, slightly different values for amplitude and frequency being determined by the methods for different random noise cases, though all noise distributions had the same RMS noise deviations such that σ = 0.001 . Fig. 6b again shows the FT power spectrum of the noise-free signal together with error bars indicating the uncertainty which would be produced by the noise (hardly discernible).

Fig. 7a and Fig. 8a are similar plots to that of Fig. 6a, and Fig. 7b and Fig. 8b are similar plots to that of Fig. 6b, but now the RMS noise deviations are such that σ = 0.01 in Fig. 7 and σ = 0.1 in Fig. 8. As the noise increases relative to the signal, the method produces a wider range of amplitudes and frequencies as solutions. For σ = 0.01 typically three peaks are still found by the method, but at σ = 0.1 from some of the 1000 runs only two peaks are found. The range of amplitudes increases on increasing the noise, and at σ = 0.1 is tending to be larger than 1 .0. However the error bars on Fig. 8b indicates that the FT power spectrum would be extremely noisy under these conditions, and, of course, would still only have detected one peak.

Fig. 9a- Fig.9d provides plots of the probability distribution of the number of -harmonic signals found using the methods of the invention. For various different noise levels σ (ranging from 0.001 to 1 as indicated), but only one particular noise distribution out of the 1000 used above in relation to Figs. 5-8, the value p(K), the probability of the number of harmonics, is plotted against K, the number of harmonics. As described earlier, p(K) = p(R (Jf) ) - ρ(ρ (ΛΓ_1) ) . These graphs illustrate that whilst there are non-zero probabilities for an incorrect value of K to be found at all noise levels, the invented method, finding the most probable value for K, correctly finds K for σ = 0.001 and σ = 0.01 . As the noise increases there is an increasing probability that a lower value of K will be found.

Fig. 10a - Fig.10d provides plots of the reduced residual vs. the number of harmonics. Here, the reduced residual is R^ K V σ 2 , hence when the reduced residual equals 1 the residual R^= σ 2 . Fig. 1 0 shows R^ K V σ 2 vs. K for various values of σ, and it can be seen that for increasing noise, the difference between the residual and the noise σ is reduced over the range of K, indicating that it is more difficult to distinguish the difference between and the determined noise. Fig. 10 also shows graphically how the criterion for finding K is used. In a preferred method as already described, K is increased from 0 and R^ is calculated repeatedly for different K until R^ lies within them noise range. In a preferred method this is when R^ first drops below the determined noise level. For σ = 0.001 and σ = 0.01 , K is correctly found as P^first drops below the determined noise level at K = 3.

Fig. 1 1 schematically illustrates how the invented methods, by minimizing the norm of equation (4), effectively find the optimum location in the space of K-harmonic signals S K for each value of K so as to minimise the residual R '. It can be seen how the residual R ' is closest to the noise level (dotted circle) for the space of K-harmonic signals S K where K = 3.

A comparison of the methods of the invention with the FDM is shown in Fig. 12 under the additional constraint that the model signals have zero decay. A test signal again consisting of three sine waves having frequencies that differ by one half of a frequency bin was used, with added noise at four different signal-to-noise ratios (SNR). The test signals have frequencies at 0.5, 1 .0 and 1 .5 on the frequency bin scale (x), and each have amplitude 1 .0 on the intensity scale (y). Once again, for each of the signal-to-noise ratios, 1000 different random noise data sets were added to the test signal and the methods of the invention, and the FDM, were used to determine K, f and A in each case. Fig. 12a, 12c, 12e, 12g show the results for the FDM, whilst Fig. 12b, 12d, 12f and 12h show the results for the methods of the present invention.

Fig. 12a and 12b compare the different methods for SNR = 100000. It can be seen from Fig. 12b that the invented method finds three peaks (i.e. it determines that K=3), and that those peaks have, to a high degree of precision and accuracy, amplitudes of 1 .0 and are at frequency bins 0.5, 1 .0 and 1 .5. No extraneous peaks appear to have been detected. In contrast, even at this very high SNR, the results in Fig. 12a show the FDM attributes a large number of extraneous peaks across the full frequency range plotted (- 5.0 to +5.0), albeit with low amplitudes. At this SNR a further treatment of the FDM results is required to separate peaks which are due to signal from the spurious results of low amplitude. The FDM also finds three peaks, with amplitudes 1 .0 and at frequency bin locations of 0.5, 1 .0 and 1 .5, however the spread in values of amplitude and frequency is a little larger, i.e. the precision is lower, than that produced by the invented methods.

At SNR = 1000, a marked difference between the methods is very apparent. The FDM results, in Fig. 12c, again indicate a large number of extraneous peaks across the full frequency range, of low amplitude. Now, however, the uncertainty in the attribution of the three signal peaks has increased very significantly. For some of the 1000 different noise cases (all at SNR = 1000) the FDM has found three peaks but with amplitudes ranging from near zero to -2.5. In some cases the FDM has only found two peaks that might be attributed to signal and in some cases only one. The precision is very poor compared to the results of the invented methods shown in Fig. 12d. The invented methods find K=3 at all times and that each signal peak has amplitude 1 and appears at frequency bins 0.5, 1 .0 and 1 .5 with vastly greater precision than is found by the FDM.

As the SNR reduces further to SNR = 100, Fig. 12e shows that the FDM predicts increasing amplitudes for the extraneous peaks spread across the frequency spectrum, and that there are, from visual inspection, just two peaks that might be attributed to signal, those peaks having amplitudes ranging from ~1 to ~2 and being at frequencies 0.5 and 1 .5, i.e. the central signal peak is not predicted in almost all the 1000 runs. The results of the invented methods, in Fig. 12f, show three peaks are again found, having amplitudes ranging from -0.5 to -1 .5 and being located close to the correct frequency bin locations. The precision has worsened. On rare occasions an extraneous peak of very low amplitude appears close to frequency bin -2. Visually, it would appear that the results in Fig. 12f are more helpful to the mass spectroscopist than those from the FDM even at a SNR which is ten times better.

At the very poor SNR of 10, the FDM predicts, in Fig. 12g, a wide range of spurious peaks right across the frequency range which have a wide range of amplitudes, some greatly exceeding 1 . Two signal peaks might be identified in some cases, but the amplitudes range from near zero to -8, and the frequency locations range from 0 to -2. The invented methods produce results plotted in Fig. 12h which suggest only two peaks at frequency bins -0.5 and -1 .5, of amplitudes -1 .2 to -2.2.

It can be seen that the FDM produces many extraneous peaks at all SNR. To use the FDM in practical situations these must be distinguished from signal peaks, but it can be seen from Fig. 12 that the amplitudes of the spurious peaks vary significantly with the SNR and the range of amplitudes also varies, making the process of distinguishing more difficult. The results plotted in Fig. 12 show how the invented methods, by finding the most probable K taking into account a determined noise, do not thereby suffer the problem of spurious peaks which must in some way be later distinguished from signal peaks. Methods of the present invention may also be applied to data from other types of spectroscopic analysis such as, for example, nuclear magnetic resonance (NMR), and infrared spectroscopy. In NMR the relaxation of the spins of atomic nuclei after excitation with electromagnetic pulses is recorded and the relaxation signals and their frequencies depend upon the surrounding of the nuclei, including the molecular structure. The observed spectroscopic frequencies (also called "lines" or "peaks") are for example influenced by the coupling between adjacent nuclei, leading to frequency shifts and/or line splitting. Observed Nuclear spins are typically those of Hydrogen (1 H), 13C and the less common 15N, 31 P, 19F. The details of the method and the common methods of data evaluation are set out in various text books, including D. H. Williams and I. Fleming: "Spectroscopic methods in organic chemistry", 4th ed., London 1989 (which additionally contains a chapters on UV, visible and infrared spectroscopy).

Whilst, as already described, in mass spectrometry such as FT-MS the detected frequencies are usually representative of the mass-to-charge of ions, the ions following periodic motion within the mass analyser, and frequency differences correspond to mass-to-charge differences, in NMR the frequencies are representative of spin relaxation frequencies (i.e. the difference between the various, possibly split, excited state and ground state nuclear spin energy levels) and the differences are indicative of nuclear spin coupling energies and various other effects of the surroundings of a nucleus that have influence on the energy levels.

The frequency range of NMR signals, following heterodyning, is relatively small compared to the range encountered in mass spectrometry, and the methods of the present invention are well suited for decomposing spectral harmonic signals from such data, to directly provide chemical shifts and line broadening information.

As with Fourier Transform and FDM, methods of the present invention may also be extended into higher dimensions, such as, for example, two dimensional NMR. While in the most simplistic way the chemical shifts and broadenings (i.e. frequencies and line-widths) may be determined on a per- spectrum basis and the data simply "stacked" in the additional dimension, preferably the data is directly handled in multiple dimensions, as it is for example in synthetic aperture radar (SAR) applications (Carrara et al. Spotlight Synthetic Aperture Radar, Boston 1995), or in conventional 2-D FT- NMR applications (see e.g. Peter Giintert, Volker Dotsch, Gerhard Wider and Kurt Wuthrich: "Processing of multi dimensional NMR data with the new software PROSA"; Journal of Biomolecular NMR, 2 (1992) 619-629). Examples of the extension to additional dimensions using the FDM are provided by Vladimir A. Mandelshtam, Howard S. Taylor, and A. J. Shaka: "Application of the Filter Diagonalization Method to One- and Two- Dimensional NMR Spectra"; Journal of Magnetic Resonance 133, 304-312 (1998), article number MN981476. Such direct multidimensional processing has, inter alia, the advantage of better localization of the frequencies in the multiple dimensions and correct abstraction from or interpolation between the separate spectra. A further advantage is improved signal-to-noise ratio.

Pre-processing using conventional fast Fourier transform methods may be used to guide the sectioning of the two-dimensional data for optimum processing by the method of the invention, e.g. aid the selection of rectangles in frequency and time to be processed together. It may also be used to control subsequent acquisitions within the same experiment, e.g. data dependent ion selection and/or fragmentation in mass spectrometry or e.g. re-acquisitions with adjusted settings (pulse sequences) in 2D-NMR spectrometry.

Both the basic method of the invention and it's extension to multiple dimensions may - in addition to the improved determination of frequencies (i.e. masses, IR spectral lines, chemical shifts, radar objects etc.) and intensities - be used as a means for optimal data compression in recorded data by retaining only the K identified frequency / intensity datasets, preferably together with aggregate information on the noise/background, such as 'sigma' used during the determination of K.

Accordingly in another aspect the present invention provides a method of spectrometry comprising:

providing measured data comprising a combination of periodic signals and noise measured over time using a spectrometer;

determining a quantity representative of the noise in the measured data, and determining a model data set of -harmonic component signals from the measured data;

wherein the harmonic component signals and their number K are determined iteratively on the basis of:

using an initial value of K to calculate a minimised non-negative measure of difference between the measured data and model data comprising data sets of K-harmonic component signals, wherein is calculated under the condition that the model data c * satisfies the equation a 0 c * + ^^^+. , + κ^ = 0 at measured data points with a set of complex values a Q . . a K , and

if does not lie within a noise range based upon the quantity representative of noise, changing the value of K and recalculating R (K) as many times as necessary until does lie within the noise range;

and deriving spectroscopic information from the model data set, the spectroscopic information comprising one or more of: a measure of the number of harmonic component signals; a measure of the frequencies of the harmonic component signals; a measure of the signal intensity of the harmonic component signals.

The method of spectrometry may comprise a method of mass spectrometry, a method of NMR spectroscopy, or a method of infrared spectroscopy. The spectroscopic information from the model data set in NMR spectroscopy methods may further comprise resonance frequencies, chemical shifts and intensity (abundance) information concerning the nuclei. The spectroscopic information from the model data set in infrared spectroscopy methods may further comprise absorption frequencies and intensity (abundance) information concerning chemical groups.

The present invention still further provides a method of data compression comprising decomposing measured data comprising signal and noise measured over time using a spectrometer into a sum of K harmonic component signals and a noise component, wherein the harmonic component signals and their number K are derived from the measured data and a determined quantity representative of the noise in the measured data. As used herein, including in the claims, unless the context indicates otherwise, singular forms of the terms herein are to be construed as including the plural form and vice versa.

Throughout the description and claims of this specification, the words "comprise", "including", "having" and "contain" and variations of the words, for example "comprising" and "comprises" etc, mean "including but not limited to", and are not intended to (and do not) exclude other components.

It will be appreciated that variations to the foregoing embodiments of the invention can be made while still falling within the scope of the invention. Each feature disclosed in this specification, unless stated otherwise, may be replaced by alternative features serving the same, equivalent or similar purpose. Thus, unless stated otherwise, each feature disclosed is one example only of a generic series of equivalent or similar features.

The use of any and all examples, or exemplary language ("for instance", "such as", "for example" and like language) provided herein, is intended merely to better illustrate the invention and does not indicate a limitation on the scope of the invention unless otherwise claimed. No language in the specification should be construed as indicating any non- claimed element as essential to the practice of the invention.

Any steps described in this specification may be performed in any order or simultaneously unless stated or the context requires otherwise.

All of the features disclosed in this specification may be combined in any combination, except combinations where at least some of such features and/or steps are mutually exclusive. In particular, the preferred features of the invention are applicable to all aspects of the invention and may be used in any combination. Likewise, features described in non-essential combinations may be used separately (not in combination).