Mass spectrometry imaging data display method, device, equipment and storage medium
By filtering and one-dimensional expansion to process the marker list vector, a reduced-dimensional matrix is constructed for mass spectrometry imaging display, which solves the problems of subjectivity and low efficiency of marker imaging output in the existing technology, and achieves fast and accurate display of mass spectrometry imaging data.
Patent Information
- Application Number
- CN202410823424.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-25
AI Technical Summary
The imaging output of marker molecules in existing mass spectrometry imaging technology is subjective. It is impossible to quickly and accurately obtain the full picture of the mass spectrometry imaging structure of multiple markers in tissue samples, and it is impossible to quickly and accurately display the distribution structure of marker molecules.
By screening signal peaks with differences in peak intensities, a marker list vector is formed, and one-dimensional expansion processing is performed on it to construct a plane dimensionality reduction matrix of markers, which is imaged and displayed based on the preset imaging method to reflect the relationship and relationship between markers. distribution structure.
It improves the efficiency and objectivity of mass spectrometry imaging, can quickly and accurately display the distribution structure of multiple marker molecules in tissue samples, and reflects the relationship between the two-dimensional imaging planes of tissue samples determined by marker expression.
Smart Images

Figure CN118379388B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a mass spectrometry imaging data display method, device, equipment and storage medium. Background Art
[0002] Mass spectrometry imaging (MSI) is an emerging analytical technology that can detect and visualize the distribution of various molecules in biological tissue samples. It combines mass spectrometry and imaging technologies to provide a new analytical method for studying disease mechanisms, drug distribution, metabolic processes, etc. MSI technology uses a mass spectrometer to ionize and analyze biological tissue samples, and obtains mass spectrometry data by scanning the sample surface. Each detection point will produce a mass spectrum, reflecting the type and abundance of molecules at that location. Finally, these mass spectrometry data are reconstructed into a distribution map to visualize the spatial distribution of specific molecules in the tissue. The two-dimensional image display of mass spectrometry imaging usually uses the mass-to-charge ratio of the selected marker molecule, and then the mass spectrum intensity value corresponding to each pixel or scanning detection point on the tissue plane is visualized. In the process of each imaging display, it is necessary to manually select the mass-to-charge ratio of each marker molecule, observe and compare the disease differentiation ability of its two-dimensional distribution color map, and then manually select several imaging maps that can represent the disease distribution and output them separately, or superimpose the image output. Such manual screening operation is subjective, and it is impossible to quickly and automatically obtain the display effect of the imaging of the overall marker molecules and output the image. At the same time, it is also impossible to obtain the relationship between the imaging images of each marker, and it is impossible to quickly and accurately obtain the overall distribution structure of multiple marker molecules in the tissue sample, and each marker imaging image can only be observed in a scattered and fragmented manner.
[0003] It can be seen that how to improve the objectivity and output efficiency of the imaging output of marker molecules, how to quickly and accurately obtain the overall picture of the mass spectrometry imaging structure of multiple markers of tissue samples, and how to more effectively display the distribution structure of multiple marker molecules of tissue samples are problems to be solved in this field. Summary of the invention
[0004] In view of this, the purpose of the present invention is to provide a mass spectrometry imaging data display method, device, equipment and storage medium, which can perform one-dimensional expansion of the two-dimensional plane distribution of the intensity corresponding to the marker molecule for imaging display, thereby improving efficiency. The specific scheme is as follows:
[0005] In a first aspect, the present application provides a method for displaying mass spectrometry imaging data, comprising:
[0006] According to the preset grouping area and the spatial position information of the scanning detection point in the mass spectrum signal peak data, the peak intensity difference of the signal peak in the corresponding group is counted to screen a preset number of signal peaks with differences in peak intensity to obtain a corresponding marker list vector; the mass spectrum signal peak data includes a signal peak mass-to-charge ratio vector, a peak intensity numerical matrix composed of the peak intensity of the scanning detection point at each signal peak mass-to-charge ratio, and the spatial position information associated with the scanning detection point;
[0007] Reading the target peak intensities of all scanning detection points on the plane two-dimensional coordinates of the tissue sample corresponding to each marker in the marker list vector, and performing one-dimensional expansion processing on the plane two-dimensional coordinates to obtain a coordinate vector, and obtain a one-dimensional vector corresponding to the target peak intensity, so as to form a marker plane dimensionality reduction matrix according to all the one-dimensional vectors corresponding to the marker list vector;
[0008] The marker plane dimension reduction matrix is processed based on a preset imaging method to perform imaging display on the mass spectrometry signal peak data.
[0009] Optionally, before counting the peak intensity differences of signal peaks in corresponding groups according to the preset grouping regions and the spatial position information of the scanning detection points in the mass spectrum signal peak data, the method further includes:
[0010] The mass spectrum data of all scanning monitoring points or pixel points in the original mass spectrum imaging data are preprocessed, and a signal peak mass-to-charge ratio vector is established based on the processed data, so as to form the mass spectrum signal peak data using the signal peak mass-to-charge ratio vector, a peak intensity numerical matrix composed of the peak intensity of the scanning detection point at each signal peak mass-to-charge ratio, and the spatial position information associated with the scanning detection point; the preprocessing includes peak alignment operation and normalization operation.
[0011] Optionally, the counting of peak intensity differences of signal peaks in corresponding groups according to the preset grouping regions and the spatial position information of the scanning detection points in the mass spectrum signal peak data includes:
[0012] Determine the grouping of the mass spectrum peak intensity numerical vector corresponding to each scanning detection point in the mass spectrum signal peak data according to the preset grouping area and the spatial position information of the scanning detection point in the mass spectrum signal peak data;
[0013] Based on the preset statistical method, the difference in peak intensity values of the signal peaks in each of the groups is analyzed to obtain the corresponding peak intensity difference.
[0014] Optionally, the step of reading the target peak intensities of all scanning detection points on the two-dimensional coordinate plane of the tissue sample corresponding to each marker in the marker list vector, performing one-dimensional expansion processing on the two-dimensional coordinate plane to obtain a coordinate vector, and obtaining a one-dimensional vector corresponding to the target peak intensities includes:
[0015] Reading the target peak intensity of all scanning detection points on the plane two-dimensional coordinates of the tissue sample corresponding to each marker in the marker list vector;
[0016] The plane two-dimensional coordinates are subjected to one-dimensional expansion processing in a fixed order to obtain a corresponding one-dimensional coordinate vector, and the target peak intensity is transformed into a corresponding one-dimensional vector based on the coordinate vector.
[0017] Optionally, forming a marker plane dimension reduction matrix according to all the one-dimensional vectors corresponding to the marker list vectors includes:
[0018] Form a two-dimensional matrix according to all the one-dimensional vectors corresponding to the marker list vector;
[0019] The data in the two-dimensional matrix is standardized based on a preset standardization range to obtain a corresponding marker plane dimension reduction matrix.
[0020] Optionally, the processing of the marker plane dimension reduction matrix based on a preset imaging method to perform imaging display on the mass spectrometry signal peak data includes:
[0021] Performing principal component analysis on the plane dimension reduction matrix of the marker to obtain a principal component matrix of the marker;
[0022] Restoring each principal component vector of the principal component matrix of the marker into a two-dimensional matrix in a fixed order, so as to restore the principal component matrix of the marker into a three-dimensional matrix;
[0023] Extracting the first three principal components of the three-dimensional matrix to obtain the target principal component;
[0024] Performing plane image processing on the three two-dimensional matrices corresponding to the target principal components, and converting the three plane images obtained by the processing into different color channels to obtain three channels;
[0025] The three channels are combined into a target color plane image to complete the imaging display process of the mass spectrum signal peak data.
[0026] Optionally, the processing of the marker plane dimension reduction matrix based on a preset imaging method to perform imaging display on the mass spectrometry signal peak data includes:
[0027] Calculate the distance between the peak intensity imaging planes corresponding to the peak intensities of any two markers in the marker plane dimensionality reduction matrix based on a preset distance calculation formula to obtain a distance matrix corresponding to each marker;
[0028] The distance matrix is converted into a one-dimensional distance numerical vector containing the distances of related markers by using a multidimensional scaling analysis method, and the intensity imaging planes corresponding to the peak intensities of all markers corresponding to the marker plane reduction matrix are sorted according to the size of the one-dimensional distance numerical vector, so as to stack the sorted intensity imaging planes in sequence on the coordinate axis of the three-dimensional imaging according to a preset length unit, so as to obtain a marker fault stack three-dimensional imaging;
[0029] Linear continuous interpolation is performed between the intensity imaging planes of two adjacent markers of the marker tomographic stacking three-dimensional imaging to obtain the target three-dimensional reconstructed imaging to complete the imaging display process of the mass spectrometry signal peak data.
[0030] In a second aspect, the present application provides a mass spectrometry imaging data display device, comprising:
[0031] A peak intensity screening module is used to count the peak intensity differences of signal peaks in corresponding groups according to the preset grouping area and the spatial position information of the scanning detection points in the mass spectrum signal peak data, so as to screen a preset number of signal peaks with differences in peak intensity to obtain a corresponding marker list vector; the mass spectrum signal peak data includes a signal peak mass-to-charge ratio vector, a peak intensity numerical matrix composed of the peak intensity of the scanning detection point at each signal peak mass-to-charge ratio, and the spatial position information associated with the scanning detection point;
[0032] A dimensionality reduction module is used to read the target peak intensity of all scanning detection points on the plane two-dimensional coordinates of the tissue sample corresponding to each marker in the marker list vector, and perform one-dimensional expansion processing on the plane two-dimensional coordinates to obtain a coordinate vector, and obtain a one-dimensional vector corresponding to the target peak intensity, so as to form a marker plane dimensionality reduction matrix according to all the one-dimensional vectors corresponding to the marker list vector;
[0033] An imaging display module is used to process the marker plane dimension reduction matrix based on a preset imaging method to perform imaging display on the mass spectrum signal peak data.
[0034] In a third aspect, the present application provides an electronic device, including:
[0035] Memory, used to store computer programs;
[0036] A processor is used to execute the computer program to implement the mass spectrometry imaging data display method as described above.
[0037] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program, which, when executed by a processor, implements the mass spectrometry imaging data display method as described above.
[0038] It can be seen that the present application first counts the peak intensity differences of signal peaks in the corresponding groups according to the preset grouping area and the spatial position information of the scanning detection points in the mass spectrum signal peak data, so as to screen out a preset number of signal peaks with differences in peak intensity to obtain the corresponding marker list vector; the mass spectrum signal peak data includes a signal peak mass-to-charge ratio vector, a peak intensity numerical matrix composed of the peak intensity of the scanning detection point at each signal peak mass-to-charge ratio, and the spatial position information associated with the scanning detection point; then reads the target peak intensity of all scanning detection points on the plane two-dimensional coordinates of the tissue sample corresponding to each marker in the marker list vector, and performs one-dimensional expansion processing on the plane two-dimensional coordinates to obtain a coordinate vector, and obtains a one-dimensional vector corresponding to the target peak intensity, so as to form a marker plane dimensionality reduction matrix according to all the one-dimensional vectors corresponding to the marker list vector; and then processes the marker plane dimensionality reduction matrix based on a preset imaging method to image and display the mass spectrum signal peak data. In this way, the present application can obtain the marker list vector corresponding to the mass spectrometry signal peak data according to the peak intensity difference, and then perform one-dimensional expansion of the two-dimensional plane coordinates corresponding to each marker in the marker list vector to obtain the one-dimensional vector corresponding to the peak intensity; then, the mass spectrometry signal peak data can be imaged and displayed using the marker plane dimensionality reduction matrix composed of one-dimensional vectors; the relationship between the two-dimensional imaging planes of the tissue samples determined by the expression of each marker molecule can be reflected, and the efficiency of mass spectrometry imaging can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0040] Figure 1 A flow chart of a mass spectrometry imaging data display method disclosed in this application;
[0041] Figure 2 A multi-channel color imaging diagram disclosed in this application;
[0042] Figure 3 A three-dimensional stacked graph disclosed in this application;
[0043] Figure 4 A three-dimensional reconstruction diagram disclosed in this application;
[0044] Figure 5 This is a schematic diagram of the structure of a mass spectrometry imaging data display device disclosed in this application;
[0045] Figure 6This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] See also Figure 1 As shown, an embodiment of the present invention discloses a mass spectrometry imaging data display method, comprising:
[0048] Step S11, counting the peak intensity differences of signal peaks in corresponding groups according to preset grouping areas and the spatial position information of scanning detection points in mass spectrum signal peak data, so as to screen a preset number of signal peaks with differences in peak intensity to obtain a corresponding marker list vector; the mass spectrum signal peak data includes a signal peak mass-to-charge ratio vector, a peak intensity numerical matrix composed of the peak intensity of the scanning detection point at each signal peak mass-to-charge ratio, and the spatial position information associated with the scanning detection point.
[0049] In an embodiment of the present application, first, several signal peaks can be screened out from the mass spectrum signal peak data as markers to form a marker list vector; specifically, the group corresponding to each signal peak is determined according to the preset grouping area and the spatial position information of the scanning detection point in the mass spectrum signal peak data; then, the peak intensity differences of the signal peaks in each group are counted, and the differences in the peak intensity values of several signal peaks in the corresponding groups are counted; then, multiple signal peaks with differences in peak intensity can be screened as a marker list to obtain a corresponding marker list vector; or several signal peaks can be pre-set as markers.
[0050] It should be pointed out that the mass spectrum signal peak data is the data obtained by processing the original mass spectrum imaging data, including the signal peak mass-to-charge ratio vector, the peak intensity numerical matrix composed of the peak intensity of the scanning detection point on each signal peak mass-to-charge ratio, and the spatial position information associated with the scanning detection point. Furthermore, before the peak intensity difference of the signal peak in each group is statistically analyzed according to the preset grouping area and the spatial position information of the scanning detection point in the mass spectrum signal peak data, it can also include: pre-processing the mass spectrum data of all scanning monitoring points or pixel points in the original mass spectrum imaging data, and establishing a signal peak mass-to-charge ratio vector based on the processed data, so as to use the signal peak mass-to-charge ratio vector, the peak intensity numerical matrix composed of the peak intensity of the scanning detection point on each signal peak mass-to-charge ratio, and the spatial position information associated with the scanning detection point to form the mass spectrum signal peak data; the pre-processing includes peak alignment operation and normalization operation. Specifically, in the process of processing the original mass spectrometry imaging data, the mass spectrometry data of all scanning monitoring points or pixel points in the original mass spectrometry imaging data are first preprocessed, and the preprocessing may include peak alignment operations and normalization operations; after such preprocessing, a signal peak mass-to-charge ratio vector can be established, and then a peak intensity numerical matrix can be formed based on the peak intensities corresponding to each signal peak mass-to-charge ratio of all scanning detection points, and then combined with the spatial position information associated with all scanning detection points, these three types of data can constitute mass spectrometry signal peak data.
[0051] In a specific embodiment, the peak intensity difference of the signal peak in the corresponding group according to the preset grouping area and the spatial position information of the scanning detection point in the mass spectrum signal peak data can include: determining the grouping of the mass spectrum peak intensity value vector corresponding to each scanning detection point in the mass spectrum signal peak data according to the preset grouping area and the spatial position information of the scanning detection point in the mass spectrum signal peak data; obtaining the corresponding peak intensity difference based on the difference of the peak intensity value of the signal peak in each group according to the preset statistical method. Specifically, in the process of counting the peak intensity difference of the signal peak in the group, firstly, the scanning detection point corresponding to each group can be determined according to the preset grouping area and the spatial position information of each scanning detection point in the mass spectrum signal peak data, and the grouping of the mass spectrum peak intensity value vector corresponding to each scanning detection point in the mass spectrum signal peak data can be identified; then, the difference of the peak intensity value of the signal peak in each group can be based on the preset statistical method. In a specific embodiment, the difference of the peak intensity value can be statistically calculated by a rank sum test or a t test, and the peak intensity difference of each signal peak in each group can be statistically obtained.
[0052] Step S12, read the target peak intensity of all scanning detection points on the plane two-dimensional coordinates of the tissue sample corresponding to each marker in the marker list vector, and perform one-dimensional expansion processing on the plane two-dimensional coordinates to obtain a coordinate vector, and obtain a one-dimensional vector corresponding to the target peak intensity, so as to form a marker plane dimensionality reduction matrix according to all the one-dimensional vectors corresponding to the marker list vector.
[0053] In this embodiment, the marker list vector of the mass spectrometry imaging data corresponding to the tissue sample can be obtained through the above steps. For each marker in the marker list vector, the target peak intensity of all scanning detection points on the plane two-dimensional coordinates of the corresponding tissue sample can be read, and the two-dimensional plane distribution of the target peak intensity can be obtained; then the two-dimensional coordinates of the two-dimensional plane can be reduced in dimension, and one-dimensionally expanded to obtain the corresponding one-dimensional coordinate vector. In this way, the target peak intensity is also correspondingly transformed into a one-dimensional vector; further, the one-dimensional vectors corresponding to each marker in the marker list vector can form a two-dimensional matrix, and the two-dimensional matrix can be standardized to obtain a marker plane reduced dimensionality matrix.
[0054] In a specific embodiment, the target peak intensity of all scanning detection points on the plane two-dimensional coordinates of the tissue sample corresponding to each marker in the marker list vector, and performing one-dimensional expansion processing on the plane two-dimensional coordinates to obtain a coordinate vector, and obtaining a one-dimensional vector corresponding to the target peak intensity, can include: reading the target peak intensity of all scanning detection points on the plane two-dimensional coordinates of the tissue sample corresponding to each marker in the marker list vector; performing one-dimensional expansion processing on the plane two-dimensional coordinates in a fixed order to obtain a corresponding one-dimensional coordinate vector, and transforming the target peak intensity into a corresponding one-dimensional vector based on the coordinate vector. Specifically, in the process of performing dimensionality reduction processing on the two-dimensional coordinates of the tissue sample, first read the target peak intensity of all scanning detection points on the plane two-dimensional coordinates of the tissue sample corresponding to each marker in the marker list vector, and perform dimensionality reduction processing according to the fixed order of the plane two-dimensional coordinates, and one-dimensional expansion to obtain a corresponding one-dimensional coordinate vector; then based on the coordinate vector after dimensionality reduction, the corresponding target peak intensity can be transformed into a one-dimensional vector.
[0055] In another specific embodiment, the forming of a marker plane dimension reduction matrix according to all the one-dimensional vectors corresponding to the marker list vector may include: forming a two-dimensional matrix according to all the one-dimensional vectors corresponding to the marker list vector; and standardizing the data in the two-dimensional matrix based on a preset standardization range to obtain a corresponding marker plane dimension reduction matrix. Specifically, the plane two-dimensional coordinates of the tissue sample of the marker corresponding to the marker list vector are reduced to a coordinate vector, and the related target peak intensity can be converted into a one-dimensional vector; then, a two-dimensional matrix is formed according to all the one-dimensional vectors corresponding to the marker list vector, and further, the one-dimensional vectors in the two-dimensional matrix can be standardized based on a preset standardization range, and the intensity vector of each marker can be standardized to the range of [0, 1] to obtain a standardized marker plane dimension reduction matrix.
[0056] Step S13: Processing the marker plane dimension reduction matrix based on a preset imaging method to perform imaging display on the mass spectrum signal peak data.
[0057] In this embodiment, the two-dimensional plane distribution of the peak intensity corresponding to all the screened marker molecules can be expanded in one dimension through the above steps to obtain the corresponding one-dimensional vector for the peak intensity. The two-dimensional vector for the peak intensity can be composed of all the obtained one-dimensional vectors, and then standardized to obtain the marker plane dimensionality reduction matrix; the marker plane dimensionality reduction matrix obtained in this way can reflect the relationship between the two-dimensional imaging planes of the tissue sample.
[0058] In a specific embodiment, the processing of the marker plane dimension reduction matrix based on a preset imaging method to image and display the mass spectrum signal peak data may include: performing principal component analysis on the marker plane dimension reduction matrix to obtain a marker principal component matrix; restoring each principal component vector of the marker principal component matrix to a two-dimensional matrix in a fixed order to restore the marker principal component matrix to a three-dimensional matrix; extracting the first three principal components of the three-dimensional matrix to obtain a target principal component; performing planar imaging processing on the three two-dimensional matrices corresponding to the target principal component, and converting the three plane images obtained by the processing into different color channels to obtain three channels; merging the three channels into a target color plane image to complete the imaging display process of the mass spectrum signal peak data. Specifically, in this embodiment, the marker plane dimension reduction matrix can be imaged based on the principal component analysis method, and the marker plane dimension reduction matrix can be analyzed by principal component to obtain a corresponding marker principal component matrix; for each principal component vector of the marker principal component matrix, it can be restored to a two-dimensional matrix in a fixed coordinate order, and the marker principal component matrix is then correspondingly restored to a three-dimensional matrix. Furthermore, the present application can extract the first three principal components of the three-dimensional matrix to obtain the target principal components, and visualize the two-dimensional matrices corresponding to the three target principal components according to their numerical planes, and assign different color channels (such as red, green, and blue) to each of them. Then, the three channels can be merged into a color plane image, and the synthetic marker color plane image can be automatically superimposed and displayed. In a specific embodiment, the final color imaging is as follows: Figure 2 shown.
[0059] In another specific embodiment, the processing of the marker plane dimensionality reduction matrix based on a preset imaging method to perform imaging and display of the mass spectrometry signal peak data may include: calculating the distance between the intensity imaging planes corresponding to the peak intensities of any two markers in the marker plane dimensionality reduction matrix based on a preset distance calculation formula to obtain a distance matrix corresponding to the marker plane dimensionality reduction matrix; converting the distance matrix into a one-dimensional distance using a multidimensional scaling analysis method, and sorting the intensity imaging planes corresponding to the peak intensities of all markers corresponding to the marker plane dimensionality reduction matrix according to the one-dimensional distance to stack the sorted intensity imaging planes on the coordinate axis of the three-dimensional imaging according to a preset length unit to obtain a marker tomographic stacked three-dimensional imaging; performing linear continuous interpolation between the intensity imaging planes of two adjacent markers of the marker tomographic stacked three-dimensional imaging to obtain a target three-dimensional reconstructed imaging to complete the imaging and display process of the mass spectrometry signal peak data. Specifically, the present application can calculate the distance between the intensity imaging planes corresponding to the peak intensities of any two markers in the marker plane dimensionality reduction matrix based on a preset distance calculation formula, such as the Euclidean distance or the Manhattan distance, so that the distance matrix between the planes can be formed according to the calculated distances; further, the present embodiment can use multidimensional scaling analysis (Classical multidimensional scaling, MDS) to convert the distance matrix into a one-dimensional distance, and sort the obtained one-dimensional distances of the intensity imaging planes of the markers. According to the sorted distance sequence, the related intensity imaging planes can be arranged in sequence and stacked in sequence on the z-axis of the three-dimensional imaging according to a preset fixed length unit to form a marker tomographic stacked three-dimensional imaging. Furthermore, the present embodiment can perform linear continuous interpolation between the intensity imaging planes of two adjacent markers in the stacked three-dimensional imaging, and finally form a three-dimensional reconstructed imaging. In a specific embodiment, the marker tomographic stacked three-dimensional imaging such as Figure 3 As shown, the three-dimensional reconstructed imaging obtained by continuous interpolation is as follows Figure 4 shown.
[0060] It can be seen that the present application can obtain the marker list vector corresponding to the mass spectrum signal peak data according to the peak intensity difference screening, and then the two-dimensional plane coordinates corresponding to each marker in the marker list vector are expanded in one dimension to obtain the one-dimensional vector corresponding to the peak intensity; then the marker plane dimensionality reduction matrix composed of one-dimensional vectors can be used to image and display the mass spectrum signal peak data. The present application can process the marker plane dimensionality reduction matrix by principal component analysis, and select the first three principal components to replace dozens or hundreds of marker molecules for color channel assignment superposition and automatic plane image display; the present application can perform one-dimensional expansion of the intensity two-dimensional plane distribution of all screened disease marker molecules, calculate the distance of all disease marker molecules according to the one-dimensional expansion vector and automatically sort them, and then stack the two-dimensional images of the disease marker molecule two-dimensional distribution imaging map on the three-dimensional coordinate axis according to the sorting, forming a three-dimensional stacking map, and further interpolating to form a three-dimensional reconstruction imaging of the marker molecule. In this way, the present application can reflect the relationship between the two-dimensional imaging planes of the tissue samples determined by the expression of each marker molecule in the process of mass spectrometry imaging data processing, reflect the changing trend between the imaging planes, and improve the efficiency of mass spectrometry imaging.
[0061] like Figure 5 As shown, the embodiment of the present application discloses a mass spectrometry imaging data display device, comprising:
[0062] A peak intensity screening module 11 is used to count the peak intensity differences of signal peaks in corresponding groups according to the preset grouping area and the spatial position information of the scanning detection points in the mass spectrum signal peak data, so as to screen a preset number of signal peaks with differences in peak intensity to obtain a corresponding marker list vector; the mass spectrum signal peak data includes a signal peak mass-to-charge ratio vector, a peak intensity numerical matrix composed of the peak intensity of the scanning detection point at each signal peak mass-to-charge ratio, and the spatial position information associated with the scanning detection point;
[0063] A dimension reduction module 12 is used to read the target peak intensity of all scanning detection points on the plane two-dimensional coordinates of the tissue sample corresponding to each marker in the marker list vector, and perform dimension reduction processing on the plane two-dimensional coordinates to obtain a coordinate vector, and obtain a one-dimensional vector corresponding to the target peak intensity, so as to form a marker plane dimension reduction matrix according to all the one-dimensional vectors corresponding to the marker list vector;
[0064] The imaging display module 13 is used to process the marker plane dimension reduction matrix based on a preset imaging method to perform imaging display on the mass spectrum signal peak data.
[0065] It can be seen that the present application can obtain the marker list vector corresponding to the mass spectrometry signal peak data according to the peak intensity difference screening, and then perform one-dimensional expansion of the two-dimensional plane coordinates corresponding to each marker in the marker list vector to obtain the one-dimensional vector corresponding to the peak intensity; then, the mass spectrometry signal peak data can be imaged and displayed using the marker plane dimensionality reduction matrix composed of one-dimensional vectors; the relationship between the two-dimensional imaging planes of the tissue samples determined by the expression of each marker molecule can be reflected, and the efficiency of mass spectrometry imaging can be improved.
[0066] In a specific embodiment, the device may further include:
[0067] A preprocessing module is used to preprocess the mass spectrum data of all scanning monitoring points or pixel points in the original mass spectrum imaging data, and establish a signal peak mass-to-charge ratio vector based on the processed data, so as to utilize the signal peak mass-to-charge ratio vector, a peak intensity numerical matrix composed of the peak intensity of the scanning detection point at each signal peak mass-to-charge ratio, and the spatial position information associated with the scanning detection point to form the mass spectrum signal peak data; the preprocessing includes peak alignment operation and normalization operation.
[0068] In a specific embodiment, the peak intensity screening module 11 may include:
[0069] A scanning detection point grouping unit, used to determine the grouping of the mass spectrum peak intensity numerical vector corresponding to each scanning detection point in the mass spectrum signal peak data according to a preset grouping area and spatial position information of the scanning detection point in the mass spectrum signal peak data;
[0070] The peak intensity statistical unit is used to obtain the corresponding peak intensity difference based on the difference of the peak intensity values of the signal peaks in each of the groups based on a preset statistical method.
[0071] In a specific embodiment, the dimension reduction module 12 may include:
[0072] A peak intensity reading unit, used to read the target peak intensity of all scanning detection points on the plane two-dimensional coordinates of the tissue sample corresponding to each marker in the marker list vector;
[0073] The dimension reduction unit is used to perform one-dimensional expansion processing on the two-dimensional plane coordinates in a fixed order to obtain a corresponding one-dimensional coordinate vector, and transform the target peak intensity into a corresponding one-dimensional vector based on the coordinate vector.
[0074] In another specific embodiment, the dimension reduction module 12 may include:
[0075] A matrix construction unit, used for forming a two-dimensional matrix according to all the one-dimensional vectors corresponding to the marker list vector;
[0076] The matrix standardization processing unit is used to perform standardization processing on the data in the two-dimensional matrix based on a preset standardization range to obtain a corresponding marker plane dimension reduction matrix.
[0077] In a specific embodiment, the imaging display module 13 may include:
[0078] A principal component analysis unit, used for performing principal component analysis on the marker plane dimension reduction matrix to obtain a marker principal component matrix;
[0079] A matrix restoration unit, used for restoring each principal component vector of the marker principal component matrix into a two-dimensional matrix in a fixed order, so as to restore the marker principal component matrix into a three-dimensional matrix;
[0080] A principal component extraction unit, used for extracting the first three principal components of the three-dimensional matrix to obtain a target principal component;
[0081] A color channel assigning unit is used to perform plane image processing on the three two-dimensional matrices corresponding to the target principal components respectively, and convert the three plane images obtained by the processing into different color channels to obtain three channels;
[0082] The channel merging unit is used to merge the three channels into a target color plane image to complete the imaging display process of the mass spectrum signal peak data.
[0083] In another specific embodiment, the imaging display module 13 may include:
[0084] A distance calculation unit, used to calculate the distance between the intensity imaging planes corresponding to the peak intensities of any two markers in the marker plane dimensionality reduction matrix based on a preset distance calculation formula, and obtain a distance matrix corresponding to each marker;
[0085] A sorting unit, used to convert the distance matrix into a one-dimensional distance value vector containing the distances of related markers by using a multidimensional scaling analysis method, and sort the intensity imaging planes corresponding to the peak intensities of all markers corresponding to the marker plane reduction matrix according to the size of the one-dimensional distance value vector, so as to stack the sorted intensity imaging planes in sequence on the coordinate axis of the three-dimensional imaging according to a preset length unit to obtain a marker fault stack three-dimensional imaging;
[0086] The linear interpolation unit is used to perform linear continuous interpolation between the intensity imaging planes of two adjacent markers of the marker tomographic stacking three-dimensional imaging to obtain the target three-dimensional reconstructed imaging to complete the imaging display process of the mass spectrometry signal peak data.
[0087] Furthermore, the present application also discloses an electronic device. Figure 6This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.
[0088] Figure 6 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the mass spectrometry imaging data display method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0089] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0090] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0091] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, and can be Windows Server, Netware, Unix, Linux, etc. In addition to computer programs that can be used to complete the mass spectrometry imaging data display method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include computer programs that can be used to complete other specific tasks.
[0092] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the mass spectrometry imaging data display method disclosed above is implemented. For the specific steps of the method, reference may be made to the corresponding contents disclosed in the above embodiments, and no further description will be given here.
[0093] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0094] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0095] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0096] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0097] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for displaying mass spectrometry imaging data, characterized in that: include: According to the preset grouping area and the spatial position information of the scanning detection point in the mass spectrum signal peak data, the peak intensity difference of the signal peak in the corresponding group is counted to screen all the signal peaks with different peak intensities to obtain the corresponding marker list vector; the signal peak data includes the signal peak mass-to-charge ratio vector, the peak intensity numerical matrix composed of the peak intensity of the scanning detection point at each signal peak mass-to-charge ratio, and the spatial position information associated with the scanning detection point; Reading the target peak intensities of all scanning detection points on the plane two-dimensional coordinates of the tissue sample corresponding to each marker in the marker list vector, and performing one-dimensional expansion processing on the plane two-dimensional coordinates to obtain a coordinate vector, and obtain a one-dimensional vector corresponding to the target peak intensity, so as to form a marker plane dimensionality reduction matrix according to all the one-dimensional vectors corresponding to the marker list vector; Processing the marker plane dimension reduction matrix based on a preset imaging method to perform imaging display on the mass spectrometry signal peak data; The processing of the marker plane dimension reduction matrix based on a preset imaging method to perform imaging display on the mass spectrometry signal peak data includes: Performing principal component analysis on the marker plane dimension reduction matrix to obtain a marker principal component matrix; Restoring each principal component vector of the marker principal component matrix into a two-dimensional matrix in a fixed order to restore the marker principal component matrix into a three-dimensional matrix; Extracting the first three principal components of the three-dimensional matrix to obtain the target principal component; Performing planar image processing on the three two-dimensional matrices corresponding to the target principal components respectively, and converting the three planar images obtained by the processing into different color channels to obtain three channels; Merging the three channels into a target color plane image to complete the imaging display process of the mass spectrum signal peak data; Or, the processing of the marker plane dimension reduction matrix based on a preset imaging method to perform imaging display on the mass spectrometry signal peak data includes: Calculating the distance between the peak intensity imaging planes corresponding to any two markers in the marker plane dimensionality reduction matrix based on a preset distance calculation formula to obtain a distance matrix corresponding to each marker; The distance matrix is converted into a one-dimensional distance numerical vector containing the distances of related markers by using a multidimensional scaling analysis method, and the intensity imaging planes corresponding to the peak intensities of all markers corresponding to the marker plane reduction matrix are sorted according to the size of the one-dimensional distance numerical vector, so as to stack the sorted intensity imaging planes in sequence on the coordinate axis of the three-dimensional imaging according to a preset length unit, so as to obtain a marker fault stack three-dimensional imaging; Linear continuous interpolation is performed between the intensity imaging planes of two adjacent markers of the marker tomographic stacking three-dimensional imaging to obtain the target three-dimensional reconstructed imaging to complete the imaging display process of the mass spectrometry signal peak data.
2. The mass spectrometry imaging data display method according to claim 1, characterized in that: Before counting the peak intensity differences of signal peaks in corresponding groups according to the preset grouping areas and the spatial position information of the scanning detection points in the mass spectrum signal peak data, the method further includes: The mass spectrum data of all scanning monitoring points or pixel points in the original mass spectrum imaging data are preprocessed, and a signal peak mass-to-charge ratio vector is established based on the processed data, so as to form the mass spectrum signal peak data using the signal peak mass-to-charge ratio vector, a peak intensity numerical matrix composed of the peak intensity of the scanning detection point at each signal peak mass-to-charge ratio, and the spatial position information associated with the scanning detection point; the preprocessing includes peak alignment operation and normalization operation.
3. The mass spectrometry imaging data display method according to claim 1, characterized in that: The method of counting the peak intensity differences of the signal peaks in the corresponding groups according to the preset grouping areas and the spatial position information of the scanning detection points in the mass spectrum signal peak data comprises: Determine the grouping of the mass spectrum peak intensity numerical vector corresponding to each scanning detection point in the mass spectrum signal peak data according to the preset grouping area and the spatial position information of the scanning detection point in the mass spectrum signal peak data; Based on the preset statistical method, the difference in peak intensity values of the signal peaks in each of the groups is analyzed to obtain the corresponding peak intensity difference.
4. The mass spectrometry imaging data display method according to claim 1, characterized in that: The step of reading the target peak intensity of all scanning detection points on the two-dimensional coordinate plane of the tissue sample corresponding to each marker in the marker list vector, performing one-dimensional expansion processing on the two-dimensional coordinate plane to obtain a coordinate vector, and obtaining a one-dimensional vector corresponding to the target peak intensity includes: Reading the target peak intensity of all scanning detection points on the plane two-dimensional coordinates of the tissue sample corresponding to each marker in the marker list vector; The two-dimensional coordinates of the plane are subjected to one-dimensional expansion processing in a fixed order to obtain a corresponding one-dimensional coordinate vector, and the target peak intensity is transformed into a corresponding one-dimensional vector based on the coordinate vector.
5. The mass spectrometry imaging data display method according to claim 1, characterized in that: The forming of a marker plane dimension reduction matrix according to all the one-dimensional vectors corresponding to the marker list vectors comprises: Form a two-dimensional matrix according to all the one-dimensional vectors corresponding to the marker list vector; The data in the two-dimensional matrix is standardized based on a preset standardization range to obtain a corresponding marker plane dimension reduction matrix.
6. A mass spectrometry imaging data display device, characterized in that: include: A peak intensity screening module is used to count the peak intensity differences of signal peaks in corresponding groups according to the preset grouping area and the spatial position information of the scanning detection points in the mass spectrum signal peak data, so as to screen a preset number of signal peaks with differences in peak intensity to obtain a corresponding marker list vector; the mass spectrum signal peak data includes a signal peak mass-to-charge ratio vector, a peak intensity numerical matrix composed of the peak intensity of the scanning detection point at each signal peak mass-to-charge ratio, and the spatial position information associated with the scanning detection point; A dimensionality reduction module is used to read the target peak intensity of all scanning detection points on the plane two-dimensional coordinates of the tissue sample corresponding to each marker in the marker list vector, and perform one-dimensional expansion processing on the plane two-dimensional coordinates to obtain a coordinate vector, and obtain a one-dimensional vector corresponding to the target peak intensity, so as to form a marker plane dimensionality reduction matrix according to all the one-dimensional vectors corresponding to the marker list vector; An imaging display module, used for processing the plane dimension reduction matrix of the marker based on a preset imaging method to perform imaging display on the mass spectrum signal peak data; Wherein, the imaging display module comprises: A principal component analysis unit, used for performing principal component analysis on the marker plane dimension reduction matrix to obtain a marker principal component matrix; A matrix restoration unit, used for restoring each principal component vector of the marker principal component matrix into a two-dimensional matrix in a fixed order, so as to restore the marker principal component matrix into a three-dimensional matrix; A principal component extraction unit, used for extracting the first three principal components of the three-dimensional matrix to obtain a target principal component; A color channel assigning unit is used to perform plane image processing on the three two-dimensional matrices corresponding to the target principal components respectively, and convert the three plane images obtained by the processing into different color channels to obtain three channels; A channel merging unit, used for merging the three channels into a target color plane image to complete the imaging display process of the mass spectrum signal peak data; Or, the imaging display module comprises: A distance calculation unit, used to calculate the distance between the intensity imaging planes corresponding to the peak intensities of any two markers in the marker plane dimensionality reduction matrix based on a preset distance calculation formula, and obtain a distance matrix corresponding to each marker; A sorting unit, used to convert the distance matrix into a one-dimensional distance value vector containing the distances of related markers by using a multidimensional scaling analysis method, and sort the intensity imaging planes corresponding to the peak intensities of all markers corresponding to the marker plane reduction matrix according to the size of the one-dimensional distance value vector, so as to stack the sorted intensity imaging planes in sequence on the coordinate axis of the three-dimensional imaging according to a preset length unit to obtain a marker fault stack three-dimensional imaging; The linear interpolation unit is used to perform linear continuous interpolation between the intensity imaging planes of two adjacent markers of the marker tomographic stacking three-dimensional imaging to obtain the target three-dimensional reconstructed imaging to complete the imaging display process of the mass spectrometry signal peak data.
7. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the mass spectrometry imaging data display method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, implements the mass spectrometry imaging data display method according to any one of claims 1 to 5.
