NUCLEIC ACID MASS SPECTRUM NUMERICAL PROCESSING METHOD

20220383979 · 2022-12-01

    Inventors

    Cpc classification

    International classification

    Abstract

    A numerical processing method for a nucleic acid mass spectrum, including: step S1, recalibrating a single mass spectrum, for each detection point of a sample, obtaining a plurality of mass spectra corresponding to different positions of the detection point, each mass spectrum being recalibrated by using anchor peaks with an expected mass-to-charge ratio; step S2, synthesizing the mass spectra, where the mass spectra corresponding to the different positions of the detection point are synthesized into a unitary mass spectrum of the detection point; step S3: performing wavelet filtering on the unitary mass spectrum to eliminate high-frequency noise and a baseline through a wavelet-based digital filter; and step S4: extracting a peak feature value, performing peak fitting to obtain a fitted curve of the unitary mass spectrum, and obtaining a peak height, a peak width, a peak area, a mass offset, and a signal-noise ratio based on the fitted curve.

    Claims

    1. A numerical processing method for a nucleic acid mass spectrum, comprising: step S1, recalibrating a single mass spectrum, for each detection point of a sample, obtaining a plurality of mass spectra corresponding to different positions of the detection point, wherein each mass spectrum of the plurality of mass spectra is recalibrated by using a group of anchor peaks with an expected mass-to-charge ratio; step S2, synthesizing the plurality of mass spectra, wherein on a basis of the step S1, the plurality of mass spectra corresponding to the different positions of the detection point are synthesized into a unitary mass spectrum of the detection point; step S3: performing wavelet filtering on the unitary mass spectrum of the detection point, on a basis of the step S2, to eliminate high-frequency noise and a baseline through a wavelet-based digital filter; and step S4: extracting a peak feature value, performing peak fitting to obtain a fitted curve of the unitary mass spectrum of the detection point on a basis of the step S3, and obtaining a peak height, a peak width, a peak area, a mass offset, and a signal-noise ratio based on the fitted curve of the unitary mass spectrum of the detection point.

    2. The numerical processing method for the nucleic acid mass spectrum according to claim 1, wherein in the step S1, recalibrating the single mass spectrum comprises: step S11: selecting a group of reference peaks, wherein selecting a group of reference peaks comprises selecting the group of reference peaks from all possible expected peaks according to following criteria: 1, a peak value of a reference peak being within a mass range of a specific interval; 2, no reference peak, adjacent to the reference peak, existing in the mass range of the specific interval; step S12, positioning a peak, and applying a weight matrix convolution filter with a width of 9 to the single mass spectrum, wherein the weight matrix convolution filter is: (−4, 0, 1, 2, 2, 2, 1, 0, −4), for a given point of the single mass spectrum, an intensity value of the given point after applying the weight matrix convolution filter is equal to a weighted sum of 9 values around the given point, and is expressed by a following formula: y i = .Math. k = 1 9 I k y k + i decomposing the single mass spectrum into a plurality of specific point intervals based on filtered intensity values, identifying a local noise for each specific point interval, and identifying a peak with an intensity greater than or equal to four times the local noise and greater than or equal to a global minimum value as a reference peak, wherein the global minimum value is: 0.01*a maximum local maximum value; step S13: fitting a peak of the single mass spectrum; step S14: finally selecting an anchor peak, for a detected peak list, finding a cut-off signal-noise ratio, matching a peak in the detected peak list with a list of the reference peaks, and only selecting a peak whose mass is within a specific range of the reference peak and whose signal-noise ratio is higher than the cut-off signal-noise ratio; step S15: performing a recalibration operation, calculating a calibration coefficient by a nonlinear fitting method in combination with the anchor peak and an expected mass of the anchor peak, wherein a mapping function between a mass spectrometer and mass-to-charge ratio is a Bruker function in a form of m=A(√{square root over (Bt+C)}−1).sup.2.

    3. The numerical processing method for the nucleic acid mass spectrum according to claim 1, wherein the step S2 comprises: synthesizing the plurality of mass spectra by using a self-weighted average method, selecting an optimal mass spectrum with the most anchor peaks from the plurality of mass spectra in a case where the plurality of mass spectra have different calibration coefficients; initializing a mass spectrum synthesized by performing the self-weighted average method on the plurality of mass spectra with the optimal mass spectrum; summing an absolute intensity or a square intensity of a mass spectrum with an absolute intensity or a square intensity of another mass spectrum only in a case where a calibration coefficient of the mass spectrum and a calibration coefficient of the optimal spectrum meet a condition.

    4. The numerical processing method for the nucleic acid mass spectrum according to claim 1, wherein, the step S3 comprises: performing wavelet filtering on the unitary mass spectrum of the detection point to eliminate the high-frequency noise and the baseline to obtain a filtered mass spectrum, and then performing another round of recalibration on the filtered mass spectrum and adjusting a mass-to-charge ratio value accordingly.

    5. The numerical processing method for the nucleic acid mass spectrum according to claim 1, wherein the step S4 comprises: step S41: fitting a peak of the unitary mass spectrum to obtain a fitted peak; step S42: recording following features: 1, a height above a baseline of a center of the fitted peak, H.sub.f, 2, a fitting line width, λ.sub.f, 3, a peak offset, which is a distance between the center of the fitted peak and a center of an expected peak, δ.sub.f=M.sub.f−M.sub.e, 4, an area A of a region between the fitted peak and the baseline within a range of 4λ.sub.f, 5, a signal-noise ratio, SNR=H.sub.f/N(M.sub.f), 6, an area variance, V=A/SNR, 7, a fitting area difference Δ, a square root of a sum of a square difference between a fitted intensity and a measured intensity.

    6. The numerical processing method for the nucleic acid mass spectrum according to claim 2, wherein in the step S13, steps of fitting a peak comprises: step S131: determining an expected line width; step S132: masking a region of an expected signal within an interval of NN expected line widths, NN being 4; step S133: calculating an average of an intensity y.sub.i of the single mass spectrum within a MMλm interval as an implicit baseline, wherein λm is a smallest estimated line width in the MMλm interval, MM is 80, and in a masked region of the MMλm interval, a value of the intensity y.sub.i is provided by linear interpolation; step S134: calculating an effective value of a signal-baseline operation as a noise level; step S135: masking a point, and further masking a point, having a signal-noise ratio, which is calculated as a ratio of the peak height to a noise, greater than a ratio given value and a noise greater than a noise given value, in a peak region; step S136, determining a region having specific estimated line widths of each peak as a fitted region, and in a case of no overlapping peaks, fitting a single Gaussian peak by Levenberg-Marquardt algorithm to find specified parameters to minimize a tuning function.

    7. The numerical processing method for the nucleic acid mass spectrum according to claim 3, wherein the self-weighted average method is described by using a following equation: I i _ = .Math. j = 1 n I ij 2 .Math. j = 1 n .Math. "\[LeftBracketingBar]" I ij .Math. "\[RightBracketingBar]" , wherein n is a count of the plurality of mass spectra, Ī.sub.i is an average intensity of mass i; I.sub.ij is an intensity of the mass i from a j-th mass spectrum.

    8. The numerical processing method for the nucleic acid mass spectrum according to claim 6, wherein in the step S131, the expected line width determined is described by a following equation:
    λ.sub.e=L.sub.A+L.sub.B.Math.M wherein L.sub.A and L.sub.B are default parameters, and M is a given peak value.

    9. The numerical processing method for the nucleic acid mass spectrum according to claim 6, wherein the tuning function in the step S136 is described by a following equation: χ 2 = Σ [ y i - H f .Math. exp [ - ( M f - m i λ f ) 2 ] σ i ] 2 wherein a sum is obtained by summing all {y.sub.i, m.sub.i} from a specified interval, H.sub.f is a fitting height above the baseline corresponding to a point M.sub.f; a parameter M.sub.f represents a fitting mass, a parameter λ.sub.f represents a fitting line width, and σ.sub.i is a certain parameter according to a given condition.

    10. The numerical processing method for the nucleic acid mass spectrum according to claim 2, wherein the step S2 comprises: synthesizing the plurality of mass spectra by using a self-weighted average method, selecting an optimal mass spectrum with the most anchor peaks from the plurality of mass spectra in a case where the plurality of mass spectra have different calibration coefficients; initializing a mass spectrum synthesized by performing the self-weighted average method on the plurality of mass spectra with the optimal mass spectrum; summing an absolute intensity or a square intensity of a mass spectrum with an absolute intensity or a square intensity of another mass spectrum only in a case where a calibration coefficient of the mass spectrum and a calibration coefficient of the optimal spectrum meet a condition.

    11. The numerical processing method for the nucleic acid mass spectrum according to claim 10, wherein in the step S13, steps of fitting a peak comprises: step S131: determining an expected line width; step S132: masking a region of an expected signal within an interval of NN expected line widths, NN being 4; step S133: calculating an average of an intensity y.sub.i of the single mass spectrum within a MMλm interval as an implicit baseline, wherein λm is a smallest estimated line width in the MMλm interval, MM is 80, and in a masked region of the MMλm interval, a value of the intensity y.sub.i is provided by linear interpolation; step S134: calculating an effective value of a signal-baseline operation as a noise level; step S135: masking a point, and further masking a point, having a signal-noise ratio, which is calculated as a ratio of the peak height to a noise, greater than a ratio given value and a noise greater than a noise given value, in a peak region; step S136, determining a region having specific estimated line widths of each peak as a fitted region, and in a case of no overlapping peaks, fitting a single Gaussian peak by Levenberg-Marquardt algorithm to find specified parameters to minimize a tuning function.

    12. The numerical processing method for the nucleic acid mass spectrum according to claim 2, wherein the step S3 comprises: performing wavelet filtering on the unitary mass spectrum of the detection point to eliminate the high-frequency noise and the baseline to obtain a filtered mass spectrum, and then performing another round of recalibration on the filtered mass spectrum and adjusting a mass-to-charge ratio value accordingly.

    13. The numerical processing method for the nucleic acid mass spectrum according to claim 12, wherein in the step S13, steps of fitting a peak comprises: step S131: determining an expected line width; step S132: masking a region of an expected signal within an interval of NN expected line widths, NN being 4; step S133: calculating an average of an intensity y.sub.i of the single mass spectrum within a MMλm interval as an implicit baseline, wherein λm is a smallest estimated line width in the MMλm interval, MM is 80, and in a masked region of the MMλm interval, a value of the intensity y.sub.i is provided by linear interpolation; step S134: calculating an effective value of a signal-baseline operation as a noise level; step S135: masking a point, and further masking a point, having a signal-noise ratio, which is calculated as a ratio of the peak height to a noise, greater than a ratio given value and a noise greater than a noise given value, in a peak region; step S136, determining a region having specific estimated line widths of each peak as a fitted region, and in a case of no overlapping peaks, fitting a single Gaussian peak by Levenberg-Marquardt algorithm to find specified parameters to minimize a tuning function.

    14. The numerical processing method for the nucleic acid mass spectrum according to claim 3, wherein the step S3 comprises: performing wavelet filtering on the unitary mass spectrum of the detection point to eliminate the high-frequency noise and the baseline to obtain a filtered mass spectrum, and then performing another round of recalibration on the filtered mass spectrum and adjusting a mass-to-charge ratio value accordingly.

    15. The numerical processing method for the nucleic acid mass spectrum according to claim 14, wherein the self-weighted average method is described by using a following equation: I i _ = .Math. j = 1 n I ij 2 .Math. j = 1 n .Math. "\[LeftBracketingBar]" I ij .Math. "\[RightBracketingBar]" , wherein n is a count of the plurality of mass spectra, Ī.sub.i is an average intensity of mass i; I.sub.ij is an intensity of the mass i from a j-th mass spectrum.

    16. The numerical processing method for the nucleic acid mass spectrum according to claim 2, wherein the step S4 comprises: step S41: fitting a peak of the unitary mass spectrum to obtain a fitted peak; step S42: recording following features: 1, a height above a baseline of a center of the fitted peak, H.sub.f, 2, a fitting line width, λ.sub.f, 3, a peak offset, which is a distance between the center of the fitted peak and a center of an expected peak, δ.sub.f=M.sub.f−M.sub.e, 4, an area A of a region between the fitted peak and the baseline within a range of 4λ.sub.f, 5, a signal-noise ratio, SNR=H.sub.f/N(M.sub.f), 6, an area variance, V=A/SNR, 7, a fitting area difference Δ, a square root of a sum of a square difference between a fitted intensity and a measured intensity.

    17. The numerical processing method for the nucleic acid mass spectrum according to claim 16, wherein in the step S13, steps of fitting a peak comprises: step S131: determining an expected line width; step S132: masking a region of an expected signal within an interval of NN expected line widths, NN being 4; step S133: calculating an average of an intensity y.sub.i of the single mass spectrum within a MMλm interval as an implicit baseline, wherein λm is a smallest estimated line width in the MMλm interval, MM is 80, and in a masked region of the MMλm interval, a value of the intensity y.sub.i is provided by linear interpolation; step S134: calculating an effective value of a signal-baseline operation as a noise level; step S135: masking a point, and further masking a point, having a signal-noise ratio, which is calculated as a ratio of the peak height to a noise, greater than a ratio given value and a noise greater than a noise given value, in a peak region; step S136, determining a region having specific estimated line widths of each peak as a fitted region, and in a case of no overlapping peaks, fitting a single Gaussian peak by Levenberg-Marquardt algorithm to find specified parameters to minimize a tuning function.

    18. The numerical processing method for the nucleic acid mass spectrum according to claim 3, wherein the step S4 comprises: step S41: fitting a peak of the unitary mass spectrum to obtain a fitted peak; step S42: recording following features: 1, a height above a baseline of a center of the fitted peak, H.sub.f, 2, a fitting line width, λ.sub.f, 3, a peak offset, which is a distance between the center of the fitted peak and a center of an expected peak, δ.sub.f=M.sub.f−M.sub.e, 4, an area A of a region between the fitted peak and the baseline within a range of 4λ.sub.f, 5, a signal-noise ratio, SNR=H.sub.f/N(M.sub.f), 6, an area variance, V=A/SNR, 7, a fitting area difference Δ, a square root of a sum of a square difference between a fitted intensity and a measured intensity.

    19. The numerical processing method for the nucleic acid mass spectrum according to claim 18, wherein the self-weighted average method is described by using a following equation: I i _ = .Math. j = 1 n I ij 2 .Math. j = 1 n .Math. "\[LeftBracketingBar]" I ij .Math. "\[RightBracketingBar]" , wherein n is a count of the plurality of mass spectra, Ī.sub.i is an average intensity of mass i; I.sub.ij is an intensity of the mass i from a j-th mass spectrum.

    20. The numerical processing method for the nucleic acid mass spectrum according to claim 4, wherein the step S4 comprises: step S41: fitting a peak of the unitary mass spectrum to obtain a fitted peak; step S42: recording following features: 1, a height above a baseline of a center of the fitted peak, H.sub.f, 2, a fitting line width, λ.sub.f, 3, a peak offset, which is a distance between the center of the fitted peak and a center of an expected peak, δ.sub.f=M.sub.f−M.sub.e, 4, an area A of a region between the fitted peak and the baseline within a range of 4λ.sub.f, 5, a signal-noise ratio, SNR=H.sub.f/N(M.sub.f), 6, an area variance, V=A/SNR, 7, a fitting area difference Δ, a square root of a sum of a square difference between a fitted intensity and a measured intensity.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0019] FIG. 1: mass spectrum before filtering;

    [0020] FIG. 2: mass spectrum after filtering;

    [0021] FIG. 3: comparison diagram before and after peak fitting.

    DETAILED DESCRIPTION

    [0022] The content of the present disclosure is further described below with reference to the accompanying drawing and embodiments.

    [0023] The present disclosure relates to a numerical processing method for a nucleic acid mass spectrum, and the numerical processing method comprises the following steps:

    [0024] step S1: recalibrating a single mass spectrum. For a sample, a plurality of mass spectra (e.g., n mass spectra, and typically n=5) corresponding to different positions of a detection point of the sample. Each mass spectrum is actually a sum of the mass spectra obtained by a plurality of times of laser excitation (e.g., m times, and typically m=20). An initial coefficient of the mass spectrum is generated based on the assumption that the mapping function between the mass spectrometer and m/z (mass-to-charge ratio) is a quadratic function (a form of the function is: m=At.sup.2+Bt+C). Before summing the mass spectra, the recalibration of the mass spectra is needed. The process of the recalibration is accomplished by matching a group of special identified peaks (called anchor peaks) to the expected mass thereof and follows the following steps:

    [0025] In step S11: selecting a candidate reference peak, and selecting a group of clean reference peaks from all possible expected peaks according to the following criteria:

    [0026] 1. A peak value of a reference peak must be within a mass range of 4000 Da to 9000 Da.

    [0027] 2. The peak value has no adjacent reference peak within the mass range defined by the mass +/− resolution.

    [0028] In step S12, positioning a peak, and applying a weight matrix convolution filter with a width of 9 to the mass spectrum. The matrix is preferably: (−4, 0, 1, 2, 2, 2, 1, 0, −4). For a given point of the mass spectrum, an intensity value of the given point after applying the weight matrix convolution filter is equal to a weighted sum of 9 values around the given point, and is expressed by a following formula:

    [00003] y i = .Math. k = 1 9 I k y k + i

    [0029] Based on the filtered intensity values, a small sliding window (n=+/−3) is used to identify a local maximum. Then, the whole mass spectrum is divided into a plurality of intervals and each interval has 500 points. For each interval, the local noise is identified as 33% of the local maximum within the surrounding window having 1500 points (+/− an interval). A peak with an intensity greater than or equal to four times the local noise and greater than or equal to a global minimum value is identified as a candidate peak, the global minimum value is preferably 0.01 times a maximum local maximum value (namely, 0.01*the maximum local maximum value). For an identified peak list, a peak is removed, where a reference peak adjacent to the peak exists within a certain range, and the peak has a SNR (ratio of the filtered intensity value to the local noise)≤2 and has a mass value outside the range of the pre-specified candidate reference peaks. Finally, the peak value index is adjusted based on the original intensity. The mass spectrum before and after the application of the filter may be referred to the FIG. 1 and FIG. 2.

    [0030] In the step S13, fitting a peak of the mass spectrum, as shown in FIG. 3, the specific implementation steps are as follows:

    [0031] Step S131: determining an expected line width. The expected line width is determined by using the following formula:

    [0032] λ.sub.e=L.sub.A+L.sub.B.Math.M, where L.sub.A and L.sub.B are the default parameters (the default value of L.sub.A is 2.5, and the default value of L.sub.B is 0.0005), and M is the given peak value (Da).

    [0033] Step S132: masking a region of an expected signal within an interval of NN expected line widths, NN preferably being 4.

    [0034] Step S133: calculating an average of an intensity y.sub.i of the mass spectrum within a MMλ.sub.m interval as an implicit baseline, where λ.sub.m is the smallest estimated line width in this MMλ.sub.m interval, and MM is preferably 80, and in the masked region of this MMλ.sub.m interval, the intensity y.sub.i is provided by linear interpolation.

    [0035] Step S134: calculating the effective value (Root Mean Square, RMS) of the (signal-baseline) operation as the noise level.

    [0036] Step S135: further masking a point, having a SNR(SNR calculated as the ratio of the peak height to the noise) great than 5 and a noise greater than 1, in the peak region.

    [0037] Step S136: determining a region within four estimated line widths of each peak as a fitted region, and in a case of no overlapping peaks, fitting a single Gaussian peak by Levenberg-Marquardt algorithm to find parameters M.sub.f (fitting mass) and λ.sub.f (fitting line width), so that the tuning function (prototype of the function is shown below) is minimized

    [00004] χ 2 = Σ [ y i - H f .Math. exp [ - ( M f - m i λ f ) 2 ] σ i ] 2

    [0038] The sum is obtained by summing all {y.sub.i, m.sub.i} from the specified interval, H.sub.f is the fitting height above the baseline corresponding to the point M.sub.f. For a point in the region with a distance from the peak center within 0.5λ.sub.e, σ.sub.i of the point is set equal to 1, and for a point in the region with a distance from the peak center beyond 0.5λ.sub.e, σ.sub.i of the point is set to 0.2 or 0.4.

    [0039] Step S14: finally selecting an anchor peak, for a detected peak list, finding a cut-off SNR (i.e., a minimum SNR), matching a peak in the detected peak list with a list of candidate reference peaks, and only selecting a peak whose mass is within a +/−25 Da of the candidate reference peak and whose SNR is higher than the cut-off SNR.

    [0040] Step S15: performing a recalibration, calculating a calibration coefficient by a nonlinear fitting method in combination with the anchor peak obtained and an expected mass of the anchor peak. Here, it is assumed that a mapping function between a mass spectrometer and m/z (mass-to-charge ratio) is a Bruker function in a form of m=A(√{square root over (Bt+C)}−1).sup.2.

    [0041] In the step S2, synthesizing the plurality of mass spectra, that is to say, on a basis of the step S1, the plurality of mass spectra corresponding to different positions of the detection point are synthesized into one mass spectrum of the detection point. The method of synthesizing the plurality of mass spectra is a “self-weighted average” method that can be described by using the following equation:

    [00005] I i _ = .Math. j = 1 n I ij 2 .Math. j = 1 n .Math. "\[LeftBracketingBar]" I ij .Math. "\[RightBracketingBar]"

    where n is a count of the plurality of mass spectra, Ī.sub.i is the average intensity of mass i; I.sub.ij is an intensity of the mass i from a j-th mass spectrum.

    [0042] When the mass spectra have different calibration coefficients, the optimal mass spectrum with the most anchor peaks is selected from the mass spectra. The summed mass spectrum (that is, the mass spectrum obtained by performing the “self-weighted average” method on the plurality of mass spectra) is initialized with the optimal mass spectrum. Only when the calibration coefficient of a mass spectrum and the calibration coefficient of the optimal mass spectrum meet the condition (A should change within 1%; B should change within 10%; C should change within 20 Da), the absolute intensity or the square intensity of the mass spectrum can be summed with the absolute intensity or the square intensity of another mass spectrum.

    [0043] Step S3, performing wavelet filtering, the wavelet filtering being performed on the synthesized mass spectrum to eliminate the high-frequency noise and the baseline, and then, performing another round of recalibration on the filtered mass spectrum. After this round of recalibration, assigning a new coefficient A, a new coefficient B, a new coefficient C to the synthesized mass spectrum and adjusting the m/z (mass-to-charge ratio) value accordingly.

    [0044] Step S4, extracting a peak feature value, as shown in FIG. 3, and the fitting process follows the following steps: [0045] step S41: fitting a peak, the same as the step S13; [0046] step S42: recording following features after the fitting is successful:

    [0047] 1, a height above a baseline of a center of a fitted peak, H.sub.f,

    [0048] 2, a fitting line width λ.sub.f,

    [0049] 3, a peak offset (a distance between the center of the fitted peak and a center of an expected peak), δ.sub.f=M.sub.f−M.sub.e,

    [0050] 4, an area A of a region between the fitted peak and the baseline within a range of 4λ.sub.f,

    [0051] 5, a signal-noise ratio, SNR=H.sub.f/N(M.sub.f),

    [0052] 6, an area variance, V=A/SNR

    [0053] 7, a fitting area difference Δ, a square root of a sum of a square difference between a fitted intensity and a measured intensity

    [0054] The numerical processing method for the nucleic acid mass spectrum according to the present disclosure can extract the reliable feature values before gene analysis, and is a numerical processing method for a nucleic acid mass spectrum aiming at ameliorating the limitation of the prior art and improving the accuracy of nucleotide detection; in addition, the method can improve the reliability of the acquired nucleic acid mass spectrum data.