Method, medium, and system for identifying samples of interest through vector comparison
By using a vector comparison method to quickly identify the similarity between samples and compounds, the problem of long analysis time in mass spectrometry devices is solved, enabling rapid and effective sample identification. This method is applicable to mass spectrometry, IS, and GS devices.
Patent Information
- Application Number
- CN202180083539.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-13
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2041-10-13
AI Technical Summary
Existing mass spectrometry devices take a long time to analyze samples, making it difficult to quickly determine the similarity between samples and known compounds. Furthermore, IS and GS devices are complex, expensive, and difficult to operate.
By comparing samples of interest with a known library of compounds, multiple spectra are generated using a mass spectrometer and decomposed into bins. The similarity values between the spectral bins are calculated to quickly identify the similarity between samples and compounds. A vector comparison method is used to simplify the processing.
It enables rapid and efficient determination of the similarity between samples and compounds, reduces computational and time costs, is suitable for devices with limited hardware resources, and is applicable to binary decision-making and preliminary determination.
Smart Images

Figure CN116868272B_ABST
Abstract
Description
[0001] Cross-references to related applications
[0002] This application claims the benefit of U.S. Provisional Patent Application No. 63 / 091,069, filed October 13, 2020. The entire disclosure of that application is incorporated herein by reference. Background Technology
[0003] Mass spectrometry (MS) and liquid chromatography-mass spectrometry (LCMS) devices are used to analyze chemical samples to study their properties, quality, or structure. Other types of devices exist for sample analysis, including infrared spectrometers and gas spectrometers. While IS and GS devices may provide more detailed information than MS devices, they tend to be more complex, expensive, and difficult to operate. Therefore, they may require significantly more time to accurately analyze samples. Summary of the Invention
[0004] Exemplary implementations provide methods, media, and systems for comparing samples of interest with a library of known compounds to quickly determine the similarity between the sample and the compounds in the library.
[0005] According to a first embodiment, the system receives a sample of interest at a mass spectrometry (MS) device for analysis. The MS device can be used to analyze the sample of interest, wherein the analysis involves generating multiple spectra of the sample of interest. These multiple spectra can be decomposed into bins (e.g., based on spectral intensity values).
[0006] The system can access a sample library containing ionization information for known compounds. For each known compound in the library, multiple key peaks for that compound can be retrieved. The key peaks of the corresponding compound can be compared with a set of spectral bins from the sample of interest. This may involve representing the key peaks of the corresponding compound and the set of spectral bins as vectors, calculating a similarity value corresponding to the angular difference between the vectors, and comparing that similarity value with a similarity threshold.
[0007] In some implementations, spectral binning can be the most prominent spectral binning from the sample of interest. In other implementations, the system may avoid performing binning on the entire spectrum—instead, it may identify any peaks in the spectrum and then select a region around that peak within a predefined or dynamically selected margin. This selected region can then serve as a bin for comparison purposes.
[0008] After comparing the similarity value with a similarity threshold, the system can identify samples of interest that are similar to the corresponding compounds (if the similarity value exceeds the similarity threshold). The system can then respond to this identification by outputting an indication that the sample of interest is similar to the corresponding compound.
[0009] Similarity is determined simply by comparing a relatively small number of key peaks from the sample of interest with corresponding peaks from compounds in the library. Therefore, the system can determine similarity faster and more efficiently than if it were attempting to make a definitive identification of the samples.
[0010] One difference between identifying similarity and definitively identifying a sample is that identifying similarity is not probabilistic. In other words, the system can distinguish whether a sample is similar to a compound from a library, but it doesn't necessarily determine the degree of similarity between the two compounds (although this functionality could be added, it would increase computational and time costs). For example, the system can identify the similarity between a sample and a cannabinoid, but many non-cannabinoid compounds may still be similar to cannabinoids. Therefore, the system doesn't give the probability that the sample is a cannabinoid; it only indicates that the compound is similar to a cannabinoid. Nevertheless, similarity is often sufficient to make a preliminary determination for further follow-up work, or to make a decision when speed is critical.
[0011] Furthermore, since similarity is calculated as the angle difference between two vectors, it can be determined based on a simple equation with a relatively small number of inputs, thereby further improving processing efficiency and speed. Because n-quality / intensity values can be readily represented in an n-dimensional vector space, relying on the angle between sample and library vectors is an efficient way to quickly determine similarity.
[0012] According to the second implementation plan,
[0013] According to the third embodiment, the multiple spectra can consist of four spectra. Although the embodiment can be implemented with more or fewer spectra, four spectra provide a good balance between processing efficiency and specificity. Therefore, similarity can be determined quickly and with good accuracy.
[0014] According to the fourth implementation scheme, as input from the user, the system can receive a user-defined number of most significant bins for comparison with key peaks. This adjustability allows the user to select more peaks (for improved accuracy) or fewer peaks (for improved processing efficiency) for comparison.
[0015] According to the fifth implementation scheme, the system can receive user-defined values as input for a similarity threshold. Based on the user's tolerance for false positives or false negatives, the user therefore has the right to adjust the desired similarity level of the library compounds to be considered a "hit" or "miss" for a sample.
[0016] According to the sixth implementation scheme, the angular difference between vectors can be represented as a cosine similarity value. This provides a particularly fast and simple way to measure the similarity between two samples in the aforementioned context.
[0017] According to the seventh implementation scheme, the bins can be weighted based on the spectral intensity value and / or quality associated with each bin.
[0018] By giving higher masses more weight than lower masses, higher-quality fragments are accounted for more in the final result. Since MS precursors and larger fragments tend to be more reliable and useful measurements (more diagnostic), and since giving particular emphasis to precursors can be helpful, it helps to assign greater importance to higher masses. This can be achieved by applying increased weight directly to higher-quality bins (and / or reducing weight to lower-quality bins), by multiplying the strength of each bin by its mass, and / or by raising the bin strength to a higher power (such as mass). 2 To achieve this.
[0019] By weighting lower-intensity readings so that they are counted more often than others, a situation where a few large peaks dominate the result can be avoided. Typically, there can be a significant drop in intensity after a few large peaks, and the risk is that these large peaks "set the outcome." Other smaller peaks may be overlooked, even if they might contain useful information. One possibility is to boost the intensity values to powers less than one (e.g., taking their square root), thereby compressing the difference between high and low intensities.
[0020] According to the eighth embodiment, the system can receive user-defined binning weights as input. By making the binning weights adjustable, users can customize the process based on their specific datasets (e.g., emphasizing quality weighting if peaks in the sample and / or library tend to be more concentrated in low-quality fragments, or emphasizing lower intensity readings if there is a significant drop in intensity in the sample and / or library data).
[0021] According to the ninth embodiment, a binning of one spectrum from multiple spectra can be weighted more heavily than binning of other spectra from multiple spectra. For example, some voltages may be more informative than others during comparison. Therefore, the system weights low-pressure mass spectra more heavily than higher-pressure mass spectra. In some embodiments, weighting can be performed by first comparing the sample mass spectrum and the library mass spectrum at a first voltage and determining whether the similarity is sufficient to justify processing the remaining spectra. This saves processing resources by performing a comprehensive analysis only on compounds most likely similar to the sample.
[0022] According to the tenth embodiment, for each bin in the binning, the ratio between the intensity of the bin and the intensity of the bin with the highest intensity value can be calculated. Any bin with a ratio lower than an intensity ratio threshold can be filtered out. If library matching is performed on data that has not yet been intensity filtered, vectors for any quality value may be generated. When similarity is determined based on the angle between these vectors, this increases the likelihood of obtaining false positives. Therefore, removing any vectors below a certain threshold (e.g., 5% of the peak intensity of the maximum peak) reduces the false positive rate.
[0023] According to the eleventh implementation plan, the intensity ratio threshold mentioned above can be user-defined and can be received as input. By allowing users to set the threshold, users can accept more or less false positive risk according to application needs.
[0024] Any of the above embodiments can be implemented as instructions stored on a non-transitory computer-readable storage medium and / or embodied as a device having a memory and a processor configured to perform the above actions. Attached Figure Description
[0025] For ease of identification of any particular element or action, one or more of the most effective numbers in the reference numerals refer to the reference numeral that first introduced the element.
[0026] Figure 1 An example of a mass spectrometry system according to an exemplary implementation is shown.
[0027] Figure 2 A user interface for configuring comparison parameters according to one implementation is shown.
[0028] Figure 3A and Figure 3B It is a data flow diagram that depicts how library and sample data are processed according to an implementation plan.
[0029] Figure 4 An example of comparing sample peaks with two different library compounds according to one embodiment is shown.
[0030] Figure 5 An example of a similarity metric based on an implementation scheme is shown.
[0031] Figure 6 An example of a user interface showing comparison results according to one implementation is shown.
[0032] Figure 7A and Figure 7B A user interface is depicted that displays the comparison results of the sample with the first and second compounds from the library.
[0033] Figure 8 A comparison process 800 according to one implementation scheme is shown.
[0034] Figure 9 An exemplary computer system architecture is depicted that can be used to practice the exemplary implementations described herein. Detailed Implementation
[0035] In some cases, precise identification of the sample may not be necessary, as this can be time-consuming. Instead, it may be useful to quickly determine whether the sample being analyzed belongs to a particular class of substances.
[0036] For example, consider a scenario where a bag of white powder is found, and there is doubt about whether it contains any illicit substances. An MS device can accept a sample of the powder, analyze it to determine its chemical composition, and then identify the precise elements that make up the powder. However, this process can take 25-30 minutes, which can be prohibitively long in some cases. Furthermore, at the end of the process, the result might be that the sample is simply sugar or flour, meaning that the time spent analyzing the sample could have been better spent performing other tasks or analyzing other samples. It is more useful to receive a faster, less detailed response (e.g., whether the powder is an opioid) rather than attempting to classify the substance more specifically.
[0037] This ability is useful in a variety of applications. For example, when a surgeon is removing a tumor, knowing whether the surgeon is cutting into healthy or cancerous tissue would be helpful. Spending 25-30 minutes identifying the specific composition of the tissue means the surgeon will not be able to use the results during the operation. On the other hand, obtaining a simple "yes" or "no" answer relatively quickly can be used to guide the surgery and ensure that only unhealthy tissue is removed. Other situations where this ability may be helpful include urine or blood screening for toxicology, food confirmation, speciation, characterization of plant phenotypes, and other applications that require answers in real-time or near real-time. Additional applications may include screening newborn blood against a database of known neonatal diseases and conditions.
[0038] An exemplary implementation accepts samples of interest and analyzes them using a mass spectrometry (MS) device. The analysis results are compared with a library of similar results from known samples, allowing for very rapid binary decisions (e.g., "matches library" or "does not match library").
[0039] More specifically, samples can be analyzed by subjecting them to various voltages in an MS device to break them down into their constituent components. Each voltage produces a different mass spectrum for the sample. The mass spectrum of the sample can then be simplified or digitized by splitting the spectrum into “bins” of different intensities. This allows for the identification of the most prominent peaks in the sample.
[0040] The binned peaks from a sample can be compared to a library of known compounds. In this library, each known compound can be associated with data representing significant peaks in one or more mass spectra. The system can perform various data processing steps (normalization, weighting, etc., described in more detail below) to prepare the sample data and / or library data for comparison. The system can then calculate a similarity value indicating how similar the sample is to one or more compounds in the library. For example, the system can represent the data from the sample and the data from the library as different vectors, and then calculate a cosine similarity value comparing the sample vector to the library vector. The similarity value can be compared to a threshold to determine if the sample is sufficiently similar to a compound in the library. If so, the system outputs a similarity indicator.
[0041] Because of the simplicity of this method, results can be received very quickly even on computing devices with limited hardware resources.
[0042] Furthermore, various parameters controlling the above process can be customized to produce better results. For example, adjustable parameters include the maximum number of peaks to compare between library compounds and samples, weighting of each peak based on its intensity and / or quality, filtering thresholds based on intensity or some other value, a similarity threshold, and the voltage spectrum to emphasize, among other possibilities. Because the system is so highly tunable, it can be configured to operate more efficiently or less efficiently (e.g., by considering fewer or more peaks separately) and filter out more or fewer results (depending on the user's tolerance for false positives).
[0043] It should be noted that although the technology is described below in relation to MS devices, the principles described can also be applied to other types of devices, including IS devices and GS devices.
[0044] The exemplary embodiments described herein provide a technique for identifying samples of interest by comparing ionization data from a sample with a library of known compounds. The system matches compounds from the library file with each sample in real-time or near real-time and reports a score indicating the strength of the match for each compound. Instead of breaking down the sample into elements or molecules, and then...
[0045] For illustrative purposes, Figure 1 This is a schematic diagram of a system that can be used in conjunction with the techniques described in this article. Although Figure 1 A specific type of apparatus in a particular LCMS configuration has been described, but those skilled in the art will understand that different types of apparatus (e.g., MS, tandem MS, etc.) may also be used in conjunction with this disclosure. It should also be noted that when this disclosure refers to the modified term “MS apparatus,” this term may cover any part of the system used in conjunction with mass spectrometer 112 (such as liquid chromatography 104).
[0046] Sample 102 is injected into liquid chromatography 104 via injector 106. Pump 108 can pump the sample through column 110 to separate the mixture into component fractions based on the retention time through the column.
[0047] The output from the chromatographic column is fed into mass spectrometer 112 for analysis. Initially, the sample is desolvated and ionized by desolvation / ionization device 114. Desolvation can be any desolvation technique, including, for example, a heater, a gas, a heater combined with a gas, or other desolvation techniques. Ionization can be achieved using any ionization technique, including, for example, electrospray ionization (ESI), atmospheric pressure chemical ionization (APCI), matrix-assisted laser desorption / sorption ionization (MALDI), or other ionization techniques. Ions generated by ionization are fed into collision chamber 118 by a voltage gradient applied to ion guide 116. Collision chamber 118 can be used to transfer ions (low energy) or fragment ions (high energy).
[0048] Various techniques can be used (including those described in U.S. Patent 6,717,130 to Bateman et al., which is incorporated herein by reference), in which an alternating voltage can be applied to the collision chamber 118 to induce fragmentation. Spectra of the precursor (no collision) at low energy and the fragments (products of the collision) at high energy are collected.
[0049] The output of the collision chamber 118 is input to the mass analyzer 120. The mass analyzer 120 can be any mass analyzer, including quadrupole, time-of-flight (TOF), ion trap, sector magnetic field mass analyzer, and combinations thereof. A detector 122 detects ions emitted from the mass analyzer 122. The detector 122 can be integrated with the mass analyzer 120. For example, in the case of a TOF mass analyzer, the detector 122 can be a microchannel plate detector that counts ion intensity (i.e., counts the injected ions).
[0050] Storage device 124 can provide a permanent storage device to store ion counts for analysis. For example, storage device 124 can be an internal or external computer data storage device, such as a disk, flash-based storage device, etc. Analysis computer 126 analyzes the stored data. Data can also be analyzed in real time without needing to be stored in storage medium 124. In real-time analysis, detector 122 directly transmits the data to be analyzed to computer 126, rather than first storing it in a permanent storage device.
[0051] Collision chamber 118 performs fragmentation of precursor ions. Fragmentation can be used to determine the primary sequence of the peptide, and subsequently, the origin protein can be identified. Collision chamber 118 contains a gas, such as helium, argon, nitrogen, air, or methane. When a charged precursor interacts with gas atoms, the resulting collisions can fragment the precursor by breaking it down into fragment ions. This fragmentation can be achieved using the technique described in Bateman by switching the voltage in the collision chamber between a low voltage state (e.g., low energy, <5V) and a high voltage state (e.g., high energy or elevated energy, >15V), where the low voltage state is used to obtain the MS spectrum of the peptide precursor, and the high voltage state is used to obtain the MS spectrum of the collision-induced fragments of the precursor. The high and low voltages can be referred to as high energy and low energy, respectively, because high or low voltage is used to impart kinetic energy to the ions.
[0052] Various procedures can be used to determine when and how to switch the voltage used for this type of MS / MS acquisition. For example, conventional methods trigger the voltage in target or data correlation mode (data correlation analysis, or DDA). These methods also include gas-phase isolation (or pre-selection) coupled to the target precursor. Low-energy spectra are acquired and checked in real-time by software. When the desired mass reaches a specified intensity value in the low-energy spectrum, the voltage in the collision chamber switches to a high-energy state. High-energy spectra for the pre-selected precursor ions are then obtained. These spectra contain fragments of the precursor peptides seen at low energies. After sufficient high-energy spectra have been collected, data acquisition returns to a low-energy state to continue searching for precursor masses with suitable intensities for high-energy collision analysis.
[0053] Different suitable methods can be used in conjunction with systems such as those described herein to obtain ion information, such as combining information on precursor and product ions for mass spectrometry used to analyze samples. While conventional switching techniques can be employed, implementations can utilize the technique described in Bateman, which can be characterized as a fragmentation protocol that switches voltages in a simple alternating cycle. This switching is performed at a sufficiently high frequency to include multiple high-energy spectra and multiple low-energy spectra within a single chromatographic peak. Unlike conventional switching protocols, this cycle is independent of the content of the data. This switching technique described in Bateman provides efficient simultaneous mass analysis of both precursor and product ions. In Bateman, the use of high-energy and low-energy switching protocols can be applied as part of a single-injection LC / MS analysis of peptide mixtures. In data acquired from a single injection or experimental run, the low-energy spectra contain ions primarily from the unfragmented precursor, while the high-energy spectra contain ions primarily from the fragmented precursor. For example, a portion of the precursor ions can be fragmented to form product ions, and the precursor and product ions can be analyzed substantially simultaneously, or simultaneously, or, for example, using rapid succession, by applying rapidly switching or alternating voltages to the collision chamber of the MS module, switching between low voltages (e.g., predominantly generating precursors) and high or elevated voltages (e.g., predominantly generating fragments). MS operation employing rapid succession alternating between high (or elevated) energies and low energies, according to the Bateman technique described above, may also be referred to herein as the Bateman technique and the high-low procedure.
[0054] In summary, when operating the system using Bateman technology, sample 102 is introduced into the LC / MS system. The LC / MS system generates two sets of spectra: a set of low-energy spectra and a set of high-energy spectra. The low-energy set primarily contains precursor-related ions. The high-energy set primarily contains fragment-related ions. These spectra are stored in storage medium 124. After data acquisition, these spectra can be extracted from the storage medium and displayed and processed using post-acquisition algorithms in analysis computer 126.
[0055] Data acquired via high-low protocols allows for accurate determination of retention times, mass-to-charge ratios, and intensities of all ions collected in both low-energy and high-energy modes. Generally, different ions are observed in the two different modes, and the spectra acquired in each mode can be further analyzed individually or in combination.
[0056] Ions from a common precursor, observed in one or two modes, will share the same retention time (and therefore have substantially the same scan time) and peak shape. High-low protocol allows for meaningful comparisons of the different characteristics of ions within a single mode and between modes. This comparison can then be used to group ions observed in low-energy and high-energy spectra.
[0057] It should be noted that, in the exemplary embodiments described herein, this technique can be extended to provide any desired number of spectra. For example, instead of high-energy and low-energy spectra, the MS device can be configured to provide four spectra produced by applying four different voltages. The voltages can be selected compound-by-compound. Typically, the lowest voltage can represent the minimum amount of voltage that will result in consistent fragmentation of the analyzed compound; more rigid structures may require a higher voltage to decompose. The highest voltage can represent the maximum amount of voltage that produces results that consistently exhibit noise below a predetermined noise limit. The two intermediate voltages can be evenly spaced from the low and high voltages, or they can be selected to produce data deemed particularly interesting.
[0058] Data captured from samples of interest stored in storage device 124 can be compared with compound library 128. For many known compounds, compound library 128 can contain various data about the compounds. Among other data, for each data entry related to a compound, compound library 128 can specify the voltage at which the data was acquired and any intensity peaks recorded in the data. An intensity peak can be specified as a tuple combining the mass at the time of acquisition with the intensity value of a given mass. The entry can also identify the number of such peaks. Identifying peaks in MS data is a process known to those skilled in the art and is not described here for brevity. If more than one spectrum is acquired for a given compound, the library can include multiple entries for that compound, one entry for each spectrum. An example of a portion of a library that can be stored in a data structure is reproduced below:
[0059] Name: Benzocaine
[0060] Formula: C9H11NO2
[0061] MW: 165
[0062] Precision quality: 165.078979
[0063] DB#:2
[0064] Note:
[0065] <conditions> <polarity> pos< / polarity> <cv> 30< / cv> 0.000< / conditions>
[0066] Peak count: 8 7786; 9271; 94623; 120831; 12167; 138999; 13974; 166376;
[0069] Name: Benzocaine
[0070] Formula: C9H11NO2
[0071] MW: 165
[0072] Precision quality: 165.078979
[0073] DB#: 3
[0074] Note:
[0075] <conditions> <polarity> pos< / polarity> <cv> 50< / cv> 0.000< / conditi ons>
[0076] Peak count: 7 65447; 77999; 92548; 93212; 94635; 120991; 138141;
[0079] Name: Benzocaine
[0080] Formula: C9H11NO2
[0081] MW: 165
[0082] Precision quality: 165.078979
[0083] DB#: 4
[0084] Note:
[0085] <conditions> <polarity> pos< / polarity> <cv> 70< / cv> 0.000< / conditi ons>
[0086] Peak count: 7 65999; 66168; 77740; 92360; 93172; 9474; 12094;
[0089] The similarity logic unit 130 can be used to compare entries in the compound library 128 with mass spectra generated by the MS device. (The following is in conjunction with...) Figure 3A , Figure 3B and Figure 9 A more detailed example of the similarity logic component 130 is provided.
[0090] To generate comparison results, users can adjust one or more comparison parameters. Figure 2 An exemplary interface suitable for adjusting parameters is depicted.
[0091] A portion of the interface depicts the spectral data of the sample of interest, including a highlighted region of interest (ROI) 202. Since spectral data can include noise and other irrelevant data (for comparison purposes), the system automatically selects ROI 202 (typically including most of the intensity peaks in the data) and highlights it for the user to view. The user can adjust the size of ROI 202 by moving slider 204.
[0092] In addition, the system provides a parameter setting interface 206 to allow users to adjust various settings used for comparison. For ease of reading, examples of adjustable settings are depicted in Table 1 below:
[0093]
[0094] Table 1
[0095] Any of these settings can be entered by the user. If the user does not specify a setting, it will default to the default value.
[0096] As shown above, the settings include a low-peak filter, which specifies the minimum ratio or percentage (compared to the largest peak size) that peaks in the spectrum must reach in order to be taken into account in comparative analysis. In this example, the low-peak filter is set to remove peaks with an intensity less than 5% of the highest peak in the data.
[0097] The settings also include the number of library peaks of interest. This parameter sets an upper limit on the number of peaks in each spectrum of compounds in the library that will be compared with the sample of interest. In this example, up to five peaks will be included in the analysis. If a library compound does not include five peaks (e.g., if the compound only includes four peaks), the total number of peaks in the library's data entries for that compound can be used. If a library compound includes exactly five peaks, those five peaks can be used. If a library compound includes more than five peaks, the five most significant peaks can be selected (e.g., those with the highest intensity values).
[0098] The intensity power represents the scaling factor applied to the peak intensity. As mentioned above, its function is to compress the differences between different intensities, thereby increasing the effect of lower intensities and reducing the likelihood that large peaks will dominate the results.
[0099] The mass / charge (m / z) power represents the exponent that the m / z value increases. Its function is to make higher mass values more important in the results, thus emphasizing the precursor and larger fragments.
[0100] The final score cutoff indicates the minimum similarity value required for a sample of interest to be considered similar to a library compound. If the similarity value is below the final cutoff score, the system may consider the sample and the library compound dissimilar. If the similarity value is above the threshold, the library compound may be included in a list of compounds considered similar to the sample of interest. This list may be sorted by similarity value, stored in a computer-readable medium, and / or displayed on the interface.
[0101] The weights of functions #1-4 can represent the weights assigned to each different spectrum generated by applying different voltages to the sample and / or library compounds of interest. In one embodiment, function #1 could represent the lowest voltage, function #2 the second lowest voltage, and so on. As mentioned above, it might be desirable to assign the highest weight to function #1, as this data tends to filter out more library compounds from the comparison results.
[0102] Figure 3A and Figure 3B This is a data flow diagram illustrating information exchange according to an exemplary embodiment. While this flowchart depicts a specific example for illustrative purposes, it is contemplated that different configurations may also be applied (including different numbers of peaks, different numbers of compounds in the library, different numbers of voltages, and variations in processing steps). Although the depicted example shows the same number of peaks for each compound and sample of interest, this is not required; if the number of peaks does not match, it can be adjusted according to the combination... Figure 4 The provided explanation compares the number of pre-defined or user-specified most significant peaks.
[0103] The library can store spectral data for various compounds, such as library compound 1302 and library compound 2312. Each library compound is associated with peak data, such as the depicted values for LC 1 spectra 1304, LC 1 spectra 2306, LC 1 spectra 3308, LC 1 spectra 4310, LC 2 spectra 1314, LC 2 spectra 2316, LC 2 spectra 3318, and LC 2 spectra 4320. During this processing stage, the peak data of the compounds stored in the library may have been normalized and binned.
[0104] Normalization refers to the process of placing selected peaks on the same scale. In mass spectrometry analysis, normalization can be performed to correct for signal shifts that are not due to actual changes in the peak of interest. For example, if comparing two different spectra, but one spectrum has a signal twice as high as the other due to technical instrumentation, this can be corrected to determine whether the level of the peak of interest has changed after global distortion in the corrected signal.
[0105] As mentioned above, some spectra corresponding to different voltages can be weighted more heavily than others. This might shift the values of the weighting vectors along one axis but not necessarily the other, thus changing the angle between the vectors. Therefore, it may be important to normalize the data to the same scale so that different functions can be compared fairly. Furthermore, as... Figure 3A and Figure 3B As shown, the data in the library may have been normalized, while the sample data may not have been normalized; in this case, normalization allows for comparisons within the same category.
[0106] Importantly, scaling a vector by linearly multiplying its values does not change the underlying angle between the scaled vector and another vector. Therefore, normalization will not affect the similarity metric that relies on the angle between vectors as described in this paper.
[0107] "Binding" refers to simplifying data by digitizing it (dividing it into a number of "bins"). For example, data can be binned at a resolution of 1 m / z, where the bins are centered at integer values. For instance, a binned signal at m / z 200 could include an integrated signal from m / z 199.5 to m / z 200.5. Binning data in this way is much simpler than performing peak detection, and therefore can be done quickly and efficiently. The precise height of a particular peak is not considered; instead, the integrated value within the bin is taken into account. If a signal of a library compound exists in bin 200, that value is compared to the value of the sample of interest in bin 200. Therefore, alignment and peak matching are not required.
[0108] In an alternative implementation, the system may perform peak detection to a limited extent. For example, a peak may be detected in the data, and then a margin around the peak may be defined. This margin may be a predetermined margin or may be dynamically determined (e.g., based on the shape of the detected peak). The peak and its surrounding margin may be used as binning for the following purposes. This processing may be performed for a single peak or a predetermined number of peaks.
[0109] As mentioned above, the data for compounds in the library may have been normalized and binned. However, the data for sample compound 322 may or may not have been normalized and binned. Figure 3A In the example depicted, the data for the sample of interest is neither normalized nor binned.
[0110] At box 332, the sample data can be binned as described above. This allows the format of the sample data to match the format of the library data. In one implementation, the data values can be binned at a resolution of 1 m / z, with the center of each bin being an integer value. The value assigned to each bin can represent the integrated signal from the previous bin to the next bin.
[0111] The sample data has not yet been normalized, as it will be normalized later for comparison after selecting peaks of interest. Different peaks can be selected for comparison with different library compounds (see [link to documentation]). Figure 4 Therefore, normalization is performed after selecting these peaks.
[0112] Therefore, peaks are then selected for comparison. For each library compound, a list of peaks can be retrieved from the library (e.g., peak list 1348 and peak list 2346). The number of peaks selected can be determined by a predetermined default value or by combining the above. Figure 2 The user-selected values described are used to determine this. For each library compound, the system can extract the binning value (at boxes 342 and 344, respectively) from the sample compound in the m / z bin corresponding to the peak from the peak list.
[0113] The system can then normalize within the peak set (at boxes 350 and 352). To normalize the data at this stage, the system divides the intensity of each peak in the sample compound set associated with the matching value (as determined in boxes 342 and 344) by the intensity of the highest peak in the sample compound dataset; this yields a scaling factor of 1 (in the case of the highest peak) or less (in the case of other peaks in the sample compound data). This value for each peak is multiplied by 999, so that the highest peak has a value of 999 and each other peak has a scaling value. The result can then be rounded to the nearest integer value to ensure that the data accuracy of the sample and the library is matched.
[0114] In some cases, the highest peak in the library data will be the same as the highest peak in the sample data, as shown in the example from Table 2 below (where the highest peak is indicated in bold).
[0115]
[0116] Table 2
[0117] In other cases, there may be different peak values between the library data and the sample data, as shown in the examples in Table 3. In such cases, the highest peak value in the sample data should be selected, and other sample data should be normalized to that peak value.
[0118]
[0119] Table 3
[0120] Go to Figure 3B After normalizing the data within the peak set, the result might be normalized sample compound peak data 354, representing the peaks in the sample compound spectrum associated with library compound 2312, and normalized sample compound peak data 356, representing the peaks in the sample compound spectrum associated with library compound 1302. Of course, when the library includes more compounds, the above and following procedures can be repeated for each library compound.
[0121] Then, at boxes 358 and 360, the system can weight the peak based on quality and intensity by applying the predetermined or user-defined weighting factors as described above. In one embodiment, the weighting can be applied using the following formula 1:
[0122]
[0123] in:
[0124] W = Weighted peak intensity value
[0125] m / z = mass / charge value of the considered bin
[0126] I = Normalized intensity value of the peak value of the considered bins
[0127] a = a power of m / z specified by the user or a predetermined value (2 is a reasonable default value).
[0128] b = a power of intensity specified by the user or a predetermined value (0.5 is a reasonable default value).
[0129] F = Weights applied to the function (voltage) that causes the spectrum to be weighted.
[0130] The system can then perform similarity calculation F1364 by comparing the sample compound with compounds from the first and second libraries. This can be achieved by creating four vectors (in this example, using two library compounds): the first vector represents the peak data 356 of the sample compound selected for comparison with library compound 1302; the second vector represents the peak selected from library compound 1302 for comparison; the third vector represents the peak data 354 of the sample compound selected for comparison with library compound 2312; and the fourth vector represents the peak selected from library compound 2312 for comparison. The system can then calculate the angle between the first and second vectors, and similarly calculate the angle between the third and fourth vectors. Similar compounds will have relatively small angles between their corresponding vectors, while dissimilar compounds will have relatively large angles. Therefore, similarity values can be calculated based on the angles between the vectors. Figure 5 The paper describes a conceptual technique for understanding the aforementioned vectors.
[0131] An example of a technique used to calculate the angular difference between vectors is cosine similarity calculation. Cosine similarity can be calculated using the following formula:
[0132]
[0133] Where x i and y i This is the corresponding value from each set of the datasets being compared (in this example, readings from each dataset for the same m / z bin). More generally, Equation 2 multiplies the intensity of the mass in sample x by the intensity of the same mass in sample y, and then sums these values across the various available masses / bins. This value is then divided by the Pythagorean length of the x vector (calculated by summing the squares of all x values, taking the square root of the sum, and then multiplying that value by the equivalent value of the y vector).
[0134] In some implementations, each of the functions F1-F4 corresponding to different voltages / spectroscopy can be combined into a single vector, and the angle between the sample vector and the vector of the library compounds can be calculated. However, in Figure 3B A slightly different approach is used. In this example, at boxes 362 and 364, only the intensity values of the first spectrum (corresponding to the function F1 with the lowest voltage) are converted into vectors. The similarity between the vectors of the F1 function is calculated only and compared to a threshold. At boxes 366 and 368, it is determined whether this similarity is below the threshold. If so, the library compound is rejected due to dissimilarity and no further processing is required to consider functions F2-F4. Otherwise, at boxes 370 and 372, similarity calculations are performed for functions F2-F4; if the result of any of these calculations is a similarity score exceeding the similarity threshold, the considered library compound is marked as similar to the sample compound. Any library compounds found to be similar can be listed and ranked by their similarity scores, and the most similar compounds can be displayed and highlighted on the interface (see example...). Figure 6 The results of the comparison can be stored in a non-transitory computer-readable medium.
[0135] Figure 4 An exemplary spectrum is depicted, showing the intensity of each of the 10 bins' mass / charge values. The intensity value for each bin is shown on the corresponding bar. As shown in this example, the most significant peak falls in bin 3 of the m / z scale and has an intensity value of 999.
[0136] exist Figure 4 In the sample, peaks 3, 7, and 8 are associated with the highest intensity values. However, the system can be configured to match only those peaks in the sample that are also associated with library compounds; only relevant bins are extracted for comparison with each library compound. For example, the first library compound may have peaks at bins 3, 4, and 6 (as determined by...). Figure 4 (Indicated by the asterisk in the diagram). Therefore, when comparing the sample of interest with compounds in the first library, only peaks 3, 4, and 6 are considered. On the other hand, compounds in the second library may have peaks at m / z bins 6, 7, and 8. When comparing the sample of interest with compounds in the second library, only peaks 6, 7, and 8 are considered.
[0137] As mentioned above, the intensity values can be normalized so that the highest peak is set to a value of 999, and other peaks are scaled to corresponding values. Note that when the sample data is in... Figure 3A When normalizing, the data is normalized relative to the library compounds under consideration. Therefore, when normalizing the first library compound as described above, the peaks are at 3, 4, and 6, and the data is normalized to the highest of these selected peaks (peak 3). In this case, peak 3 already has an intensity value of 999, so no further scaling is required. On the other hand, when normalizing the second library compound, bins 6, 7, and 8 are selected. The highest of these peaks is in bin 7, so the intensity value of bin 7, 700, is amplified to 999, and the remaining peaks are adjusted proportionally.
[0138] The above vector can be based on Figure 5 The examples depicted in the text are conceptualized.
[0139] Vectors can be computed by defining an n-dimensional space, where n corresponds to the number of peaks in the data under consideration. Each axis in the n-dimensional space can correspond to an m / z bin. The values of each bin can then be plotted on its corresponding axis, and a vector pointing to the values on that axis can be computed. These results can be combined by summing the vectors to define a combined vector whose length and direction depend on the length and direction of the individual bin vectors. Figure 5 An example is depicted where two vectors U and L are defined in three-dimensional space.
[0140] This description clearly shows that if the peak values of the sample and the library compounds have exactly the same value, the resulting vectors will be identical and the angle θ between them will be 0. If the peak values are different, the more the fundamental values diverge, the larger the angle θ between the vectors will be.
[0141] Figure 6 An exemplary interface for displaying comparison results between a sample of interest and a library is depicted. In this example, each compound from the library compared to the sample is displayed in a panel on the right side of the screen along with its similarity score. In some embodiments, only those compounds whose similarity scores exceed a similarity threshold are displayed, with the most similar compounds displayed at the top of the list, highlighted, or otherwise visually distinguished. In other embodiments, all compounds tested in the library can be displayed and ranked, and those compounds whose similarity scores exceed the similarity metric can be highlighted. If desired, the user can select a compound on the display to observe the comparison results between the selected peak from the library compound and the peak of the sample of interest, such as... Figure 7A (for cannabidiol libraries) and Figure 7B (For THC library compounds) as shown.
[0142] Figure 8 An exemplary comparison process 800 according to an exemplary implementation is depicted. Although Figure 8 Logic blocks in a particular arrangement are depicted, but those skilled in the art will understand that exemplary embodiments may be implemented using more, fewer, or different logic blocks than those depicted. The comparison process 800 may be embodied as instructions stored on a non-transitory computer-readable medium, wherein these instructions are configured to cause a processor to perform the actions described in conjunction with each logic block.
[0143] At box 802, the sample of interest can be received at the MS device. At box 804, the sample of interest can be analyzed by the MS device to generate one or more spectra. In one embodiment, the MS device operates to generate four spectra.
[0144] At box 806, the system can decompose the spectrum from box 804 into bins. This can be combined with the above. Figure 3A The procedure described in box 332 shall be followed; for the sake of brevity, this description shall not be repeated here.
[0145] At box 808, the system has access to a sample library. For example, the system can remotely download the sample library (or entries from the sample library), or it can access a local copy of the sample library stored on the system. The sample library may include binned and normalized data of various spectra for different compounds of interest.
[0146] At box 810, the system can select the next compound from the library for analysis. If the user specifies a particular compound to be analyzed, the system can select that next compound from the user's list for analysis.
[0147] At box 812, the system can retrieve the key peaks of the selected compound. This can be combined with the above information from... Figure 3A The peak list 1348 and peak list 2346 are used to perform the operation as described; for the sake of brevity, this description will not be repeated here.
[0148] At box 814, the system can compare key peaks from library compounds with corresponding peaks from sample compounds. This can be done by combining the above with information from... Figure 3A and Figure 3B The procedure is performed as described in boxes 342 to 360; for the sake of brevity, this description will not be repeated here.
[0149] At box 816, the system can calculate a similarity value for the comparison results performed in box 814. This can be combined with the above information from... Figure 3B The procedure is performed as described in boxes 362 to 372; for the sake of brevity, this description will not be repeated here.
[0150] At decision box 818, the system determines whether the similarity value exceeds a threshold, which can be predetermined or user-specified. If not, processing proceeds to decision box 822, and the system determines whether more library compounds are available for analysis.
[0151] If the determination at decision box 818 is "yes", the process can proceed to box 820 and the library compound can be marked as similar to the sample compound. Then, the process can proceed to decision box 822.
[0152] At decision box 822, the system determines whether all available library compounds (or all library compounds selected by the user) have been analyzed. If not, the process returns to box 810 and analyzes the next library compound. If yes, the process proceeds to box 824, and the system outputs an indication of the similarity score. This may involve storing the similarity score on a non-transitory computer-readable medium, transmitting the similarity score over a network, or displaying the results interface (such as...). Figure 6 , Figure 7A and Figure 7B (The result interface depicted in the text), etc. Then the process can be terminated.
[0153] Figure 9 An example of a system architecture and data processing apparatus that can be used to implement one or more of the exemplary aspects described herein in a standalone and / or networked environment is shown. Various network nodes, such as a data server 910, a web server 906, a computer 904, and a laptop computer 902, can be interconnected via a wide area network 908 (WAN), such as the Internet. Other networks, including private intranets, corporate networks, LANs, metropolitan area networks (MANs), wireless networks, personal networks (PANs), etc., can also be used or alternatively. Network 908 is for illustrative purposes and can be replaced by fewer or more computer networks. A local area network (LAN) can have one or more topologies of any known LAN topology and can use one or more protocols of a variety of different protocols, such as Ethernet. The data server 910, web server 906, computer 904, laptop computer 902, and other devices (not shown) can be connected to one or more networks via twisted-pair cables, coaxial cables, fiber optic cables, radio waves, or other communication media.
[0154] Computer software, hardware, and networks can be used in a variety of different system environments, including standalone, networked, remote access (also known as remote desktop), virtualized, and / or cloud-based environments, etc.
[0155] The term "network" as used herein and depicted in the accompanying drawings refers not only to a system in which remote storage devices are coupled together via one or more communication paths, but also to individual devices that can be coupled from time to time to such systems having storage capabilities. Therefore, the term "network" includes not only "physical networks" but also "content networks" consisting of data residing on all physical networks that can be attributed to a single entity.
[0156] Components may include a data server 910, a web server 906, a client computer 904, and a laptop computer 902. The data server 910 provides overall access, control, and management of the database and control software for performing one or more exemplary aspects described herein. The data server 910 may connect to the web server 906, through which users interact with and obtain requested data. Alternatively, the data server 910 may itself act as a web server and be directly connected to the Internet. The data server 910 may connect to the web server 906 via a network 908 (e.g., the Internet), via a direct or indirect connection, or via some other network. Users may interact with the data server 910 using a remote computer 904 or laptop computer 902, for example, by using a web browser to connect to the data server 910 via one or more externally public websites hosted by the web server 906. The client computer 904 or laptop computer 902 may be used with the data server 910 to access data stored therein, or may be used for other purposes. For example, from client computer 904, a user can access web server 906 using an internet browser (as known in the art) or by executing a software application that communicates with web server 906 and / or data server 910 via a computer network (such as the internet).
[0157] Servers and applications can be combined on the same physical machine and retain separate virtual or logical addresses, or they can reside on separate physical machines. Figure 9 Only one example of a network architecture that can be used is shown, and those skilled in the art will understand that the specific network architecture and data processing apparatus used may vary and are secondary to the functionality they provide, as further described herein. For example, the services provided by web server 906 and data server 910 may be combined on a single server.
[0158] Each component, including data server 910, web server 906, computer 904, and laptop computer 902, can be any type of known computer, server, or data processing device. Data server 910 may include, for example, a processor 912 that controls the overall operation of data server 910. Data server 910 may also include RAM 916, ROM 918, network interface 914, input / output interface 920 (e.g., keyboard, mouse, monitor, printer, etc.), and memory 922. Input / output interface 920 may include various interface units and drivers for reading, writing, displaying, and / or printing data or files. Memory 922 may also store operating system software 924 for controlling the overall operation of data server 910, control logic component 926 for instructing data server 910 to perform the aspects described herein, and other application software 928 for providing auxiliary, support, and / or other functions that may be used in conjunction with or without the aspects described herein. The control logic component may also be referred to herein as data server software control logic component 926. The functionality of data server software can refer to a combination of operations or decisions made automatically based on rules encoded in the control logic components, operations or decisions made manually by users who provide input to the system, and / or automated processing based on user input (e.g., queries, data updates, etc.).
[0159] The memory 1122 may also store data for performing one or more aspects described herein, including a first database 932 and a second database 930. In some embodiments, the first database may include the second database (e.g., as a separate table, report, etc.). That is, information may be stored in a single database or divided into different logical, virtual, or physical databases, depending on the system design. The web server 906, computer 904, and laptop computer 902 may have similar or different architectures as described relative to the data server 910. Those skilled in the art will understand that the functionality of the data server 910 (or web server 906, computer 904, laptop computer 902) as described herein can be distributed across multiple data processing devices, for example, to distribute the processing load across multiple computers, or to separate transactions based on geographic location, user access level, quality of service (QoS), etc.
[0160] One or more aspects may be embodied in computer-usable or readable data and / or computer-executable instructions, such as in one or more program modules executed by one or more computers or other devices as described herein. Typically, program modules include routines, programs, objects, components, data structures, etc., which perform a specific task or implement a specific abstract data type when executed by a processor in a computer or other device. These modules may be written in source code programming languages that are subsequently compiled for execution, or they may be written in scripting languages such as (but not limited to) HTML or XML. Computer-executable instructions may be stored on a computer-readable medium such as a non-volatile storage device. Any suitable computer-readable storage medium may be used, including hard disks, CD-ROMs, optical storage devices, magnetic storage devices, and / or any combination thereof. Furthermore, various transmission (non-storage) media representing data or events as described herein may be transmitted between a source and a destination in the form of electromagnetic waves propagating through signal conduction media such as metal wires, optical fibers, and / or wireless transmission media. The aspects described herein may be embodied in a method, a data processing system, or a computer program product. Therefore, various functionalities can be embodied, in whole or in part, in software, firmware, and / or hardware or hardware equivalents (such as integrated circuits, field-programmable gate arrays (FPGAs), etc.). Specific data structures can be used to more efficiently implement one or more aspects described herein, and such data structures are envisioned to be within the scope of the computer-executable instructions and computer-available data described herein.
[0161] The components and features of the devices described above can be implemented using any combination of discrete circuit systems, application-specific integrated circuits (ASICs), logic gates, and / or single-chip architectures. Furthermore, where appropriate, the features of these devices can be implemented using microcontrollers, programmable logic arrays, and / or microprocessors, or any combination thereof. It should be noted that hardware, firmware, and / or software elements may be collectively referred to herein or individually as "logic components" or "circuits".
[0162] It should be understood that the exemplary apparatus shown in the above block diagrams may represent a functionally descriptive example of many possible specific implementations. Therefore, the division, omission, or inclusion of block functions depicted in the figures does not necessarily mean that the hardware components, circuits, software, and / or elements used to implement these functions will be divided, omitted, or included in the implementation.
[0163] At least one computer-readable storage medium may include instructions that, when executed, cause a system to perform any of the computer-implemented methods described herein.
[0164] The expressions "one embodiment" or "implementation" and their derivatives may be used to describe embodiments. These terms mean that a particular feature, structure, or characteristic described in conjunction with an embodiment is included in at least one embodiment. The phrase "in one embodiment" appearing in different places in the specification does not necessarily refer to the same embodiment. Furthermore, unless otherwise stated, the foregoing features are considered to be used in any combination. Thus, any feature discussed individually may be used in combination with each other unless it is indicated that these features are incompatible with each other.
[0165] Referring generally to the notation and naming used herein, the detailed description herein can be presented as a program procedure executed on a computer or computer network. Those skilled in the art use these program descriptions and representations to most effectively communicate the substance of their work to others skilled in the art.
[0166] The process here is generally considered to be a self-consistent sequence of operations that yields the desired result. These operations are those that require physical manipulation of physical quantities. While not strictly necessary, these quantities are typically in the form of electrical, magnetic, or optical signals that can be stored, transmitted, combined, compared, and otherwise manipulated. It has proven convenient, primarily for general reasons, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, etc. However, it should be noted that all these and similar terms are associated with the appropriate physical quantities and are merely convenient notations applied to them.
[0167] Furthermore, the manipulations performed are often referred to by terms such as addition or comparison, which are generally associated with mental operations performed by a human operator. In any of the operations described herein that form part of one or more embodiments, this ability of a human operator is not necessary or desired in most cases. Instead, these operations are machine operations. Useful machines for performing the operations of the various embodiments include general-purpose digital computers or similar devices.
[0168] The terms "coupled" and "connected," as well as their derivatives, may be used to describe some implementations. These terms are not necessarily intended to be synonymous with each other. For example, the terms "connected" and / or "coupled" may be used to describe some implementations to indicate that two or more elements are in direct physical or electrical contact with each other. However, the term "coupled" may also mean that two or more elements are not in direct contact with each other, but still cooperate or interact with each other.
[0169] Various implementations also relate to devices or systems for performing these operations. The device may be specifically constructed for the desired purpose, or it may comprise a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. The processes presented herein are not inherently related to any particular computer or other device. Various general-purpose machines may be used with programs written in accordance with the teachings of this document, or it may prove convenient to construct more specialized devices to perform the required method steps. The desired structures of various such machines will appear in the given description.
[0170] It should be emphasized that this abstract is provided to allow readers to quickly determine the essence of the technical disclosure. It should be understood that the submitted abstract will not be used to interpret or limit the scope or meaning of the claims. Furthermore, as can be seen in the foregoing detailed description, various features may be grouped together in a single embodiment for the purpose of simplifying this disclosure. This method of disclosure should not be construed as reflecting an intention to claim more features than are expressly stated in each claim. Rather, as reflected in the following claims, the subject matter of the invention is less than all the features of a single disclosed embodiment. Therefore, the following claims are incorporated herein by reference to the detailed description, wherein each claim exists independently as a separate embodiment. In the appended claims, the terms "including" and "in which" are used as common English equivalents of the corresponding terms "comprising" and "wherein," respectively. Furthermore, the terms "first," "second," "third," etc., are used merely as labels and are not intended to impose numerical requirements on their objects.
[0171] The foregoing description includes examples of the disclosed architecture. It is certainly impossible to describe every conceivable combination of components and / or methods, but those skilled in the art will recognize that many further combinations and substitutions are possible. Therefore, this novel architecture is intended to cover all such changes, modifications, and variations that fall within the substance and scope of the appended claims.< / conditions> < / conditions>
Claims
1. A method for determining the similarity between a sample and compounds in a sample library, comprising: Samples of interest are received at a mass spectrometry (MS) device for analysis; The analysis of the sample of interest includes generating multiple spectra of the sample of interest by subjecting the sample to multiple voltages; Decompose the multiple spectra into component bins; Access a sample library that includes ionization information of known compounds; For each known compound in the sample library, multiple key peaks of the compound are retrieved; The system receives the following as inputs: a user-defined number of bins for comparison with the key peak, a user-defined value for a similarity threshold, and a user-defined bin weight, wherein the user-defined bin weight is associated with the voltage experienced by the sample. The key peak of the corresponding compound is compared with a binning sample from the sample of interest, the comparison including: The key peak of the corresponding compound and the binning group are represented as a vector. Calculate the similarity value corresponding to the angle difference between the vectors, and The similarity value is compared with the similarity threshold; When the similarity value exceeds the similarity threshold, the sample of interest is identified as similar to the corresponding compound; and In response to the identification, an indication is output that the sample of interest is similar to the corresponding compound.
2. The method of claim 1, wherein decomposing the plurality of spectra into bins includes identifying peaks in the plurality of spectra and generating bins corresponding to the peaks.
3. The method according to claim 1, wherein the angle difference between the vectors is represented as a cosine similarity value.
4. The method of claim 1, further comprising weighting the bins based on one or more of the spectral intensity values or mass associated with each bin.
5. The method of claim 1, further comprising weighting the binning of one of the plurality of spectra higher than the binning of the other spectra among the plurality of spectra.
6. The method according to claim 1, further comprising: For each of the sub-boxes, calculate the ratio between the strength of that sub-box and the strength of the sub-box with the highest strength value; as well as Filter out bins whose ratio is below the intensity ratio threshold from the analysis.
7. A non-transitory computer-readable storage medium, the computer-readable storage medium comprising instructions that, when executed by a computer, cause the computer to perform the following operations: Samples of interest are received at a mass spectrometry (MS) device for analysis; The analysis of the sample of interest includes generating multiple spectra of the sample of interest by subjecting the sample to multiple voltages; Decompose the multiple spectra into component bins; Access a sample library that includes ionization information of known compounds; For each known compound in the sample library, multiple key peaks of the compound are retrieved; The system receives the following as inputs: a user-defined number of bins for comparison with the key peak, a user-defined value for a similarity threshold, and a user-defined bin weight, wherein the user-defined bin weight is associated with the voltage experienced by the sample. The key peak of the corresponding compound is compared with a binning sample from the sample of interest, the comparison including: The key peak of the corresponding compound and the binning group are represented as a vector. Calculate the similarity value corresponding to the angle difference between the vectors, and The similarity value is compared with a similarity threshold; When the similarity value exceeds the similarity threshold, the sample of interest is identified as similar to the corresponding compound; and In response to the identification, an indication is output that the sample of interest is similar to the corresponding compound.
8. The computer-readable storage medium of claim 7, wherein decomposing the plurality of spectra into bins includes instructions that configure the computer to identify peaks in the plurality of spectra and generate bins corresponding to the peaks.
9. The computer-readable storage medium of claim 7, wherein the angle difference between the vectors is represented as a cosine similarity value.
10. The computer-readable storage medium of claim 7, wherein the instructions further configure the computer to weight the bins based on one or more of a spectral intensity value or a mass associated with each bin.
11. The computer-readable storage medium of claim 7, wherein the instructions further configure the computer to weight binning of one of the plurality of spectra more highly than binning of the other spectra among the plurality of spectra.
12. The computer-readable storage medium of claim 7, wherein the instructions further configure the computer to: For each of the sub-compartments, calculate the ratio between the strength of that sub-compartment and the strength of the sub-compartment with the highest strength value; and Filter out bins whose ratio is below the intensity ratio threshold from the analysis.
13. A computing device, comprising: processor; and The memory stores instructions that, when executed by the processor, configure the device to: Samples of interest are received at a mass spectrometry (MS) device for analysis; The analysis of the sample of interest includes generating multiple spectra of the sample of interest by subjecting the sample to multiple voltages; Decompose the multiple spectra into component bins; Access a sample library that includes ionization information of known compounds; For each known compound in the sample library, multiple key peaks of the compound are retrieved; The system receives the following as inputs: a user-defined number of bins for comparison with the key peak, a user-defined value for a similarity threshold, and a user-defined bin weight, wherein the user-defined bin weight is associated with the voltage experienced by the sample. The key peak of the corresponding compound is compared with a binning sample from the sample of interest, the comparison including: The key peak of the corresponding compound and the binning group are represented as vectors; Calculate the similarity value corresponding to the angle difference between the vectors, and The similarity value is compared with a similarity threshold; When the similarity value exceeds the similarity threshold, the sample of interest is identified as similar to the corresponding compound; and In response to the identification, an indication is output that the sample of interest is similar to the corresponding compound.
14. The computing device of claim 13, wherein decomposing the plurality of spectra into bins includes instructions that configure the device to identify peaks in the plurality of spectra and generate bins corresponding to the peaks.
15. The computing device of claim 13, wherein the angle difference between the vectors is represented as a cosine similarity value.
16. The computing device of claim 13, wherein the instructions further configure the device to perform one or more of the following: The bins are weighted based on one or more of the spectral intensity values or mass associated with each bin, or The binning of one of the multiple spectra is weighted more heavily than the binning of the other spectra.
17. The computing device of claim 13, wherein the instructions further configure the device to: For each of the sub-compartments, calculate the ratio between the strength of that sub-compartment and the strength of the sub-compartment with the highest strength value; and Filter out bins from the analysis whose ratio is lower than the intensity ratio threshold used for definition.
Citation Information
Patent Citations
Methods and apparatus for mass spectrometry
US6717130B2
Gas chromatography-mass spectrogram retrieval method based on vector model
CN104572910A
Cigarette fingerprint spectrum analysis method based on GC-MSQQQ (gas chromatography-triple tandem quadrupole mass spectrometry)
CN105651892A
Edible oil analysis system and method
US20180364210A1
