This application claims priority to United Kingdom Application No. GB2204525, filed Mar. 30, 2022, the entire contents of which is incorporated herein by reference.
The present invention relates to methods of analysing ions, and in particular to time-of-flight mass spectrometry (ToF-MS) and time-of-flight (ToF) analysers.
Time-of-flight (ToF) mass analysers utilise the property that the travelling time of an ion in an electrostatic field is proportional to the square root of the ion's mass-to-charge ratio (m/z). Ions are ejected from an ion source, accelerated to a desired energy, and impinge upon an ion detector after traveling a specified distance. The signal generated by the detector is recorded, and typically results in time resolved peaks generated by ions having the same mass-to-charge ratio (m/z). With the travelling distance substantially the same for all ions, an ion's arrival time is used to determine its mass-to-charge ratio (m/z), which can later be used for identification.
ToF mass analysers typically record spectra at a rate of between around 100 Hz and 10 kHz, with each spectrum potentially containing hundreds or thousands of different ion peaks. It can be desirable to analyse these spectra in real-time, e.g. so that the parameters for subsequent scans can be set based on the results of the analysis.
It is believed that there remains scope for improvements to apparatus and methods for time-of-flight mass analysis.
A first aspect provides a method of analysing data generated by an ion analyser, the method comprising:
Embodiments provide methods of analysing data generated by an ion analyser such as a time-of-flight mass analyser. The ion analyser may comprise an ion detector arranged at the end of an ion path. A packet of ions may be injected into the ion path, whereupon the ions may travel along the ion path to the detector for detection. The detector may be configured to produce a signal indicative of an ion intensity received at the detector as a function of (arrival) time. This signal may be digitised to produce a collection of digital samples, where each sample includes an intensity value and is associated with a respective arrival time. The signal and/or collection of samples (and the arrival times associated with the signal and/or collection of samples) may span most or all of the arrival time range for the particular packet of ions that produced the signal.
In the method, each signal and/or collection of samples (that is generated due to a respective packet of ions) is processed by (separately) processing each segment of one or more segments that the signal and/or collection is divided into. For example, each segment may comprise a sub-set of samples of the (entire) collection of samples generated in respect of a packet of ions. Each segment may comprise a (contiguous) set of samples, where the arrival times for the samples of the segment are all within a respective arrival time range for that segment. Each arrival time range for each of the one or more segments may be a sub-range of the (entire) arrival time range for the particular packet of ions that produced the signal.
In the method, each segment of data is (separately) processed by applying a filter to the segment. A width associated with the filter (such as a width of a smoothing kernel or a width of a wavelet) is selected in respect of each segment, e.g., such that the width is different for each different segment that the signal and/or the collection of samples is divided into. In particular, the width is configured to depend upon a width of an expected ion arrival time distribution for ions having arrival times within the arrival time range associated with that segment. The width of the expected arrival time distribution typically depends on the arrival time itself, and so the width associated with the filter for each segment may depend upon (e.g., may be proportional to) the arrival time range associated with that segment, and in particular may depend upon (e.g., may be proportional to) the mean arrival time associated with that segment.
After a segment has been filtered in this manner, the filtered version of the segment is used to identify one or more ion peaks within that segment, and then one or more characteristic(s) of each of the identified ion peak(s) (e.g., its centroid, intensity, and/or area, etc.) is determined, e.g. by fitting a suitable ion peak model to the original unfiltered segment (and/or to the filtered version of the segment).
As will be described in more detail below, filtering each segment using a filter that has a width that depends upon the width of an expected ion arrival time distribution for the segment is particularly advantageous in circumstances where the widths of individual ion peaks recorded by the ion detector can be less than the width of an expected ion arrival time distribution for a particular ion species. In these circumstances, where the ion flux at the detector is relatively low, the ion detector can produce a multi-modal signal in respect of a single ion species due to individual ions of the same species arriving at the detector with slightly different arrival times that are within the expected arrival time distribution for that species. The presence of such multi-modal peaks in the signal could lead to the identification of multiple distinct ion peaks in the signal, which could then be incorrectly identified as belonging to multiple distinct ion species.
In embodiments, the filter has the effect of smoothing a multi-modal signal that is produced by ions of the same species into a unimodal signal, while retaining any multi-modal signal(s) that are produced from ions of different species. This then ensures that the filtered version of the segment of data will (usually) include only one ion peak in respect of each ion species. This in turn allows improved identification and characterisation of the ion species that are present within a particular packet of ions.
Moreover, as will be described in more detail below, the various steps of the method are all relatively computationally inexpensive and can be implemented in an efficient manner. This allows the identification and characterisation of ion peaks to be performed in real-time, even where spectra are being produced at relatively high rates (>100 Hz), as is typically the case for time-of-flight mass analysers.
Thus, embodiments provide an improved method of analysing data generated by an ion analyser, which is particularly robust in accurately identifying and charactering ion peaks, and which can be run in real-time, i.e., alongside the collection of the data at high rates (>100 Hz).
The ion analyser can be any suitable ion analyser, such as a time-of-flight (ToF) mass analyser configured to determine the mass to charge ratio (m/z) of ions from their arrival times, or an ion mobility analyser configured to determine the ion mobility of ions from their arrival times.
In particular embodiments, the ion analyser is a multi-reflection time-of-flight (MR-ToF) analyser, such as a titled-mirror type multi-reflection time-of-flight mass analyser, e.g. of the type described in U.S. Pat. No. 9,136,101, or a single focusing lens type multi-reflection time-of-flight mass analyser, e.g. of the type described in UK patent No. 2,580,089.
The ion analyser may form part of an analytical instrument. The analytical instrument may be a mass spectrometer, an ion mobility spectrometer, or a combination of the two (e.g. a mass spectrometer which includes an ion mobility separator). The instrument may comprise an ion source. Ions may be generated from a sample in the ion source. The ions may be passed from the ion source to the analyser via one or more ion optical devices arranged between the ion source and the analyser.
The one or more ion optical devices may comprise any suitable arrangement of one or more ion guides, one or more lenses, one or more gates, and the like. The one or more ion optical devices may include one or more transfer ions guides for transferring ions, and/or one or more mass selector or filters for mass selecting ions, and/or one or more ion cooling ion guides for cooling ions, and/or one or more collision or reaction cells for fragmenting or reacting ions, and so on. One or more or each ion guide may comprise an RF ion guide such as a multipole ion guide (e.g. quadrupole ion guide, hexapole ion guide, etc.), a segmented multipole ion guide, a stacked ring type ion guide, and the like.
The ion analyser may comprise an ion injector arranged at the start of an ion path, and an ion detector arranged at the end of the ion path. The ion analyser may be configured to analyse ions by determining arrival times of ions at the detector (i.e., the time taken for ions to travel from the injector and to arrive at the detector via the ion path).
The ion injector can be in any suitable form, such as for example an ion trap, or one or more (e.g., orthogonal) acceleration electrodes. The ion injector may be configured to receive ions (from the ion source via the one or more ion optical devices), and may optionally be configured to accumulate a packet of ions (e.g. by accumulating ions during an accumulation time period). The ion injector may be configured to inject a (received and/or accumulated) packet ions into the ion path (e.g. by accelerating the packet of ions along the ion path), whereupon the ions of the packet may travel along the ion path to the detector.
The detector can be any suitable ion detector such as one or more conversion dynodes, optionally followed by one or more electron multipliers, one or more scintillators, and/or one or more photon multipliers, and the like. The detector may be configured to detect ions received at the detector, and may be configured to produce a signal indicative of an intensity of ions received at the detector as a function of (arrival) time.
Each signal is produced from a (single) packet of ions. Multiple such packets of ions may be sequentially injected into the ion path and detected by the detector. Thus, the method may comprise repeatedly: (i) injecting a packet of ions into the ion path, (ii) detecting the packet of ions at the detector, and (iii) producing a respective signal for the packet of ions. Packets of ions may be injected into the ion path (and signals may be produced) at any desired rate, such as at a rate greater than around 100 Hz and less than around 10 kHz, e.g. around 200 Hz. Each signal will have a respective ion arrival time range associated with it.
The detector can include a digitiser, such as a time-to-digital converter (TDC) or an analogue-to-digital converter (ADC), which may be configured to digitise each signal so as to produce a collection of digital samples. The digitiser may have a single channel, or multiple channels e.g. where the signal from the detector is split between a first high gain channel and a second low gain channel (to increase the dynamic range).
Each collection of digital samples may be produced from the signal in respect of a single packet of ions. Thus, the method may comprise repeatedly: (i) injecting a packet of ions into the ion path, (ii) detecting the packet of ions, (iii) producing a respective signal for the packet of ions, and (iv) digitising the signal to produce a respective collection of digital samples for the packet of ions. Alternatively, each collection of digital samples may be produced from the signal in respect of multiple packets of ions (i.e. multiple ion injections), whereby the multiple signals and/or samples are combined (e.g. averaged). Thus, the method may comprise repeating steps (i) to (iv) multiple times, and combining (e.g., averaging) the digital samples to produce a collection of digital samples for further analysis.
Each digital sample in each collection is associated with a respective arrival time and will include an intensity value indicative of an ion intensity measured by the detector at the particular arrival time. Different arrival times are indicative of different values of an associated physicochemical property, such as mass to charge ratio (m/z) or ion mobility. Digital samples can be stored and processed in a form that includes an intensity value and an arrival time value, but it would also be possible for digital samples to be stored and processed in a form that includes an intensity value and a value of the associated physicochemical property (e.g. m/z). The arrival times associated with each collection of samples may span most or all of the arrival time range for the related signal.
In embodiments, each signal and/or collection of samples is divided into one or more segments, e.g. plural segments. Each segment may comprise a sub-set of the signal generated in respect of a packet of ions, e.g. a sub-set of digital samples of an (entire) collection of digital samples generated in respect of a packet of ions (or a sub-set of digital samples of a collection produced by combining (e.g. averaging) signals from multiple packets of ions). In particular, each segment may comprise a (non-overlapping) contiguous portion of the signal (e.g., a (contiguous) set of digital samples), where the arrival times for the (samples of the) segment are all within a respective arrival time range for that segment.
Thus, each segment of data may comprise a respective set of digital samples, wherein each sample of the set is associated with a respective arrival time, and wherein the arrival times associated with the set are within a respective arrival time range. For example, a signal may be divided into a first segment comprising a first set of digital samples wherein the arrival times associated with the first set are within a first arrival time range, and a second segment comprising a second set of digital samples wherein the arrival times associated with the second set are within a second different arrival time range. The signal may optionally also be divided into one or more further segments, each comprising a respective further set of digital samples wherein the arrival times associated with each respective further set are within a respective further different arrival time range.
Each arrival time range for each of the segments that a signal and/or collection of samples is divided into may be a sub-range of the (overall) arrival time range for the signal. The arrival time ranges for the plural segments that the signal/collection is divided into may be a set of non-overlapping arrival time ranges, i.e. each arrival time range for each of the segments may be a non-overlapping sub-range of the overall arrival time range.
The signal can be divided into plural segments in any suitable manner. The signal can be divided into plural segments before digitisation or after digitisation. In particular embodiments, the signal is divided into plural segments as part of the digitisation process, e.g., digital samples are output from the digitiser in the form of segments (i.e., sets of digital samples).
In some embodiments, the signal and/or collection of digital samples can be divided into equally sized, non-overlapping, adjacent segments (i.e. in a data-independent manner).
However, in particular embodiments, the signal and/or the collection of digital samples is divided into plural segments in a data-dependent manner. In particular, segment(s) may be generated when the ion intensity exceeds a threshold. For example, a segment may begin when the intensity of a sample exceeds a first threshold and may end when the intensity of a sample drops below a second threshold. The first and second thresholds may be the same or may be different. Where the intensity drops below the second threshold only briefly, the segment may be continued. This may be achieved, for example, by configuring the digitiser such that a segment is ended only if the threshold remains below the second threshold for a certain number of samples. It would also be possible for a segment to begin a certain number of samples before the intensity of a sample exceeds the first threshold and/or to end a certain number of samples after the signal falls below the second threshold.
It will be understood that by dividing the signal and/or the collection of digital samples into plural segments in the manner of various embodiments, some or most samples within a segment will have an intensity value above a threshold. Other regions of the signal may be discarded. In this way, it can be ensured that each segment includes data in respect of one or more ion peaks (and that regions of the signal that are empty of ion peaks are discarded).
In the method, each segment of data is (separately) processed by applying a filter to the segment. In embodiments, the filter is applied to each segment after digitisation, i.e. the filter is applied to each set of digital samples.
A width δt (e.g. full width at half maximum (FWHM)) associated with the filter (such as a width (e.g. FWHM) of a smoothing kernel or wavelet) is selected in respect of each segment, e.g., such that the width δt is different for each different segment that the signal is divided into. In particular, the width δt is configured to depend upon a width of an expected ion arrival time distribution for ions having arrival times within the arrival time range associated with that segment. The expected ion arrival time distribution for the ion analyser may be determined, for example, by performing a suitable calibration for the ion analyser.
The width of the expected arrival time distribution may depend on the arrival time itself, and so the width δt associated with the filter for each segment may depend upon the arrival time range associated with that segment, and in particular may depend upon the mean arrival time T associated with that segment. The dependency may take any suitable form, such as for example being a linear (proportional) dependency (i.e. δt∝T) or a non-linear dependency.
In embodiments, the filter has the effect of smoothing any multi-modal ion peak produced by ions of the same species into a unimodal ion peak, while retaining any multi-modal ion peak(s) produced by ions of different species. This ensures that the filtered version of the segment of data will (usually) include only one ion peak in respect of each ion species.
In embodiments, the filter utilises a smoothing kernel. The smoothing kernel may take any suitable form. In embodiments, the smoothing kernel has the form of a Gaussian. Alternatively, the smoothing kernel may be more closely modelled on the expected arrival-time distribution for the instrument (e.g. which may be determined from a calibration). For example, the smoothing kernel may take the form of an asymmetric Gaussian, e.g. with different widths to the left and right of its centre.
In alternative embodiments, the filter is a continuous wavelet transformation (CWT), i.e. where the scale of the wavelet may again depend upon (e.g. may be proportional to) the arrival time range associated with the segment, e.g. the mean arrival time T associated with the segment. Any suitable wavelet may be used, such as for example the Marr wavelet.
After a segment has been filtered, the filtered version of the segment is used to identify one or more ion peaks within that segment. This may be done in any suitable manner.
Where the filter is a smoothing function, the method may comprise identifying one or more local minima in the filtered signal, and then dividing the segment into one or more intervals at the location of each of the identified minima (e.g. if a minimum is below a specified threshold). Where the filter is a continuous wavelet transformation (CWT), the method may comprise identifying one or more local maxima in the filtered signal, and then dividing the segment into one or more intervals at the location of each of the identified maxima (e.g. if a maximum is above a specified threshold). In general, depending on the nature of the filter, the method may comprise identifying one or more local minima, zero-crossing points and/or local maxima in the filtered signal, and then dividing the segment into one or more intervals at the location of each of the identified minima, zero-crossing points and/or maxima. Splitting at a local minimum or maximum may be done only if the minimum or the maximum exceeds (or is below) a threshold.
The method may comprise retaining or discarding each interval based on the maximum intensity of the samples within that interval. For example, the method may comprise retaining an interval where the maximum intensity of that interval's samples is above a threshold, and discarding an interval where the maximum intensity of that interval's samples is below the threshold. Thus, the method may comprise retaining only those interval(s) with a maximum sample intensity above a threshold (and discarding any other interval(s)).
It will be understood that these steps ensure that, at this stage, where only one ion peak is present in a segment, only a single interval will remain of that segment. In this case, the method may proceed by determining one or more characteristics (e.g. centroid, intensity, and/or area, etc.) of the ion peak by analysing the unfiltered and/or filtered data in this interval. This may be done by way of fitting a suitable (single) peak model to the samples of the interval. Any suitable peak model may be used, such as for example a Gaussian or an asymmetric Gaussian.
Where multiple intervals remain for a segment, the method may continue by processing each interval one by one. In embodiments, the sum of the intensities of each interval's samples is calculated, and the intervals are then sorted in accordance with the calculated sum for each interval, e.g. from highest to lowest.
The method may comprise fitting a (first) single peak model to the samples of the (first) interval with the highest sum. Next, for the (second) interval with the next highest sum, that interval's samples may be modified using the first peak model (at least to the extent that the first peak model overlaps the second interval). For example, intensity values determined from the first peak model may be respectively subtracted from corresponding intensity values of one or more or each of the samples of the second interval, e.g. so as produce a set of modified samples for the second interval. The method may continue by fitting a (second) single peak model to the modified samples of the second interval.
This process may continue for any remaining interval(s) of the segment in order from the interval with the highest sum to the interval with the lowest sum, whereby the samples of each interval are firstly (a) modified using each (and every) peak model that has already been determined for other intervals of that segment (at least to the extent that the peak model in question overlaps the interval in question). This may comprise subtracting intensity value(s) determined from the existing peak model(s) from corresponding intensity values of one or more or each of the samples of the current interval, e.g. so as produce a set of modified samples for the current interval. The method may comprise then (b) fitting a (single) peak model to the modified samples of the current interval. In this way, one or more characteristics (e.g. centroid, intensity, and/or area, etc.) of each of multiple ion peaks in the segment may be determined. Again, any suitable (single) peak model may be used for each interval, such as for example a Gaussian or an asymmetric Gaussian.
In further embodiments, when the above-described process has been completed for all of the (retained) intervals of a segment, the peak model fitting process may optionally be iterated. This may be done by modifying the samples of the first interval using each (and every) peak model produced for the other intervals in the segment. This may comprise subtracting intensity value(s) determined from those peak model(s) from corresponding intensity values of one or more or each of the samples of the first interval, e.g. so as produce a set of modified samples for the first interval. The method may comprise fitting a modified first peak model to the modified samples of the first interval. Then, the method may continue as described above, but where the modified first peak model is used in place of the first peak model, and where in each step, each interval's samples are modified using all of the (most current) peak model(s) produced in respect of the other intervals in the segment.
Thus, the method may comprise, when a set of peak models has been produced by fitting a peak model to each of the multiple remaining intervals: (c) using the peak models of the set other than the first peak model to modify the samples of the interval with the highest sum; (d) fitting a first modified peak model to the modified samples of the interval with the highest sum, and replacing the first peak model with the first modified peak model in the set of peak models; (e) using the peak models of the set other than the second peak model to modify the samples of the interval with the second highest sum; and (f) fitting a second modified peak model to the modified samples of the interval with the second highest sum, and replacing the second peak model with the second modified peak model in the set of peak models. The method may optionally further comprise (g) for each (and every) interval of any remaining interval(s) of the segment other than the interval with the highest sum and the interval with the second highest sum, performing the steps (h) and (i): (h) modifying the samples of the interval with the next highest sum using the peak models of the set other than the peak model for the current interval; and (i) fitting a peak model to the modified samples of the current interval, and replacing the peak model for the current interval with the modified peak model for the current interval in the set of peak models.
In embodiments, this iteration process (i.e. steps (c) to (i)) can be repeated one or plural times, as desired. The iteration(s) may be terminated, for example, when the model parameters have reached a desired precision or when a defined maximum number of iterations has been reached.
As an optional final step, the method may comprise performing a (nonlinear) fit of the full segment, e.g. using a multiple-peak model. The initial values for this fit may be derived from the single ion peak model(s) determined in the previous step(s). This step may increase the accuracy of the various determined characteristics, at the expense of additional processing time. In some embodiments, this step is not performed, as it has been found that sufficient accuracy can be obtained without this step.
Once one or more final models have been determined for the segment, the one or more peak models may each be used to determine one or more characteristics of each ion peak in the segment, such as its centroid, intensity and/or area. The one or more characteristics of each ion peak can then be used as desired. For example, a physicochemical property of each ion in the segment, such as its mass to charge ratio and/or ion mobility, may be determined.
A further aspect provides a non-transitory computer readable storage medium storing computer software code which when executed on a processor performs the method(s) described above.
A further aspect provides a control system for an analytical instrument such as a mass and/or ion mobility spectrometer, the control system configured to cause the analytical instrument to perform the method(s) described above.
A further aspect provides an analytical instrument comprising an ion analyser and the control system described above.
A further aspect provides an analytical instrument comprising:
These aspects and embodiments can, and in embodiments do, include any one or more or each of the optional features described herein.
Thus, for example, the analytical instrument may be a mass and/or ion mobility spectrometer. The ion analyser may be a time-of-flight (ToF) mass analyser such as a multi-reflection time-of-flight (MR-ToF) analyser.
Various embodiments will now be described in more detail with reference to the accompanying Figures, in which:
The ion source 10 is configured to generate ions from a sample. The ion source 10 can be any suitable continuous or pulsed ion source, such as an electrospray ionisation (ESI) ion source, a MALDI ion source, an atmospheric pressure ionisation (API) ion source, a plasma ion source, an electron ionisation ion source, a chemical ionisation ion source, and so on. In some embodiments, more than one ion source may be provided and used. The ions may be any suitable type of ions to be analysed, e.g. small and large organic molecules, biomolecules, DNA, RNA, proteins, peptides, fragments thereof, and the like.
The ion source 10 may optionally be coupled to a separation device such as a liquid chromatography separation device or a capillary electrophoresis separation device (not shown), such that the sample which is ionised in the ion source 10 comes from the separation device.
The ion transfer stage(s) 20 are arranged downstream of the ion source 10 and may include an atmospheric pressure interface and one or more ion guides, lenses and/or other ion optical devices configured such that some or most of the ions generated by the ion source 10 can be transferred from the ion source 10 to the analyser 30. The ion transfer stage(s) 20 may include any suitable number and configuration of ion optical devices, for example optionally including any one or more of: one or more RF and/or multipole ion guides, one or more ion guides for cooling ions, one or more mass selective ion guides, and so on.
The analyser 30 is arranged downstream of the ion transfer stage(s) 20 and is configured to receive ions from the ion transfer stage(s) 20. The analyser is configured to analyse the ions so as to determine a physicochemical property of the ions, such as their mass to charge ratio, mass, ion mobility and/or collision cross section (CCS). To do this, the analyser 30 is configured to pass ions along an ion path within the analyser 30, and to measure the time taken (the drift time) for ions to pass along the ion path. Thus, the analyser 30 can comprise an ion detector arranged at the end of the ion path, wherein the analyser is configured to record the time of arrival of ions at the detector. The instrument may be configured to determine the physicochemical property of the ions from their measured arrival time. The instrument may be configured produce a spectrum of the analysed ions, such as a mass spectrum or an ion mobility spectrum.
In particular embodiments, the analyser 30 is a time-of-flight (ToF) mass analyser, e.g. configured to determine the mass to charge ratio (m/z) of ions by passing the ions along an ion path within a drift region of the analyser, where the drift region is maintained at high vacuum (e.g. <1×10−5 mbar). Ions may be accelerated into the drift region by an electric field, and may be detected by an ion detector arranged at the end of the ion path. The acceleration may cause ions having a relatively low mass to charge ratio to achieve a relatively high velocity and reach the ion detector prior to ions having a relatively high mass to charge ratio. Thus, ions arrive at the ion detector after a time determined by their velocity and the length of the ion path, which enables the mass to charge ratio of the ions to be determined. Each ion or group of ions arriving at the detector may be sampled by the detector, and the signal from the detector may be digitised. A processor may then determine a value indicative of the time of flight and/or mass-to-charge ratio (“m/z”) of the ion or group of ions. Data for multiple ions may be collected and combined to generate a time of flight (“ToF”) spectrum and/or a mass spectrum.
In alternative embodiments, the analyser 30 is an ion mobility analyser, e.g. configured to determine the ion mobility of ions by passing the ions along an ion path within a drift region of the analyser, where a buffer gas is provided in the drift region. Ions may be urged through the buffer gas by an electric field (or ions may be urged through the drift region by a gas flow where an electric field is arranged to oppose the gas flow), and may be detected by an ion detector arranged at the end of the ion path. Ions having a relatively high mobility will reach the ion detector prior to ions having a relatively low mobility. Thus, ions may separate according to their ion mobility, and may arrive at the ion detector with an arrival time determined by their ion mobility. Each ion or group of ions arriving at the detector may be sampled by the detector, and the signal from the detector may be digitised. A processor may then determine a value indicative of the arrival time and/or ion mobility of the ion or group of ions. Data for multiple ions may be collected and combined to generate an arrival time spectrum and/or an ion mobility spectrum.
It should be noted that
As also shown in
As shown in
An ion source (injector) 33, which may be in the form of an ion trap, is arranged at one end (the first end) of the analyser. The ion source 33 may be arranged and configured to receive ions from the ion transfer stage(s) 20. Ions may be accumulated in the ion source 33, before being injected into the space between the ion mirrors 31, 32. As shown in
One or more lenses and/or deflectors may be arranged along the ion path, between the ion source 33 and the ion mirror 32 first encountered by the ions. For example, as shown in
The analyser also includes another deflector 37, which is arranged along the ion path, between the ion mirrors 31, 32. As shown in
The analyser also includes a detector 38. The detector 38 can be any suitable ion detector configured to detect ions, and e.g. to record an intensity and time of arrival associated with the arrival of ion(s) at the detector. Suitable detectors include, for example, one or more conversion dynodes, optionally followed by one or more electron multipliers, and the like.
To analyse ions, ions may be injected from the ion source 33 into the space between the ion mirrors 31, 32, in such a way that the ions adopt a zigzag ion path having plural reflections between the ion mirrors 31, 32 in the X direction, whilst: (a) drifting along the drift direction Y towards the opposite (second) end of the ion mirrors 31, 32, (b) reversing drift direction velocity in proximity with the second end of the ion mirrors 31, 32, and then (c) drifting back along the drift direction Y to the deflector 37. The ions can then be caused to travel from the deflector 37 to the detector 38 for detection.
In the analyser of
The analyser depicted in
Further detail of the tilted-mirror type multireflection time-of-flight mass analyser of
It should be noted that in general the analyser 30 can be any suitable type of time-of-flight (ToF) mass analyser (or indeed an ion mobility analyser). For example, the analyser may be a single-lens type multireflection time-of-flight mass analyser, e.g. as described in UK Patent No. GB 2,580,089.
In general, time-of-flight (ToF) mass analysers with ion-impact detectors utilise the property that the travelling time of an ion in an electrostatic field is proportional to the square root of the ion's mass to charge ratio (m/z). Ions are ejected simultaneously from an ion source (e.g., an orthogonal accelerator or a radio-frequency ion trap), accelerated to a desirable energy, and impinge upon an ion detector after traveling a specified distance.
The generated signal is recorded by data acquisition electronics 54 such as a digitiser, e.g. either a time-to-digital converter (TDC) or an analogue-to-digital converter (ADC). As shown in
ToF mass analysers typically record signals at a rate of between around 100 Hz and 10 kHz, with each signal potentially containing hundreds of different ion peaks. Each signal corresponds to a respective packet of ions 50 ejected by the injector 33 into the analyser. It can be desirable to analyse these signals in real-time, e.g. so that the parameters for subsequent scans can be set based on the results of the analysis.
However, the peaks recorded by the data acquisition electronics 54 can have complicated shapes, and peaks deriving from different ion species can overlap. Therefore, embodiments provide a method of identifying peaks corresponding to different mass-to-charge ratios from the recorded signal, and then assigning an arrival time, intensity, and/or one or more other properties to each of these peaks.
Two edge-cases that the peak fitting method should address can be identified. These are illustrated by
As shown in
As shown in
This second case is of particular relevance to multi-reflection time-of-flight (MR-ToF) analysers. As described above, in these instruments, the ion trajectories are folded using multiple reflections between ion mirrors 31, 32 to achieve a long travelling distance and therefore a long time of flight T. In this case, a rather broad probability distribution for the ion arrival time of width ΔT can still lead to a very high resolution, which is proportional to the ratio ΔT/T.
On the other hand, state-of-the-art ion detectors convert incident ions into voltage pulses with a full-width-half-maximum (FWHM) below 1 ns, which can be considerably less than ΔT for MR-ToF instruments. In this case, if only a few ions of a species are detected, it is very probable that a multi-modal signal, such as the signal shown in
The width of the arrival time distribution typically depends on the arrival time itself. This results in peaks of vastly different widths if a large mass-to-charge range is analysed. Especially for large mass-to-charge ratio ions, broad probability distributions of the ion arrival time can be expected, leading to multimodal signals generated by only a single ion species.
These multi-modal peaks can arise from ions of a single species due to poor ion statistics and noise, and the modes of such peaks can easily be misinterpreted as multiple overlapping peaks. To avoid this, smoothing spline functions (e.g. Chudinov, A. V., et al. “Interpolational and smoothing cubic spline for mass spectrometry data analysis.” International Journal of Mass Spectrometry 396 (2016): 42-47), continuous wavelet transformations (e.g. Du, Pan, Warren A. Kibbe, and Simon M. Lin. “Improved peak detection in mass spectrum by incorporating continuous wavelet transform-based pattern matching.” Bioinformatics 22.17 (2006): 2059-2065; and Lange, Eva, et al. “High-accuracy peak picking of proteomics data using wavelet techniques.” Biocomputing 2006. 2006. 243-254), and discrete wavelet transformations (e.g. Coombes, Kevin R., et al. “Improved peak detection and quantification of mass spectrometry data acquired from surface-enhanced laser desorption and ionization by denoising spectra with the undecimated discrete wavelet transform.” Proteomics 5.16 (2005): 4107-4117) have been used in the prior art to separate signal and noise and to search for ion peaks on different scales. However, the inventors have found that performing filtering on different scales and searching for peaks on all of the scales can be very time consuming, and so is not suitable for a real-time analysis of spectra recorded at a rate of 100 Hz to 10 kHz.
US Patent Application No. US 2009/0072134 uses a mass dependent binning of the incoming data such that every peak across the full mass range has a similar FWHM in terms of number of bins. However, this results in information being lost during the binning process.
Thus, prior art methods either perform an analysis on many different scales which is computationally expensive, or use binning which results in a loss of precision.
As shown in
In a second step 61, a Gaussian filter is applied to the raw data of each segment. If the width of the smoothing kernel is on the order of the width of the arrival time distribution in this segment, the filter will typically turn multi-modal peaks into a unimodal peak. This avoids false identification of multiple peaks.
To find the correct width of the arrival-time distribution of an ion of a given arrival time, a calibration is performed for the ToF analyser. This prior knowledge enables the algorithm to look for a peak on a specific scale rather than looking for peaks on all scales like in the prior art, and thereby considerably speeds up the analysis.
In some embodiments, it has been found to be sufficient to assume a linear dependency. Thus, the width δt of the smoothing kernel may be proportional to the mean arrival time T in the current segment. The factor between these two may be called the “time-scale factor”. In embodiments, this factor may be on the order of 1e−6.
A slightly more sophisticated model may be used, e.g., of the form
Here, δtmin is the peak width that can be obtained at short time-of-flight, limited by effects like the initial energy and position spread of the ions, whereas
refers to the resolution at high mass to charge ratio, which is mainly limited by differences in the ion path length due to aberrations in the instrument. Other parameters, like the number of ions, influence the width and shape of the distribution too, but are found to be less important.
Once the segment has been filtered, local minima in the filtered signal are found, and the segment is further divided into multiple intervals at the location of these minima. This is illustrated by
It will be understood that, in essence, the Gaussian filter is a pattern matching giving a maximum at the position of the peaks and minima in between. To improve this further, it is beneficial to use a model of the arrival-time distribution as a smoothing kernel. In embodiments, the arrival-time distribution can be well-modelled by an asymmetric Gaussian function, with a different value for sigma to the left and right of its centre, and this model may be used as a smoothing kernel.
As an alternative to the Gaussian filter in the second step 61, a continuous wavelet transformation (CWT) can be applied, where the scale of the wavelet is again proportional to the mean arrival time in the current segment. Using the Marr wavelet (also known as the Mexican-hat wavelet), a filtered second derivative of the signal is obtained. The local maxima of the transformed signal are assumed to be a first estimate of the peak positions if they exceed a threshold. The splitting is then done between these estimated peak positions. Using CWT, two peaks can be identified in situations where there is no local minimum between the two peaks.
In the third 62 and fourth 63 steps, only intervals in which the maximum intensity value exceeds a given threshold are kept, and the remaining intervals are processed one-by-one.
If the signal in the segment originates from a single ion-species only, only a single interval should be left at this point, and so the parameters of only a single peak should then be estimated. This situation is illustrated by
If multiple intervals remain, they are sorted according to the summed-up signal from highest to lowest, and then the algorithm estimates the parameters of the peaks in each of these intervals one by one as follows.
Suppose the peak parameters in interval k having raw unfiltered samples of height yi recorded at flight times ti are to be estimated. In the third step 62, the model values fl(ti) are firstly subtracted at these flight times from other peaks that have already been estimated to obtain ŷi=yi−Σl≠kfl(ti). An example of such a corrected signal is shown in
In the fourth step 63, the parameters of the peaks are estimated using the remaining signal ŷi. To find the peak centre T in a given interval, many methods may be used. Two of these methods are:
Here ti and yi are the sample time and voltage. The maximum of the peak ymax is assumed to be equal to the maximum signal observed in this interval of the segment.
Alternatively, the signal at the estimated peak centre could be used. The width of the left σg and right part σr of the asymmetric peak is adjusted such that the integrated area of the model and the observed data to the left and to the right of the estimated peak centre is the same. These parameters lead to the following model of the peak:
In a similar manner, parameters of other models may be estimated.
It should be noted that in embodiments, the filtered version of a segment is only used for splitting the peaks, and is not used for fitting the model. Instead, the model is fitted to the original unfiltered segment of data. This ensures that resolution is retained.
After a model is obtained for every peak, the estimations can optionally be iterated. For these additional iterations, the full segment may be used instead of an interval only. However, it was found to be sufficient to only use the data from the corresponding intervals. The iteration(s) may be terminated when the parameters reach the desired precision, or when a defined maximum number of iterations is reached. The result of this iteration is shown in
Next, a determination is made as to whether the current interval is the last interval (step 74). Where this is not the case, the interval with the next highest sum is selected (step 75). Then, the algorithm makes an estimate of the amount of signal originating from peaks in other intervals of the segment that appears in the current interval (step 76), and subtracts that estimated signal from the signal in the current interval (step 77). The algorithm then loops back to step 73, by fitting a peak model to the corrected signal for the current interval produced by step 77.
This process is looped by stepping through each interval one by one, until the last interval is reached, at which point step 74 will determine that the current interval is the last interval. Next, a determination is made as to whether the maximum number of iterations has been reached (step 78). Where this is the case, the process is ended (step 79), and the current set of peak models is output and/or used for further analysis.
On the other hand, where the maximum number of iterations has not been reached, the entire procedure is iterated, starting back with the interval with the highest total signal (step 80). However, in this case, as can be seen from
Although in the embodiment depicted in
Returning to
The performance of the algorithm was evaluated using recorded data of a TMT sample, as well as simulated peaks which allow the peak properties to be arbitrarily adjusted (most importantly the distance between two peaks). Using simulated data, it was found that at a time-of-flight of ˜300 μs and a resolution of 100,000 (corresponding to a FWHM of 1.5 ns), two peaks containing 10 ions on average with a ToF difference of 4 ns can still be reliably distinguished for appropriate parameters. This is shown in
While the true positive rate increases when reducing the time scale factor,
In
The accuracy is shown in
It should be noted that all of the steps of the algorithm according to embodiments can be implemented in a very efficient way, and are not computationally expensive. It was possible to demonstrate that the analysis of a segment containing two peaks takes on average 4 μs in a C++ implementation if the last optional step 64 of a non-linear fit is excluded. Implementations faster than 4 μs are possible.
In an extreme case, there can be about 500, 1000, or more peaks in a spectrum, typically recorded in a first channel with high gain and in a second channel with low gain simultaneously to increase the dynamic range. Thus, about 1000 or more segments may need to be analysed, which allows for an online analysis of the incoming data.
It will be appreciated that embodiments use either a CWT or a low-pass filter with a scale that depends on the time-of-flight or m/z, to split the signal into peaks originating from different ion species. The correct scale is chosen to avoid false detection of multiple species due to poor ion statistics.
Although the present invention has been described with reference to various embodiments, it will be understood that various changes may be made without departing from the scope of the invention as set out in the accompanying claims.
Number | Date | Country | Kind |
---|---|---|---|
2204525 | Mar 2022 | GB | national |