A time-of-flight mass spectrometry peak detection method
By calculating the first-order derivative and combining it with segmented zero-crossing point detection and second-order derivative threshold screening, combined with the signal-to-noise ratio SNR threshold to determine the mass spectrum peak, the problem of false detection of noise peaks caused by the selection of the signal-to-noise ratio threshold in the existing technology is solved, and the problem is achieved Accurate detection of mass spectrum peaks.
Patent Information
- Application Number
- CN202111610900.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-12-27
AI Technical Summary
Existing peak detection methods rely on signal-to-noise ratio SNR threshold selection to easily detect noise peaks, and it is difficult to accurately determine the position of the mass spectrum peak, resulting in a high false detection rate.
By acquiring nucleic acid mass spectrometry data, calculating the first-order derivative and performing noise reduction processing, candidate peaks are screened by combining segmented zero-crossing point detection and second-order derivative threshold, and finally the target peak is determined using the signal-to-noise ratio SNR threshold.
It effectively avoids noise peak interference, ensures accurate detection of mass spectrum peaks, avoids false detection problems caused by signal-to-noise ratio threshold selection, and improves the accuracy of detection results.
Smart Images

Figure CN114519366B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of mass spectrometry data processing, and in particular relates to a time-of-flight mass spectrometry peak detection method. Background Art
[0002] Time-of-flight mass spectrometry is a gene detection technology with high throughput, high precision, and a wide detection mass range. The sample is ionized under the stimulation of external conditions such as lasers, accelerated by an accelerating electric field, and then freely flies a certain distance to reach the ion detector; mass spectrometry data is generated after relevant conversion, and then the mass spectrometry data information is processed to complete the gene locus diagnosis. Among them, accurately and efficiently finding the location of the target peak and determining the mass-to-charge ratio of the target peak are the most important steps in the processing of mass spectrometry data, which determines the success or failure of the mass spectrometry analysis results.
[0003] At present, the existing peak detection methods are basically based on the selection of the signal-to-noise ratio (SNR) threshold. When the SNR threshold is too small, many noise peaks will be detected, and when it is too large, the real peak will be ignored. Therefore, the selection of the SNR threshold determines the accuracy of the peak. At the same time, some peak detection methods directly perform wavelet transformation on the mass spectrum data to determine the peak width and other parameters to detect the peak, and then due to the noise in the mass spectrum peak, more noise peaks will be misdetected. Summary of the invention
[0004] Purpose of the invention: In order to solve the problems of inaccurate detection results and easy misdetection of many noise peaks in existing peak detection methods, the present invention proposes a time-of-flight mass spectrometry peak detection method.
[0005] Technical solution: A time-of-flight mass spectrometry peak detection method, comprising the following steps:
[0006] Step 1: Obtain the entire nucleic acid mass spectrometry data. For the i-th sampling point i∈{1,2,3,…,n}, the nucleic acid mass spectrometry data corresponding to the sampling point is expressed as (I i ,m / z i ), where I i is the ion intensity, m / z i is the mass-to-charge ratio of the ion; the entire nucleic acid mass spectrum data is segmented according to the interval length num;
[0007] Step 2: Solve to obtain the first-order derivative data of each sampling point, where for the i-th sampling point i∈{1,2,3,…,n}, the first-order derivative data corresponding to the sampling point is expressed as (I′ i ,m / z i );
[0008] Step 3: Perform denoising and smoothing on the first-order derivative data obtained in step 2 to obtain smoothed nucleic acid mass spectrometry data, where the smoothed nucleic acid mass spectrometry data corresponding to the i-th sampling point i∈{1,2,3,…,n} is expressed as (S i ,m / z i );
[0009] Step 4: Find the first-order derivative value of the zero-crossing point downward, and segment the smoothed nucleic acid mass spectrometry data according to the ion intensity threshold I in each segment. threshold and the second-order derivative threshold I″ threshold , the first-order derivative value of the zero-crossing point and its corresponding nucleic acid mass spectrum data are screened to select candidate peaks;
[0010] Step 5: Use the signal-to-noise ratio (SNR) threshold to further screen the candidate peaks and determine the target peak.
[0011] Furthermore, in step 2, the first-order derivative data of each sampling point is solved according to the following formula:
[0012] For the i-th sampling point i∈{2,3,…,n-1}, its first-order derivative data is represented by I′ ij , the mathematical expression is:
[0013]
[0014] In the formula, I i+1j represents the ion intensity of the i+1th sampling point in the jth segment, I i-1j represents the ion intensity of the i-1th sampling point in the jth segment;
[0015] For the first sampling point, its first-order derivative data is expressed as:
[0016] I′1=I2-I1 (4)
[0017] In the formula, I2 represents the ion intensity at the second sampling point, and I1 represents the ion intensity at the first sampling point;
[0018] For the nth sampling point, its first-order derivative data is expressed as:
[0019] I′ n =I n -I n-1 (5)
[0020] In the formula, I n Indicates the ion intensity at the nth sampling point, I n-1 Represents the ion intensity of the n-1th sampling point.
[0021] Furthermore, in step 3, a triangle smoothing algorithm is used to perform noise reduction and smoothing processing on the first-order derivative data obtained in step 2.
[0022] Furthermore, in step 4, for the jth segment, its intensity threshold is expressed as I threshold j , calculated by the following formula:
[0023]
[0024] In the formula, is the average ion intensity in the jth segment, σ j is the standard deviation of ion intensity in the jth segment; c is the signal intensity threshold coefficient;
[0025] The second-order derivative threshold is denoted as I″ threshold j , calculated by the following formula:
[0026]
[0027] In the formula, d is the specific coefficient, H j and W j It is the peak height and half-height half-width of the characteristic peak with the smallest peak height in the jth segment.
[0028] Further, in step 4, the ion intensity threshold I threshold and the second-order derivative threshold I″ threshold , the first-order derivative value of the zero-crossing point and the corresponding nucleic acid mass spectrum data are screened to select candidate peaks; the specific operations include:
[0029] The candidate peaks selected are represented as (I ij ,m / z ij ), the corresponding first-order derivative value is I′ ij , the first-order derivative value is the first-order derivative value of the zero-crossing point, and the candidate peak (I ij ,m / z ij ) meets the following conditions:
[0030]
[0031] In the formula, I thresholdj represents the intensity threshold of the jth segment, I″ threshold j is the second-order derivative threshold of the jth segment, I′ (i+1)j is the ion intensity I at the i+1th sampling point in the jth segment (i+1)j The first-order derivative I′ (i+1)j .
[0032] Beneficial effects: The present invention overcomes the problem that many noise peaks are easily detected when only relying on the signal-to-noise ratio (SNR) threshold parameter for peak detection. At the same time, the method of the present invention can avoid the strong interference of noise peaks on the peak-finding process. By introducing a segmented first-order downward zero-crossing detection method and combining the second-order derivative with the segmented intensity threshold to determine the candidate peak, the signal-to-noise ratio (SNR) threshold is finally used to determine the final target peak. In this process, the signal-to-noise ratio (SNR) threshold can directly obtain the minimum signal-to-noise ratio (SNR) value in the mass spectrometry system without introducing noise peaks, thereby ensuring that the position of the mass spectrum peak in the original data is accurately detected. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a schematic diagram of the process of the present invention;
[0034] Figure 2 A mass spectrum of the position of the target peak detected by the method of the present invention;
[0035] Figure 3 for Figure 2 Local mass spectrum of the two overlapping peaks 16 and 17. DETAILED DESCRIPTION
[0036] The technical solution of the present invention is now further described in conjunction with the accompanying drawings and embodiments.
[0037] Now combined Figure 1 , the steps of a time-of-flight mass spectrometry peak detection method proposed in the present invention are further explained.
[0038] Step 1: Obtain the entire nucleic acid mass spectrometry data. For the i-th sampling point i∈{1,2,3,…,n}, the nucleic acid mass spectrometry data corresponding to the sampling point is expressed as (I i ,m / z i ), where I i is the ion intensity, m / z i is the mass-to-charge ratio of the ion; the entire nucleic acid mass spectrum data is segmented according to the interval length num, and the intensity threshold and second-order derivative threshold of each segment are calculated according to formula (1) and formula (2). For the jth segment, its intensity threshold is expressed as I threshold j , the second-order derivative threshold is denoted as I″ threshold j ; Wherein, the interval length num is a positive integer, and the segmentation requirement is: a peak should not be divided into two segments during the segmentation process, and the interval length is adaptively adjusted with the total length of the mass spectrum data, with a value range of 200-500, preferably 300;
[0039]
[0040]
[0041] In the formula, is the average ion intensity in the jth segment, σ j is the standard deviation of the ion intensity in the jth segment; c is the signal intensity threshold coefficient c∈{1,2,3}, preferably 2; d is the specific coefficient with a value of 2; H j and W j is the peak height and half-height half-width of the characteristic peak with the smallest peak height in the jth segment. When it is difficult to evaluate H j and W j The value can be 0; i Indicates ion intensity, also known as ion abundance, m / z i represents the mass-to-charge ratio of the ion, and I i The ion intensity corresponds one to one, i represents the sampling point i∈{1,2,3,…,n};
[0042] Step 2: Solve the first-order derivative data of each sampling point piecewise, where for the i-th sampling point i∈{1,2,3,…,n}, the first-order derivative data corresponding to the sampling point is expressed as (I′ i ,m / z i );For the i-th sampling point in the j-th segment, i∈{2,3,…,n-1}, its first-order derivative is expressed as I′ ij , the mathematical expression is:
[0043]
[0044] In the formula, I i+1j represents the ion intensity of the i+1th sampling point in the jth segment, I i-1j represents the ion intensity of the i-1th sampling point in the jth segment;
[0045] The first-order derivative of the ion intensity at the first sampling point is obtained by solving the following formula:
[0046] I′1=I2-I1 (4)
[0047] The first-order derivative of the ion intensity at the last sampling point is obtained by solving the following formula:
[0048] I′ n =I n -I n-1 (5)
[0049] Step 3: Use the unweighted moving average smoothing algorithm, triangle smoothing algorithm or Savitzky-Golay smoothing algorithm to smooth the first-order derivative signal (I′ i ,m / z i ) is used for denoising and smoothing, and the triangle smoothing algorithm is used first. Five points are selected, and the weighting factors are (1, 2, 3, 2, 1):
[0050]
[0051] In the formula, S k is the first-order ion intensity after smoothing and denoising, I′ k-2 , I′ k-1 , I′ k , I′ k+1 , I′ k+2 is the original first-order ion conductivity, k∈{3,…,n-2}, and the remaining four first-order ion conductivity intensities at the front and rear ends that are not smoothed can be replaced by zero or the original first-order ion conductivity.
[0052] Step 4: Find the first-order derivative value of the zero-crossing point downward, and record the point corresponding to the first-order derivative value of the zero-crossing point (I i ,m / z i ) is recorded as the possible peak position, and the ion intensity threshold I threshold and the second-order derivative threshold I″ threshold The candidate peaks are screened out, and the candidate peaks screened out are represented as (I ij ,m / z ij ), the corresponding first-order derivative value is I′ ij , the first-order derivative value is the first-order derivative value of the zero-crossing point, and the candidate peak (I ij ,m / z ij ) meets the following conditions:
[0053] and
[0054] In the formula, represents the intensity threshold of the jth segment, is the second-order derivative threshold of the jth segment, I′ (i+1)j is the ion intensity I at the i+1th sampling point in the jth segment (i+1)j The first-order derivative I′ (i+1)j Step 5: Based on the characteristics of time-of-flight nucleic acid mass spectrometry, a specific signal-to-noise ratio (SNR) threshold is used to further screen candidate peaks to determine target peaks, and the signal-to-noise ratio (SNR) threshold is preferably 5.
[0055] The above method steps are now described through a specific embodiment.
[0056] The method of the present invention is now used to perform peak detection on the real flight time nucleic acid mass spectrometry data collected. The horizontal axis m / z is the mass-to-charge ratio, the vertical axis is the I intensity, and the total number of data points is 11560. The interval length num is set to 300, the entire flight time spectrum data is divided into 36 segments, and the signal-to-noise ratio SNR threshold is selected as 5. The final detection result is as follows Figure 2As shown, there are 20 target peaks detected, of which peaks 3 and 4, peaks 16 and 17, and peaks 18, 19, and 20 are overlapping peaks. In order to clearly show the positions of the overlapping peaks, a small mass spectrum signal of peaks 16 and 17 is selected for detection using the method of the present invention, and the results are shown in FIG. Figure 3 shown.
Claims
1. A time-of-flight mass spectrometry peak detection method, characterized in that: The following steps are involved: Step 1: Obtain the entire nucleic acid mass spectrometry data. For the i-th sampling point i∈{1,2,3,…,n}, the nucleic acid mass spectrometry data corresponding to the sampling point is expressed as (I i ,m / z i ), where I i is the ion intensity, m / z i is the mass-to-charge ratio of the ion; the entire nucleic acid mass spectrum data is segmented according to the interval length num; Step 2: Solve to obtain the first-order derivative data of each sampling point, where for the i-th sampling point i∈{1,2,3,…,n}, the first-order derivative data corresponding to the sampling point is expressed as (I′ i ,m / z i ); Step 3: Perform denoising and smoothing on the first-order derivative data obtained in step 2 to obtain smoothed nucleic acid mass spectrometry data, where the smoothed nucleic acid mass spectrometry data corresponding to the i-th sampling point i∈{1,2,3,…,n} is expressed as (S i ,m / z i ); Step 4: Find the first-order derivative value of the zero-crossing point downward, and segment the smoothed nucleic acid mass spectrometry data according to the ion intensity threshold I in each segment. threshold and the second-order derivative threshold I″ threshold , the first-order derivative value of the zero-crossing point and its corresponding nucleic acid mass spectrometry data are screened to select candidate peaks; Step 5: Use the signal-to-noise ratio (SNR) threshold to further screen the candidate peaks and determine the target peak; In step 4, for the jth segment, its intensity threshold is represented by I thresholdj , calculated by the following formula: In the formula, is the average ion intensity in the jth segment, σ j is the standard deviation of ion intensity in the jth segment; c is the signal intensity threshold coefficient; The second-order derivative threshold is denoted as I″ thresholdj , calculated by the following formula: In the formula, d is the specific coefficient, H j and W j is the peak height and half-height half-width of the characteristic peak with the smallest peak height in the jth segment; In step 4, the ion intensity threshold I threshold and the second-order derivative threshold I″ threshold , the first-order derivative value of the zero-crossing point and the corresponding nucleic acid mass spectrum data are screened to select candidate peaks; the specific operations include: The candidate peaks selected are represented as (I ij ,m / z ij ), the corresponding first-order derivative value is I′ ij , the first-order derivative value is the first-order derivative value of the zero-crossing point, and the candidate peak (I ij ,m / z ij ) meets the following conditions: In the formula, represents the intensity threshold of the jth segment, is the second-order derivative threshold of the jth segment, I′ (i+1)j is the ion intensity I at the i+1th sampling point in the jth segment (i+1)j The first-order derivative I′ (i+1)j .
2. A time-of-flight mass spectrometry peak detection method according to claim 1, characterized in that: In step 2, the first-order derivative data of each sampling point is solved according to the following formula: For the i-th sampling point i∈{2,3,…,n-1}, its first-order derivative data is represented by I′ ij , the mathematical expression is: In the formula, I i+1j represents the ion intensity of the i+1th sampling point in the jth segment, I i-1j represents the ion intensity of the i-1th sampling point in the jth segment; For the first sampling point, its first-order derivative data is expressed as: I′1=I2-I1 (4) In the formula, I2 represents the ion intensity at the second sampling point, and I1 represents the ion intensity at the first sampling point; For the nth sampling point, its first-order derivative data is expressed as: I′ n =I n -I n-1 (5) In the formula, I n Indicates the ion intensity at the nth sampling point, I n-1 Represents the ion intensity of the n-1th sampling point.
3. A time-of-flight mass spectrometry peak detection method according to claim 1, characterized in that: In step 3, a triangle smoothing algorithm is used to perform noise reduction and smoothing on the first-order derivative data obtained in step 2.
