Mass spectrometry data automatic uploading method and terminal device

Through the automated mass spectrometry data upload method, the HTTP protocol and deep learning algorithm are used to solve the problem of low efficiency of traditional mass spectrometry data analysis, achieve fast and safe data upload and efficient analysis process, and support personalized analysis and multi-task management.

CN113204687BActive Publication Date: 2024-09-10MOSAIEN TECH (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110445233.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-11-10
Filing Date
2021-04-23
Publication Date
2024-09-10
Estimated Expiration
2041-04-23

AI Technical Summary

Technical Problem

Traditional mass spectrometry data analysis requires manual uploading, which is time-consuming and low-security. Moreover, the data generated by the mass spectrometer is large and of many types, resulting in low efficiency of traditional methods.

Method used

Provides a method for automatically uploading mass spectrometry data, by obtaining mass spectrometry data files that meet preset conditions, converting them into a unified format, and automatically uploading them to the back-end server using the Post method of the HTTP protocol, including file path and label information, compressing the data, and performing Peak detection and deep learning calculations generate preview images, perform anomaly detection and label processing on the client, and support multi-task management and personalized analysis templates.

Benefits of technology

It realizes the automatic upload of mass spectrometry data, shortens the upload time, improves security, saves server and traffic resources, improves data processing efficiency, supports remote viewing of experimental processes, detects abnormalities in time, and uses personalized analysis templates and multiple Task management significantly improves analysis efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113204687B_ABST
    Figure CN113204687B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and terminal device for automatically uploading mass spectrum data, the method comprising: obtaining a first mass spectrum data file that meets a first preset condition, the first mass spectrum data file including multiple file formats; converting the first mass spectrum data file into a second mass spectrum data file in a unified format; and automatically uploading the second mass spectrum data file to a back-end server using the Post method in the HTTP protocol. The present invention can automatically detect mass spectrum data files, and then upload files that meet the preset conditions to the back-end server, which is time-saving and highly secure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a method and terminal device for automatically uploading mass spectrometry data, and belongs to the technical field of data uploading. Background Art

[0002] A mass spectrometer, also known as a mass spectrometer, is an instrument used to separate and detect different isotopes. That is, it is a type of instrument that separates and detects the composition of matter based on the mass differences of atoms, molecules or molecular fragments of a substance, based on the principle that charged particles can be deflected in an electromagnetic field.

[0003] The data generated by mass spectrometers are large, with many files and different types. Traditional mass spectrometry data analysis requires copying them to a computer device through a hard drive, opening the analysis software, and manually uploading them according to the different file types used, which is time-consuming and has low security. Summary of the invention

[0004] The purpose of this application is to provide a method and terminal device for automatically uploading mass spectrometry data to solve the problems raised in the above-mentioned background technology.

[0005] The method for automatically uploading mass spectrometry data of the present invention comprises:

[0006] Acquire a first mass spectrum data file that meets a first preset condition, wherein the first mass spectrum data file includes multiple file formats;

[0007] Converting the first mass spectrum data file into a second mass spectrum data file in a unified format;

[0008] The second mass spectrometry data file is automatically uploaded to the back-end server using the Post method in the HTTP protocol.

[0009] Preferably, the second mass spectrometry data file is automatically uploaded to the backend server using the Post method in the HTTP protocol, specifically:

[0010] Parsing a CSV table to obtain a list of files to be uploaded; the CSV table includes the file path and corresponding label information of the second mass spectrometry data file to be uploaded;

[0011] Determine one by one whether the second mass spectrometry data files in the list of files to be uploaded exist, and if so, automatically upload the second mass spectrometry data files to the back-end server using the Post method in the HTTP protocol; if not, skip and query whether the next second mass spectrometry data file exists, and if the query reaches the end of the list of files to be uploaded, jump back to the beginning until all the second mass spectrometry data files have been generated and uploaded to the back-end server using the Post method;

[0012] Preferably, the label information includes project name, experimental group and label.

[0013] Preferably, the CSV table also includes the path of the folder to which the second mass spectrometry data file to be uploaded belongs and the corresponding label information.

[0014] Preferably, before the second mass spectrometry data file is automatically uploaded to the back-end server by using the Post method in the HTTP protocol, the method further includes:

[0015] compressing the second mass spectrum data file;

[0016] Accordingly, the second mass spectrometry data file is automatically uploaded to the back-end server by using the Post method in the HTTP protocol, specifically:

[0017] Using the Post method in the HTTP protocol, the compressed second mass spectrometry data file is automatically uploaded to the back-end server;

[0018] Preferably, compressing the second mass spectrum data file is specifically:

[0019] Extracting the ROI portion in the mass spectrum data in the second mass spectrum data file is specifically as follows:

[0020] A set of peak data that meets the second preset condition and is continuous in the RT direction within the preset MZ gap range is extracted.

[0021] Preferably, before the second mass spectrometry data file is automatically uploaded to the back-end server by using the Post method in the HTTP protocol, the method further includes:

[0022] sending the second mass spectrum data file to a computing box; the computing box includes a deep learning method for performing peak calculation;

[0023] Obtaining the calculation result output by the calculation box;

[0024] Accordingly, the second mass spectrometry data file is automatically uploaded to the back-end server by using the Post method in the HTTP protocol, specifically:

[0025] The calculation result is automatically uploaded to the backend server using the Post method in the HTTP protocol.

[0026] Preferably, before acquiring the first mass spectrum data file that meets the first preset condition, the method further includes:

[0027] Obtain all mass spectrometry data files output by the mass spectrometer;

[0028] Performing three-dimensional matrixing on the mass spectrum data in all the mass spectrum data files to obtain a preview image;

[0029] Using the Post method in the HTTP protocol, the preview image is automatically uploaded to the backend server;

[0030] The back-end server sends the received preview image to the terminal;

[0031] Preferably, the mass spectrum data in all the mass spectrum data files are three-dimensionally matrixed to obtain a preview image, specifically:

[0032] The mass spectrum data is converted into a three-dimensional matrix by using rt and mz in the mass spectrum data as rows and columns respectively and the intensity of the corresponding position as the value;

[0033] Map each intensity value to a 3-channel 32-bit color pixel, then convert the color pixel matrix into an image or obtain a TIC map by reading the rt-Intensity sum, or obtain an EIC map by summing the mz-Intensity, and use the image, the TIC map or the EIC map as a preview image;

[0034] Preferably, the backend server sends the received preview image to the terminal, specifically:

[0035] The back-end server sends the received preview image to the browser, the mobile phone bound WeChat account, or the bound email account by searching the account, so as to display it on a PC device or a mobile phone mobile device.

[0036] Preferably, before the preview image is automatically uploaded to the backend server by using the Post method in the HTTP protocol, the method further includes:

[0037] Using an abnormal stop detection algorithm and / or an abnormal peak detection algorithm to detect the preview image, and obtain an abnormal detection result;

[0038] Accordingly, the preview image is automatically uploaded to the backend server using the Post method in the HTTP protocol; the backend server sends the received preview image to the terminal, specifically:

[0039] The preview image and the abnormality detection result are automatically uploaded to the back-end server by using the Post method in the HTTP protocol; the back-end server sends the received preview image and the abnormality detection result to the terminal;

[0040] Preferably, the abnormal detection result includes an abnormal sample and an abnormal situation description.

[0041] Preferably, after automatically uploading the second mass spectrometry data file to the back-end server by using the Post method in the HTTP protocol, the method further comprises:

[0042] Acquire a list of the second mass spectrometry data files without label information from the backend server, recorded as a first data list;

[0043] adding label information to the second mass spectrum data file in the first data list;

[0044] The first data list with added tag information is uploaded to the backend server.

[0045] Preferably, after automatically uploading the second mass spectrometry data file to the back-end server by using the Post method in the HTTP protocol, the method further comprises:

[0046] The client sends the selected analysis template to the back-end server;

[0047] The back-end server transmits the mass spectrometry data and the analysis template in all the mass spectrometry data files to the algorithm server for processing and analysis;

[0048] Obtaining the analysis results of the algorithm server and displaying them on the mass spectrometry recognition platform interface;

[0049] Preferably, the step of generating the analysis template comprises:

[0050] The browser initiates a task execution request to the backend server, wherein the task execution request includes data information of edited nodes, super nodes and process connection lines;

[0051] The backend server sends the received data information to the algorithm server, and receives the result returned by the algorithm server;

[0052] The backend server returns a successful operation status to the browser, and the browser sends a request to save as a template to the backend server, and transmits the data source parameters and all other parameters to the backend server;

[0053] The back-end server stores it in a database as a reusable personalized template;

[0054] Preferably, the template includes a plurality of different task sub-templates;

[0055] The different task sub-templates include a molecular recognition sub-template, a sample recognition sub-template, a sample targeting recognition sub-template and a difference analysis sub-template.

[0056] Preferably, the second mass spectrometry data file is automatically uploaded to the backend server using the Post method in the HTTP protocol, specifically:

[0057] When the browser or client initiates multiple upload tasks, the browser or client sends the IDs of all tasks and the second mass spectrum data corresponding to each ID to the backend server;

[0058] The backend server sends the received id and the second mass spectrum data corresponding to each id to the task queue server, and the task queue server allocates computing resources and starts threads, and forwards the id and the second mass spectrum data corresponding to each id to the algorithm server;

[0059] After receiving the data, the algorithm server starts to execute the first processing and returns the processing result to the task queue server; wherein the first processing includes any one of calculation, machine learning, and deep learning;

[0060] The task queue server forwards the received processing result to the browser or the client via a socket;

[0061] The browser or the client uses the Post method in the HTTP protocol to automatically upload the second mass spectrometry data files in all tasks to the backend server.

[0062] Preferably, after automatically uploading the second mass spectrometry data file to the back-end server using the Post method in the HTTP protocol, the method further comprises:

[0063] The client or browser requests bioinformatics data, and the backend server sends the bioinformatics data to the client or the browser; the bioinformatics data includes the second mass spectrometry data file and information generated using the second mass spectrometry data file;

[0064] The client or the browser uses the bioinformatics data to create a two-dimensional or three-dimensional visual information graph, and establishes an association relationship ID between the second mass spectrometry data file and the information generated using the second mass spectrometry data file;

[0065] The browser or the client obtains the association relationship ID according to the user operation request, and searches for data information of the corresponding visualization information graph through the association relationship ID;

[0066] The browser or the client searches for the data information returned by the back-end server according to the association relationship ID, and displays the visualization information graph corresponding to the association relationship ID in the mass spectrum recognition interface through a visualization component.

[0067] The present invention also discloses a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0068] Compared with the prior art, the method for automatically uploading mass spectrometry data of the present invention has the following beneficial effects:

[0069] The present invention can automatically detect mass spectrometry data files, and then upload files that meet preset conditions to a back-end server, which is time-saving and highly secure.

[0070] The present invention provides a compression upload method, which saves back-end server, flow and network speed resources.

[0071] The present invention provides a peak detection computing box, which is loaded with a trained mass spectrometry data deep learning algorithm chip, saving GPU and improving efficiency.

[0072] The present invention can generate a preview image using mass spectrum data output by the mass spectrometer and send it to the terminal so as to realize remote viewing of the experimental process and ensure the data quality in the second mass spectrum data file uploaded to the back-end server.

[0073] The present invention also adds an abnormality detection algorithm on the client side to issue an alarm, so as to timely discover abnormal situations in the experiment process and handle them in time.

[0074] Mass spectrometry data often contains label information, such as disease group and normal group, medication group and non-medication group, experimental group and control group, etc. Therefore, the present invention adds label processing on the client to facilitate automatic analysis.

[0075] Since the mass spectrometry data experiment cycle is long and the analysis cycle is even longer, it takes an average of 3-6 months to complete the analysis. Therefore, the present invention provides an automatic analysis method, which directly initiates the analysis task from the experimental production environment. After the experiment is completed, the cloud service has strong computing power, which greatly improves efficiency and saves time. At the same time, the template used in the analysis of the present invention is generated by browser process customization. Traditional mass spectrometry analysis software has a fixed process and cannot be edited. The present invention provides a personalized custom editing process method and device, which is more applicable.

[0076] On the basis of the above automatic operation, the user initiated multiple tasks and needed to perform multi-task management. Traditional mass spectrometry software executes a single task. If multiple tasks require opening several software, the efficiency will be low. The present invention provides a multi-task management method, which can realize multi-task processing in the same software with high efficiency.

[0077] Traditional mass spectrometry analysis software uses forms to establish a database. Due to the large variety of mass spectrometry data and more complex experimental information, the operation of establishing a database through forms is complicated and very cumbersome, and the user experience is extremely poor. However, after the task is successful, the task results of the present invention can be displayed in a visual way, and the results are more intuitive. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] Figure 1 A flowchart of a method for automatically uploading mass spectrometry data for this application;

[0079] Figure 2 This is a detailed flow chart of a method for automatically uploading mass spectrometry data for this application. DETAILED DESCRIPTION

[0080] The present invention is described in detail below in conjunction with embodiments, but the present invention is not limited to these embodiments.

[0081] A flowchart of a method for automatically uploading mass spectrometry data of the present invention is shown in Figure 1 The detailed flow chart is shown in Figure 2 ,include:

[0082] Step 1: Obtain a first mass spectrum data file that meets a first preset condition. The first mass spectrum data file includes multiple file formats, specifically:

[0083] The client calls the FileSystemWatch module of the .Net framework to monitor the folder used to store mass spectrometry data, for example, the folder is E:\Desktop\New Folder. Once a file that meets the first preset condition is generated, the module sends a notification to the client main thread. The first preset condition is a restriction on the file format.

[0084] Step 2. Convert the first mass spectrometry data file into a second mass spectrometry data file in a unified format. Specifically, the client calls the external process msconvert.exe, inputs the file path with a suffix such as .d or .raw, sets the output path to be the same as the folder where the output file is located, and converts the original file into a file in mzxml format. For example, the file path is E:\Desktop\NewFolder\Pg Reference Sample.d, and the converted file is E:\Desktop\New Folder\Pg ReferenceSample.mzXML.

[0085] Step 3: Use the Post method in the HTTP protocol to automatically upload the second mass spectrometry data file to the backend server. For example, upload the converted file E:\Desktop\New Folder\Pg Reference Sample.mzXML to the backend server.

[0086] The above method can handle unlabeled files. In addition, it can also handle the upload of labeled files. Before monitoring, configure the corresponding label information for each folder, including project-experiment-label and other information. When uploading files to the back-end server, this information is attached to automatically complete the classification and sorting of files. When processing the upload of labeled files, step 3 is specifically: write the file path to be uploaded (which may not exist, waiting for the instrument to generate) and the corresponding label information into a CSV table. The client software will parse the content of the CSV table, generate a list of files to be uploaded, and obtain the corresponding project / experiment / label and other label information. When the user clicks Start, the client starts to determine whether the files in the list of files to be uploaded exist one by one. If the file exists, it is uploaded. If the file does not exist, it is skipped and the next file is queried. If the end of the file is queried, it will go back to the beginning of the file list until all files have been generated and uploaded to the back-end server.

[0087] In addition to CSV table monitoring, you can also drag and drop to the project-experiment folder. For example, drag the Pg ReferenceSample.d file to the project Project "test"-experiment Experiment "01" folder, and a temporary window will pop up to record the correspondence between the file and the label information Label "C" in the form of a list. Do not close this window and continue to append other files and corresponding other labels. The number of items in the list will increase until all files are uploaded to the backend server.

[0088] Get the upload result from the backend server. If the Post method parameters include project-experiment-tag information when uploading the file stream, it is a tagged upload, otherwise it is an untagged upload.

[0089] Since mass spectrometry production data files are particularly large, uploading them takes up a lot of traffic and back-end server resources. Therefore, this application provides a compressed upload method to save back-end server, traffic, and network speed resources.

[0090] The specific implementation is as follows: the client calls the FileSystemWatch module of the .Net framework to monitor a folder. Once a file that meets the preset requirements is generated, the conversion-Roi compression-upload steps are executed. To implement the steps, first convert PgReference Sample.d to generate Pg Reference Sample.mzXML, then execute Roi compression "Compress" to generate Pg Reference Sample_new.mzXML, and finally execute the upload "Upload" step. The module sends a notification to the client main thread. The compression algorithm refers to extracting the part of interest (ROI) in all mass spectrometry data, within a very small mass-to-charge ratio (MZ) gap range, and a set of peak data that meets certain conditions and is relatively coherent in the vertical coordinate direction of the retention time (RT) to generate a new mzxml. Due to the reduction in the amount of data, the new file requires less storage space than the original file, thereby achieving the purpose of compression.

[0091] The client calls the Post method of the HTTP protocol to send the file stream to the backend server and obtain the upload result from the backend server. If the Post method parameters include project-experiment-label information when uploading the file stream, it is a tagged upload, otherwise it is an untagged upload.

[0092] Since mass spectrometry production data files are particularly large, the present invention provides a deep learning method when parsing mass spectrometry data, but deep learning consumes a lot of GPUs and is expensive. The present invention provides a peak detection computing box, which is loaded with a trained mass spectrometry data deep learning algorithm chip to save GPUs and improve efficiency.

[0093] Specific implementation: In the first step, the client calls the FileSystemWatch module of the .Net framework to monitor a folder. Once a file that meets the preset requirements is generated, the conversion-Moloview peak detection-upload steps are executed. The MoloView peak monitoring calculation client steps: In the Moloview subpage of the Config page, first enter the correct calculation box HTTPServer address in the URL address bar, such as http: / / 192.168.1.104:2000, and click Connect to connect to the calculation box. When the client executes the MoloView peak extraction calculation step, the mzxml file is first sent to the calculation box through the Http protocol, and the corresponding peak calculation interface is initiated, and then the calculation result is queried every 5 seconds. If the file calculation is completed, the newly generated .molo file is downloaded from the calculation box to the PC where the client is located, which is the same as the mzxml file path selected previously. The role of using the calculation box: saving GPU, improving efficiency, reducing the amount of data, and improving the time to produce results. Correspondingly, after the client downloads, the client executes the subsequent upload of the .molo format file, calls the Post method of the HTTP protocol, and sends the file stream to the backend server; the upload result is obtained from the backend server. If the Post method parameters include project, experiment, and label information when uploading a file stream, it is a labeled upload. Otherwise, it is an unlabeled upload.

[0094] During the experiment, mass spectrometer technicians often need test tubes to check whether the equipment and samples are normal, and abnormalities may occur during the experiment. At this time, the experimenter cannot quickly know the abnormal situation. Users mainly view abnormal situations through total ion current diagrams (TIC), extracted ion current diagrams (EIC), and ion current diagrams. Based on this, the present invention provides some data processing solutions on the basis of automatic uploading, which provide users with real-time monitoring and timely processing methods when leaving the mass spectrometer experimental environment, and also facilitate subsequent automatic analysis. It is specifically implemented as follows:

[0095] First, generate a preview image: the client extracts all mass spectrometry data, and uses rt-mz as rows and columns, and the mass spectrometry peak intensity (Intensity) at the corresponding position as the value. The mass spectrometry data is matrixed in three dimensions, and each intensity value is mapped to a 3-channel 32-bit color pixel. Then, the Opencv library Mat related function is called to convert the color pixel matrix into a png image or other type of image. Alternatively, the TIC image can be obtained by reading the rt-Intensity sum, or the EIC image can be obtained by summing the mz-Intensity. This step can help customers to simply preview the general situation of the mass spectrometry data before uploading the image. Then the client sends the three images to the backend server through the above automatic upload solution. The backend server searches for an account and sends it to the browser, the mobile phone bound WeChat account, and the bound email account, and displays it on a PC device or mobile mobile device.

[0096] In addition to the above data processing method, the client also adds an anomaly detection algorithm to issue an alarm, detect abnormal situations in time, and handle them in time. Specific implementation:

[0097] The preview image is generated based on the first data processing method. The client also adds an abnormal detection algorithm, which does not require an internal standard. It uses the abnormal stop detection algorithm and the abnormal peak detection algorithm to detect the peak that should be in the user input parameter but is not detected or the mass spectrometer is abnormal. The client sends the abnormal sample and the abnormal situation description to the backend server. The backend server sends the search account to the browser, the mobile phone bound WeChat account, and the bound email account, and displays it on the PC device or mobile mobile device.

[0098] Mass spectrometry data often contains labels, such as disease group and normal group, medication group and non-medication group, experimental group and control group, etc. The client adds label processing to facilitate automatic analysis. Specific implementation:

[0099] Get a list of all untagged files from the backend server, that is, previously uploaded files that are not classified into the project-experiment and do not have tags. The file information mainly includes the file name and upload time. For example, the files are PgReference Sample.mzXML and Pg Reference Sample_new.mzXML.

[0100] After getting the file list, select the corresponding information from the three drop-down menus on the right side of the list: project-experiment-label. Then you can label single or multiple files on the client. Complete the drop-down menu for the selected file: project "test"-experiment "01"-label information "C".

[0101] Send the above information back to the backend server and click the "Save to server" button. The original unlabeled file will appear under the correct project-experiment name and have the corresponding label. It will be displayed on the client or browser device mass spectrum recognition interface.

[0102] Since the mass spectrometry data experiment cycle is long and the analysis cycle is even longer, it takes an average of 3-6 months to complete the analysis. The present invention provides a method for directly initiating analysis tasks from the experimental production environment. After the experiment is completed, coupled with the strong computing power of cloud services, efficiency is greatly improved and time is saved. Specific implementation:

[0103] The client calls the "Analysis Template" interface through the Http protocol, obtains the preset analysis template list from the backend server, selects an item in the list through the drop-down menu, and selects the "Difference Analysis" template in the list. When the conditions for initiating the experiment are met, the client notifies the server of the selected analysis template through the Http protocol. In the third step, the backend server transmits the data and analysis template to the algorithm server. After receiving the data, the algorithm server starts the corresponding processing and calculation and displays it on the mass spectrometry recognition platform interface.

[0104] The above analysis template is generated by customizing the browser process. Traditional mass spectrometry analysis software has a fixed process that cannot be edited and has low applicability. This application provides a personalized custom editing process method. Specific implementation:

[0105] The browser device sends the edited node, super node, process connection line data information to the connection node "mzXML-peak extraction-peak alignment", initiates a task request and clicks the "Run" button to the backend server;

[0106] After the backend server receives it, it sends it to the algorithm server, and after the operation is completed, the result is returned to the backend server;

[0107] The backend server returns a successful operation status to the browser, and the browser device sends a "save as template" request to the backend server, clears the data source parameter settings, and passes all other parameters to the backend server;

[0108] After the backend server receives it, it is stored in the database and saved as a reusable personalized template. The template can be different tasks, including "molecular identification", "sample identification", "sample targeted identification", and "difference analysis".

[0109] When the client or browser sends a "template direct run" request, it will obtain the template list information and parameter information from the backend server. The client or browser device sends the selected template and data information to the backend server, and then the automatic run task can be initiated.

[0110] On the basis of the above automatic operation, the user initiates multiple tasks and needs to manage multiple tasks. Traditional mass spectrometry software executes single tasks. If multiple tasks require opening several software, the efficiency will be low. This application provides a multi-task management method, which is specifically implemented as follows:

[0111] After the browser or client device initiates multiple tasks, it sends all task IDs and data to the backend server;

[0112] After receiving all task IDs, the backend server sends them to the task queue server. The task queue server allocates computing resources and starts threads, and forwards the task IDs to the algorithm server.

[0113] After receiving the data, the algorithm server starts to perform calculations, machine learning, deep learning and other processing, and returns the processing results to the task queue server;

[0114] The task queue server forwards it to the browser device through the socket, and finally presents it in the mass spectrometry recognition interface.

[0115] Traditional mass spectrometry analysis software uses forms to establish a database. Due to the large variety of mass spectrometry data and more complex experimental information, establishing a database through forms is complicated and cumbersome, and the user experience is extremely poor. This application provides three visual interaction methods, and the database can be efficiently established through visual interaction methods. The first visual interaction method is specifically:

[0116] The client or browser requests bioinformatics data, and the backend server sends the mass spectrometry information data to the frontend, including one type of bioinformatics data converted into feature information, digital information, image information, vector information and matrix information, another type of feature information is subjected to machine learning, deep learning, statistical processing and other first processing methods to obtain statistical information, and the third type is associated data information, that is, the two types of data, bioinformatics data and statistical information, are interrelated, which can be one-to-many, many-to-one, or one-to-one data association. Then the browser converts the m / z information and rt information in the feature information into horizontal and vertical coordinate axes to form a two-dimensional visual information map; or, converts the m / z information and rt information in the feature information into horizontal and vertical coordinate axes, and converts the isotope peaks, intensity values, matching times, and compound information of the peak extraction into z coordinates to form a three-dimensional visual information map.

[0117] The browser obtains the association relationship id according to the user operation request, and searches for the data information of the corresponding visualization information graph through the association relationship id. Among them, the user operation request is the user using the mouse, keyboard or control panel and other devices to click, box, drill down, hover, double-click and other operations on the browser. The user performs operations such as clicking, box, drilling down, etc., and generates a data index through the association relationship id for interaction; for example, click on the point of m / z=620.3959Da, rt=170.39s in the "Feature Map". After the browser obtains the id of the point, it finds the id information of the table corresponding to the "T-test" graph, "ROC" graph, "Box Plot" graph, and "HeatMap" graph through the association relationship id.

[0118] The browser searches for the data information returned by the backend server based on the association relationship ID, and displays the visualization information graph corresponding to the association relationship ID in the mass spectrometry recognition interface through the visualization component. By finding the association relationship ID, the table data returned by the backend server is searched and plotted. For example, p=0.04 is returned in the "T-test" graph, and AUC=0.6422 is returned in the "ROC" graph; corresponding plotting and display are performed through the echarts component, for example, drawing the "T-test" graph, "ROC" graph, "BoxPlot" graph, and "HeatMap" graph.

[0119] The second visualization interaction method is:

[0120] The browser obtains mass spectrometry information data, including statistical information and bioinformatics information generated by the algorithm, and user information obtained by the back-end server. The user uses the keyboard, mouse and other devices to select statistical information and fill in parameter ranges on the browser. For example, select "T-test" as "Model", select "p" as "Optional Parameter", fill in the parameter range "less than 0.05," and the browser sends the parameter information corresponding to the statistical information to the back-end server.

[0121] The backend server sends the above parameter information submitted by the user to the algorithm server. The algorithm server performs statistical filtering calculations based on the submitted parameters, including but not limited to intersection, union, table join, table filtering, etc. For example, if the calculated p is less than 0.05, the result "654" is sent to the backend server.

[0122] The back-end server then transmits the algorithm result data "654" to the browser. After the browser obtains the data, it searches for the corresponding visualization information graph, updates the visualization information graph, and displays it in the mass spectrometry recognition interface.

[0123] The second embodiment is based on the first embodiment, and adds a technical solution for collaborative interaction among an algorithm server, a back-end server, and a browser for interaction of statistical information and visualization results.

[0124] The third visual interaction method is as follows:

[0125] The browser obtains mass spectrometry information data, including bioinformatics information generated by the algorithm, user authority information and database information obtained by the back-end server. After the user selects and annotates the database information, interactive information is generated. For example, when the user clicks "annotate", the browser sends interactive information, including features, sample tissue, compound, device ID, annotation information ID, and file storage path information to the back-end server; the algorithm is any one of peak detection, peak matching, and peak alignment algorithms. The back-end server updates the database information based on the interactive information and sends the updated database information back to the browser. Among them, updating the database information may include: adding information, deleting information, or modifying information.

[0126] The browser displays the updated database information in the mass spectrum identification interface.

[0127] The third visual interaction method is the common Internet front-end and back-end interaction method other than the above methods.

[0128] The present invention digitizes mass spectrum information data based on the use of peak detection algorithms, thereby enabling further visualization.

[0129] In addition, traditional data processing software does not perform visual interaction, but only generates pictures through algorithms. This application uses front-end drawing to find the associated IDs between data, so that visual interaction can be performed.

[0130] The above are only a few embodiments of the present application and do not constitute any form of limitation to the present application. Although the present application is disclosed as above with preferred embodiments, it is not intended to limit the present application. Any technician familiar with the profession, without departing from the scope of the technical solution of the present application, using the technical content disclosed above to make slight changes or modifications are equivalent to equivalent implementation cases and fall within the scope of the technical solution.

Claims

1. A method for automatically uploading mass spectrometry data. It is characterized in that include: Obtain all mass spectrometry data files output by the mass spectrometer; Performing three-dimensional matrixing on the mass spectrum data in all the mass spectrum data files to obtain a preview image; Using the Post method in the HTTP protocol, the preview image is automatically uploaded to the backend server; The client sends the selected analysis template to the back-end server; The back-end server transmits the mass spectrometry data and the analysis template in all the mass spectrometry data files to the algorithm server for processing and analysis; Obtaining the analysis results of the algorithm server and displaying them on the mass spectrometry recognition platform interface; The steps of generating the analysis template include: The browser initiates a task execution request to the backend server, wherein the task execution request includes data information of edited nodes, super nodes and process connection lines; The backend server sends the received data information to the algorithm server, and receives the result returned by the algorithm server; The backend server returns a successful operation status to the browser, and the browser sends a request to save as a template to the backend server, clears the data source parameters, and transmits all remaining parameters to the backend server; The back-end server stores the received parameters in a database as a reusable personalized template; The back-end server sends the received preview image to the terminal; Acquire a first mass spectrum data file that meets a first preset condition, wherein the first mass spectrum data file includes a plurality of file formats, specifically: the client calls a monitoring module to monitor a folder for storing mass spectrum data, and when a file that meets the first preset condition is generated, the monitoring module sends a notification to the client main thread, wherein the first preset condition is a restriction on the file format; Converting the first mass spectrum data file into a second mass spectrum data file in a unified format; sending the second mass spectrum data file to a computing box; the computing box includes a deep learning method for performing peak calculation; Obtaining the calculation result output by the calculation box; The calculation results are automatically uploaded to the backend server using the Post method in the HTTP protocol, specifically: Parsing a CSV table to obtain a list of files to be uploaded; the CSV table includes the file path and corresponding label information of the second mass spectrometry data file to be uploaded; Determine one by one whether the second mass spectrometry data files in the list of files to be uploaded exist; if so, automatically upload the second mass spectrometry data files to the back-end server using the Post method in the HTTP protocol; if not, skip and query whether the next second mass spectrometry data file exists; if the query reaches the end of the list of files to be uploaded, jump back to the beginning until all the second mass spectrometry data files have been generated and uploaded to the back-end server using the Post method.

2. The method for automatically uploading mass spectrometry data according to claim 1, It is characterized in that The label information includes project name, experimental group and label.

3. The method for automatically uploading mass spectrum data according to claim 1, It is characterized in that Before automatically uploading the second mass spectrometry data file to the back-end server by using the Post method in the HTTP protocol, the method further includes: compressing the second mass spectrum data file; Accordingly, the second mass spectrometry data file is automatically uploaded to the back-end server by using the Post method in the HTTP protocol, specifically: The compressed second mass spectrometry data file is automatically uploaded to the back-end server using the Post method in the HTTP protocol.

4. The method for automatically uploading mass spectrum data according to claim 3, It is characterized in that Compressing the second mass spectrum data file is specifically: Extracting the ROI portion in the mass spectrum data in the second mass spectrum data file is specifically as follows: A set of peak data that meets the second preset condition and is continuous in the RT direction within the preset MZ gap range is extracted.

5. The method for automatically uploading mass spectrometry data according to any one of claims 1 to 4, It is characterized in that The mass spectrum data in all the mass spectrum data files are converted into a three-dimensional matrix to obtain a preview image, specifically: The mass spectrum data is converted into a three-dimensional matrix by using rt and mz in the mass spectrum data as rows and columns respectively and the intensity of the corresponding position as the value; Each intensity value is mapped to a 3-channel 32-bit color pixel, and then the color pixel matrix is ​​converted into an image or a TIC image is obtained by reading the rt-Intensity and summing it, or an EIC image is obtained by summing the mz-Intensity, and the image, the TIC image or the EIC image is used as a preview image.

6. The method for automatically uploading mass spectrum data according to claim 5, It is characterized in that The backend server sends the received preview image to the terminal, specifically: The back-end server sends the received preview image to the browser, the mobile phone bound WeChat account, or the bound email account by searching the account, so as to display it on a PC device or a mobile phone mobile device.

7. The method for automatically uploading mass spectrum data according to claim 1, It is characterized in that Before the preview image is automatically uploaded to the backend server by using the Post method in the HTTP protocol, the method further includes: Using an abnormal stop detection algorithm and / or an abnormal peak detection algorithm to detect the preview image, and obtain an abnormal detection result; Accordingly, the preview image is automatically uploaded to the backend server using the Post method in the HTTP protocol; the backend server sends the received preview image to the terminal, specifically: The preview image and the abnormality detection result are automatically uploaded to the back-end server by using the Post method in the HTTP protocol; the back-end server sends the received preview image and the abnormality detection result to the terminal.

8. The method for automatically uploading mass spectrum data according to claim 7, It is characterized in that The abnormal detection result includes an abnormal sample and an abnormal situation description.

9. The method for automatically uploading mass spectrum data according to claim 1, It is characterized in that After the second mass spectrometry data file is automatically uploaded to the back-end server by using the Post method in the HTTP protocol, the method further includes: Acquire a list of the second mass spectrometry data files without label information from the backend server, recorded as a first data list; adding label information to the second mass spectrum data file in the first data list; The first data list with added tag information is uploaded to the backend server.

10. The method for automatically uploading mass spectrum data according to claim 9, It is characterized in that The template includes a plurality of different task sub-templates; The different task sub-templates include a molecular recognition sub-template, a sample recognition sub-template, a sample targeting recognition sub-template and a difference analysis sub-template.

11. The method for automatically uploading mass spectrum data according to claim 1, It is characterized in that The method of using the Post method in the HTTP protocol to automatically upload the second mass spectrometry data file to the back-end server is specifically as follows: When the browser or client initiates multiple upload tasks, the browser or client sends the IDs of all tasks and the second mass spectrum data corresponding to each ID to the backend server; The backend server sends the received id and the second mass spectrum data corresponding to each id to the task queue server, and the task queue server allocates computing resources and starts threads, and forwards the id and the second mass spectrum data corresponding to each id to the algorithm server; After receiving the data, the algorithm server starts to execute the first processing and returns the processing result to the task queue server; wherein the first processing includes any one of calculation, machine learning, and deep learning; The task queue server forwards the received processing result to the browser or the client via a socket; The browser or the client uses the Post method in the HTTP protocol to automatically upload the second mass spectrometry data files in all tasks to the backend server.

12. The method for automatically uploading mass spectrum data according to claim 1, It is characterized in that After automatically uploading the second mass spectrum data file to the back-end server by using the Post method in the HTTP protocol, the method further includes: The client or browser requests bioinformatics data, and the backend server sends the bioinformatics data to the client or the browser; the bioinformatics data includes the second mass spectrometry data file and information generated using the second mass spectrometry data file; The client or the browser uses the bioinformatics data to create a two-dimensional or three-dimensional visual information graph, and establishes an association relationship ID between the second mass spectrometry data file and the information generated using the second mass spectrometry data file; The browser or the client obtains the association relationship ID according to the user operation request, and searches for data information of the corresponding visualization information graph through the association relationship ID; The browser or the client searches for the data information returned by the back-end server according to the association relationship ID, and displays the visualization information graph corresponding to the association relationship ID in the mass spectrum recognition interface through a visualization component.

13. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 12 are implemented.