A fusion method for computer processing acquisition equipment data
Through computer processing and collection device data fusion method, combining single cell information points and spatial transcriptome data, using deconvolution algorithm and optimal transmission theory, the resolution of the spatial transcriptome data matrix is improved, and the single cell identity and spatial transcriptome data are solved. It achieves high-precision cell type prediction and expression information analysis by solving the problem of difficult-to-reveal background.
Patent Information
- Application Number
- CN202210561789.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-23
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-05-23
AI Technical Summary
It is difficult to effectively understand the identity and spatial context of single cells using existing technology, and the spatial transcriptome data matrix resolution is lower than the single cell level, making it impossible to accurately reveal the expression information of different cells in tissues.
Through computer processing and collection equipment data fusion method, combined with single cell information points and spatial transcriptome data, using simulated data verification and real data analysis, using deconvolution algorithm and optimal transmission theory, to improve the resolution of spatial transcriptome data matrix , predict cell type proportions and cell numbers, and construct a spatial transcriptome data map with single-cell resolution.
It achieves high-precision amplification of the spatial transcriptome data matrix, accurately predicts cell types and expression information, improves the ability to study tissue heterogeneity and cell spatial structure, and reduces experimental errors.
Smart Images

Figure QLYQS_1 
Figure QLYQS_2 
Figure QLYQS_3
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of knowledge graphs, and in particular to entity alignment and enhancement technology of semantic information and structural information on knowledge graphs. Background Art
[0002] In recent years, single-cell transcriptome data can realize the full transcriptome sequencing of a single cell, but the spatial position information of these transcripts in the tissue is lost; on the contrary, the spatial transcriptome data matrix can capture the expression value of the transcriptome in space, but the captured transcriptome expression value is the average expression value of multiple heterogeneous cells. Therefore, the present invention proposes a computer processing acquisition device data fusion method to calculate which cell types each captured spatial cell information capture point S in the spatial transcriptome data matrix is composed of, and construct a spatial transcriptome data matrix map with single cell resolution. The spatial transcriptome data matrix technology provides unprecedented opportunities for studying tissue heterogeneity and cell spatial structure. However, the resolution of the spatial transcriptome data matrix is lower than the single cell level. How to understand the identity and spatial background of single cells and reveal which regions of different cells are expressed in the tissue provides new ideas. The invention proposes a method for combining single cell information points and spatial transcriptome data matrix to amplify the spatial transcriptome data matrix with single cell resolution. Here, the present invention uses data for experiments and analysis. First, simulated data is used to intuitively compare and verify the accuracy of the algorithm, and it is found that there is good accuracy between the predicted cell type ratio and the actual cell composition. Simulated data were used to compare the currently commonly used algorithms for predicting cell type ratios, and another method used real actual data to conduct a series of analyses on this set of data, further confirming the high accuracy of the present invention in detecting cell types and predicting the composition of spatial transcriptome data matrix points. Summary of the invention
[0003] In view of this, the present invention provides a method for fusing data of computer-processed acquisition devices, which solves or partially solves the above-mentioned problem.
[0004] In order to achieve the effect of the above technical solution, the technical solution of the present invention is as follows: it includes step 1, collecting several groups of different single cell information points and cell types of the device through a computer to form a cell data barcode, and analyzing and verifying the gene data, and introducing a set of simulation data sets to ensure the accuracy of the analysis and verification steps, the simulation data set is set in advance to construct the cell data barcode of each cell information capture point S in the spatial transcriptome data matrix, and the analysis and verification results finally obtained can be directly compared and analyzed with the real device collection results; the generation step of the simulation data set is: selecting part of the cell data barcode to construct a cell data barcode set, and splitting the cell data barcode set as needed and constructing it into a generation set matrix and a verification set matrix, the generation set matrix is used to simulate the spatial transcriptome data matrix, and the verification set matrix is used to verify the results of the integration of the cell data barcode and the spatial transcriptome data matrix in the subsequent process;
[0005] Step 2, design parameters: define the parameters in the spatial transcriptome data matrix, and design and construct the spatial transcriptome data matrix by computer according to the design parameters: assume that when there is a cell data barcode, there is a cell information capture point S in the spatial transcriptome data matrix, and determine that multiple cell data barcodes are obtained in each cell information capture point S; the spatial transcriptome data matrix also includes gene data and single cell information points; the gene data is associated with the single cell information points and the cell types, the single cell information points and the cell types contain different gene data, and the gene data is expressed in different single cell information points and cell types;
[0006] Step 3. Different single-cell information points correspond to different cell types; define the density and sparsity of cell types. Density is divided into high density or low density, indicating whether the cell type in a certain cell information capture point S is low density or high density; sparsity is the sparsity of the cell type distribution position. Sparsity indicates whether the cell type is evenly distributed in the spatial position or clustered in a certain piece, and considers the total number of cell information capture points S where the cell type is located and the average number of single-cell information points in each cell information capture point S at the same time;
[0007] Step 4: Start extracting the cell data barcode obtained from the cell information capture point S into single cell information points and cell types, and then use Dirichlet distribution to generate the ratio between adjustment and unadjustment for the cell type to which the single cell information point belongs: set the concentration of all existing cell types to 1, then the number of cells of each cell type in each cell information capture point S can be obtained, and the number of cells of each cell type needs to be adjusted to the integer value closest to the cell information capture point S, and then start defining the density of different cell types, and use the calculated cell type ratio density to adjust the number of single cell information points of each cell type that is most suitable for each cell type in each cell information capture point S by iteration; then sample from each cell type to obtain the total number of single cell information points to be analyzed, and sample the total number of single cell information points to obtain different cell types, and calculate the first expression matrix by the total number of single cell information points and different cell types;
[0008] Step 5, start preprocessing of the first original expression matrix: download and obtain the first original expression matrix from the website, the first original expression matrix includes single-cell transcriptome data and spatial transcriptome data matrix; the single-cell transcriptome data is composed of a first urgently needed expression matrix, the first urgently needed expression matrix is composed of gene data information and cell data barcodes, and the spatial transcriptome data matrix is composed of a second urgently needed expression matrix, the second urgently needed expression matrix is composed of gene data information and cell information capture points S; after importing the first original expression matrix into the preprocessing toolkit, the preprocessing toolkit processes the first original expression matrix, unifies the format, and creates a first original unified format object set;
[0009] Step 6: After the preprocessing toolkit creates the first original unified format object set, the first original unified format object set is saved in different storage locations in the preprocessing toolkit, and the storage location is commanded as a slot; the built-in functions in the preprocessing toolkit are then used to preprocess the data to obtain the first processed unified format object set. The built-in functions include screening, dimensionality reduction, clustering, and visualization operations. The preprocessing toolkit is used for quality control and analysis of single-cell information points, which can enable users to identify and interpret the sources of heterogeneity in single-cell transcriptome data, and at the same time provide built-in functions that can integrate single-cell information points of different cell types;
[0010] The steps for executing the screening function in the built-in function are as follows: establish a quality control chart, start observing the total number of expression values of the gene data in each cell data barcode in the first processing unified format object set, and calculate the total number of expression values of the mitochondrial gene data in each cell data barcode, wherein the mitochondrial gene data expression value is set to not be 0, thereby screening according to the total number of expression values of the gene data contained and the total number of expression values of the mitochondrial gene data, and then set a threshold for the calculated value, and the single cell information points below the threshold will be deleted from the cell data barcode;
[0011] The quality control charts respectively display the total amount of gene data measured in each cell data barcode in the first processing unified format object set, the sum of all gene expression data in each single cell information point measured, and the distribution of the total amount of mitochondrial gene data. Useless data is filtered out as needed through the quality control charts, and the filtered useless data is determined. The data with too high expression ratio of the generated mitochondrial gene data is set to be filtered out as useless data;
[0012] Then, the first processing unified format object set is standardized using a standardization function to remove technical errors and batch effects; a series of processing is performed on the first expression matrix to perform visualization operations and downstream analysis; the visualization operation can integrate the data in the first processing unified format object set after the standardization processing in a low-dimensional space for easy observation.
[0013] Step 7: Then, the linear transformation operation is started through the preprocessing toolkit. The linear transformation operation can preserve the Euclidean distance between single or multiple single-cell information points and map the principal components to biological covariates to improve the statistical efficiency of data analysis;
[0014] Step 8: To obtain the gene expression value of each gene data in the spatial transcriptome data matrix, multiply the single cell information point by a scaling factor, and sum all selected cell types and predefined constants to obtain a generation set matrix for simulating the spatial transcriptome data matrix, where the scaling factor is a custom constant;
[0015] Step 9, start the fusion calculation of single cell information points and spatial transcriptome data matrix: Sub-step 1: cluster the single cell information points with cell type labels to obtain different cell information clusters, find out the specific genes in each cell information cluster that are differentially expressed from other cell information clusters as semi-supervised information, and the semi-supervised information provides prior information for the subsequent deconvolution algorithm; Sub-step 2: perform deconvolution algorithm on the spatial transcriptome data matrix in combination with single cell information points; Sub-step 3: algorithm to improve the atlas resolution of the spatial transcriptome data matrix;
[0016] Sub-step 1: The Gini index of the analysis tool is used to obtain the characteristic gene set of each cell information cluster. The Gini index indicates the probability that a randomly selected sample in the sample set is misclassified. The smaller the Gini index, the smaller the probability that the selected sample in the set is misclassified, that is, the higher the purity of the set, and vice versa, the more impure the set;
[0017] By default, the top 100 gene data expressed in each group of cell information clusters are selected, and all selected gene data are saved as the expression gene data matrix Ghvg (X1, X2...); where X1 represents the gene data set of very highly expressed genes in the cell type, and X2 represents the gene data set of higher expression in the cell type, and so on. By default, sub-step 1 only selects the first two groups;
[0018] Since the selected gene data are the top 100 gene data expressed in each group of cell information clusters, there are differences in the gene expression of the top 100 gene data, some of which are highly expressed, and some of which are not highly expressed. The highly expressed genes in each cell type are used for training to improve the training speed, while the non-highly expressed genes that are screened out are not significantly expressed in each cell type and have no obvious characteristics. When the training speed is dragged down in the subsequent training process, the non-highly expressed genes are ignored through actual operations to reduce errors, and in subsequent calculations, it is set that the correlation between non-highly expressed genes and all cell types is not strong. The spatial transcriptome data matrix is screened using the high-expression gene matrix Ghvg (x1, x2...) to obtain the high gene expression matrix of the high-expression gene hvg and the cell information capture point S;
[0019] Select the corresponding groups of gene data according to the expression range of gene data, and save them into different training set matrices. At this time, the training set matrix is assigned {Gong(X1), Gong(X2), ...}.
[0020] Sub-step 2: Use the deconvolution algorithm model to perform a deconvolution algorithm on the spatial transcriptome data matrix in combination with the single-cell information points, and add the specific genes in step nine as a small amount of prior knowledge to the deconvolution algorithm model to form semi-supervised information, and assign a weight to the small amount of prior knowledge;
[0021] Sub-step 3: When finding marker genes in the cell information clusters, some cell information clusters have highly expressed gene data a1, and some cell information clusters have gene data a2 that is only highly expressed but not very highly expressed compared to other cell information clusters. In order to distinguish the highly expressed gene data a1 from the highly expressed but not very highly expressed gene data a2, different hierarchical prior knowledge is set, and the marker genes are divided into several categories, each of which is assigned different weights. The specific process of the deconvolution algorithm is as follows:
[0022] Start training the deconvolution algorithm model. First, input the number of cell types, the gene data to be trained, and the number of iterations. After training the deconvolution algorithm model, use the spatial transcriptome data matrix as the input file of the model, and input the semi-supervised information into the training set matrix {Gong(X1), Gong(X2), …}. The elements in the training set matrix default to Gong(X1) and Gong(X2). The weight of Gong(X1) in the training set matrix is set to 9, and the weight of Gong(X2) is set to 5.
[0023] In order to make the calculation results of the deconvolution algorithm model more accurate, the single-cell transcriptome data is first used for verification and parameter adjustment. The single-cell transcriptome data and Gong (X1) and Gong (X2) in the training set matrix can be directly put into the deconvolution algorithm model for training to obtain the verification set matrix composed of the real cell types and predicted cell types, and then verified together with the generation set matrix obtained in step eight;
[0024] Since the single-cell information point is labeled data and each single-cell information point has a cell type, a set of correlation matrices of predicted cell types and true cell types can be obtained. Then, based on the obtained correlation matrix, the difference between the predicted cell type and the true cell type is judged, so as to adjust the semi-supervised information and weights until the predicted cell type and the true cell type results are similar.
[0025] Sub-step 4: After the single-cell transcriptome data is verified and the parameters are adjusted, the adjusted parameters Gong(X'1) and Gong(X'2) are generated, and the deconvolution algorithm model begins to directly perform deconvolution operations on the spatial transcriptome data matrix. The spatial transcriptome data matrix and the adjusted parameters Gong(X'1) and Gong(X'2) are directly put into the deconvolution algorithm model for training calculations to obtain the probability distribution matrix of each cell information capture point S and cell type, and then the probability distribution matrix is normalized to obtain the cell type ratio prediction matrix;
[0026] Sub-step 5: Use the deconvolution algorithm to obtain the cell composition information in each cell information capture point S in the spatial transcriptome data matrix. Different sequencing platforms have different resolutions. Each cell information capture point S in the spatial transcriptome data matrix calculates the number of cells according to the conditions given in the experiment, that is, the spatial transcriptome data matrix directly obtains the number of cells in each cell information capture point S;
[0027] Each cell information capture point S in the spatial transcriptome data matrix obtains the proportion information and cell number information of different cell types. The spatial transcriptome data matrix can be amplified to an amplified expression matrix with single-cell resolution, and then the amplified expression matrix can be matched to the spatial position information. The steps are as follows:
[0028] Step 10, estimate the number of cells in the cell information capture point S: use the resolution size in the spatial transcriptome data matrix sequencing technology to determine the number of cells contained in each cell information capture point S. For the convenience of calculation and intuitive observation of the results, all cell information capture points S are uniformly amplified to the same multiple to generate amplified cell information capture points S*; if the capture size of the spatial transcriptome data matrix is 90μm, and the diameter of a single cell in the sequenced tissue is 10μm, it is assumed that all cell information capture points S contain 9 cells;
[0029] Step 11, amplify the spatial transcriptome data matrix expression matrix: obtain the cell type ratio prediction matrix Ψ={cell type×cell information capture point S} of the spatial transcriptome data matrix by the deconvolution algorithm, and it is known that the spatial transcriptome data matrix includes gene data and cell information capture point S, traverse the cell type ratio information in each cell information capture point S, combine the gene expression information in the cell information capture point S with the cell type ratio, and reasonably distribute the number of cells in the cell information capture point S according to the division of the cell ratio, and obtain an amplified spatial transcriptome data matrix gene expression matrix A*={gene data×amplified cell information capture point S*} in which the number of cells in each cell information capture point S is the same as the expected value;
[0030] Step 12, matching the spatial position information of the gene expression matrix of the amplified spatial transcriptome data matrix: after obtaining the gene expression matrix of the amplified spatial transcriptome data matrix, the corresponding amplified cell information capture point S* needs to be one-to-one matched with the expression information of the gene data in the gene expression matrix of the amplified spatial transcriptome data matrix, that is, it is further necessary to find the spatial position information of the expression matrix of the amplified spatial transcriptome data matrix;
[0031] The gene data expression information in the gene expression matrix of the amplified spatial transcriptome data matrix and the optimal transmission theory are used to find the position information between single-cell information points; the specific algorithm flow is as follows:
[0032] Obtain the gene data expression information after amplification in the amplified cell information capture point S*, and the spatial position information after amplification in the amplified cell information capture point S*;
[0033] After obtaining the gene expression matrix of the amplified spatial transcriptome data matrix, the gene expression in the original single-cell information point is used to calculate the Euclidean distance between the amplified single-cell information points, forming a metric matrix C1 between the amplified single-cell information points;
[0034] Calculation of the spatial position matrix after amplification: Calculate the Euclidean distance between the real spatial position point of the amplified single cell information point and the real spatial position point of the amplified single cell information point, and obtain the metric matrix C2 between the real spatial position point of the amplified single cell information point and the real spatial position point of the amplified single cell information point;
[0035] Set an initial number of amplified single-cell information points and a coupling matrix T consisting of the real spatial position points of the amplified single-cell information points, put the coupling matrix T, the metric matrix C1, and the metric matrix C2 into the optimal transmission model for training. The optimal transmission model is applied in the field of computer science. It uses geometric methods to model probability distributions and measure the distance between probability distributions. It is a bridge connecting geometry and probability. The number of iterations of the optimal transmission model is 1000, and the optimal probability coupling matrix T′ is found iteratively. The optimal probability coupling matrix T′ contains the probability of possible correspondence between each amplified single-cell information point and all other amplified single-cell information points. Through a stable matching algorithm, the point that each amplified single-cell information point is most likely to correspond to is found, thereby obtaining a one-to-one correspondence between the amplified single-cell information point and the real spatial position point.
[0036] The above operation is performed on all cell information capture points S to find the spatial position information corresponding to the amplified single cell information point and the amplified single cell information point in each cell information capture point S, thereby determining the position information of all amplified single cell information points after amplification to improve the resolution of the spatial transcriptome data matrix map;
[0037] The single cell information points captured in the cell data barcode at a specific cell information capture point S may come from a group of heterogeneous cell types, not the same cell type. The cell type distribution in each cell information capture point S in the spatial transcriptome data matrix is obtained by evaluation index 1 and evaluation index 2 to judge the data screening criteria, and the root mean square error is often used to measure the difference between the values and compare the deviation between the predicted results and the actual results.
[0038] Evaluation index 1 is to measure the difference between the two probability distributions P and Q by multiplying the probability distribution of the generation set matrix P, the probability distribution of the verification set matrix Q and the logarithmic function. The calculation formula of evaluation index 1 is:
[0039]
[0040] The logarithmic function is a convex function, E represents all single-cell information points in each cell information capture point S in all spatial transcriptome data matrices, and ε represents the single-cell information point used for judgment; P(ε) represents the probability distribution of all single-cell information points in each cell information capture point S in all spatial transcriptome data matrices to be found in the generation set matrix, and Q(ε) represents the probability distribution of all single-cell information points in each cell information capture point S in all spatial transcriptome data matrices to be found in the validation set matrix; the evaluation index 2 has a range of [0, 1], and P(ε) and Q(ε) replace P in the evaluation index 1. Replace Q in the evaluation index; if the two probability distributions P and Q are the same, the value of the obtained evaluation index 2 is 0, and the more dissimilar the distributions are, the closer it is to 1. The calculation formula of evaluation index 2 is: Specific implementation methods
[0041] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is described in detail in conjunction with the embodiments below. It should be noted that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention. Products that can achieve the same functions are equivalent replacements and improvements, and are all included in the protection scope of the present invention. The specific method is as follows:
[0042] Embodiment: This embodiment specifically describes the contents of a method for fusion of data collected by a computer: the present invention mainly uses a set of simulated data and a set of actual data. The simulated data can intuitively compare the difference between the model prediction results and the actual results, and can be compared with other model algorithms; while the actual biological data verifies from a biological perspective that the present invention can accurately predict the spatial distribution of cell types, thereby better understanding the structure and function of tissue cells. The device collects several sets of different single-cell information points and cell types to form cell data barcodes for analysis and verification by computer, and introduces a set of simulated data sets to ensure the accuracy of the analysis and verification steps. The simulated data sets are pre-set as the cell data barcodes of each cell information capture point S in the spatial transcriptome data. The final analysis and verification results can be directly compared and analyzed with the actual device collection results;
[0043] The steps for generating the simulated data set are as follows: split and construct the cell data point barcode set: split the cell data point barcode set into a generation set matrix and a validation set matrix. The generation set matrix is used to simulate the spatial transcriptome data, and the validation set matrix is used to verify the results of the integration of the cell data point barcode and the spatial transcriptome data in the subsequent process;
[0044] Design parameters: define the parameters in the spatial transcriptome data, and design and construct the spatial transcriptome data matrix by computer according to the design parameters: assume that when there is a cell data point barcode, there is a cell information capture point S in the spatial transcriptome data matrix, and determine that multiple cell data point barcodes are obtained in each cell information capture point S; the spatial transcriptome data matrix also includes gene data and single cell information points; the gene data and single cell information points are associated, and the single cell information points contain different gene data, and the gene data are expressed in different single cell information points;
[0045] Different single-cell information points correspond to different cell types; define the density and sparsity of cell types. Density is divided into high density or low density, indicating whether the cell type in a certain cell information capture point S is low density or high density; sparsity is the sparsity of the cell type distribution position. Sparsity indicates whether the cell type is evenly distributed in the spatial position or clustered in a certain piece, and considers the total number of cell information capture points S where the cell type is located and the average number of single-cell information points in each cell information capture point S at the same time;
[0046] Start by extracting the cell data point barcode obtained from the cell information capture point S into single cell information points and cell type composition, and then use Dirichlet distribution to generate the ratio between adjustment and non-adjustment for the cell types in the cell type composition; set the concentration of all existing cell types to 1, then the number of cells of each cell type in each cell information capture point S can be obtained, and the number of cells of each cell type needs to be adjusted to the integer value closest to the cell information capture point S, and then start to define the density of different cell types, and use the calculated cell type ratio density to adjust the return iteration to obtain the most appropriate number of cells of each cell type in each cell information capture point S; then sample from each cell type to obtain the total number of single cell information points to be analyzed, and sample the total number of single cell information points to obtain different cell types, and calculate the first expression matrix through the total number of single cell information points and different cell types;
[0047] To obtain the expression value of each gene data in the spatial transcriptome data matrix, the single-cell information point is multiplied by a scaling factor, and the sum is taken for all selected cell types and pre-defined constants to obtain a generation set matrix used to simulate the spatial transcriptome data, which is validated together with the validation set matrix, where the scaling factor is a custom constant;
[0048] Start preprocessing of the first original expression matrix: download and obtain the first original expression matrix from the website, the first original expression matrix includes single-cell transcriptome data and spatial transcriptome data; the single-cell transcriptome data is composed of a first urgently needed expression matrix, the first urgently needed expression matrix is composed of gene data information and cell data point barcodes, wherein the gene data information is a column and the cell data point barcodes are a row, and the spatial transcriptome data is composed of a second urgently needed expression matrix, the second urgently needed expression matrix is composed of gene data information and cell information capture point S, wherein the gene data information is a column and the cell information capture point S is a row; after importing the first original expression matrix into the preprocessing toolkit, the preprocessing toolkit processes the first original expression matrix, unifies the format, and creates a first original unified format object set;
[0049] After the preprocessing toolkit creates the first original unified format object set, the first original unified format object set is saved in different storage locations in the preprocessing toolkit, and the storage locations are commanded as slots; the built-in functions in the preprocessing toolkit are then used to preprocess the data to obtain the first processed unified format object set. The built-in functions include screening, dimensionality reduction, clustering, and visualization operations. The preprocessing toolkit is used for quality control and analysis of single-cell information points, which can enable users to identify and interpret the sources of heterogeneity in single-cell transcriptome data, and provide built-in functions for integrating different types of single-cell information points;
[0050] The steps for executing the screening function in the built-in function are as follows: establish a quality control chart, start observing the total number of expression values of the gene data in each cell data point barcode in the first processing unified format object set, and calculate the total number of expression values of the mitochondrial gene data in each cell data point barcode, wherein the mitochondrial gene data expression value is set to not be 0, thereby screening according to the total number of expression values of the gene data contained and the total number of expression values of the mitochondrial gene data, and then set a threshold value for the calculated value, and the single cell information points below the threshold value will be deleted from the cell data point barcode;
[0051] The quality control charts respectively display the total amount of gene data measured in the barcode of each cell data point in the first processing unified format object set, the sum of all gene expression data in each single cell information point measured, and the distribution of the total amount of mitochondrial gene data. Useless data is filtered out according to needs through the quality control charts, and the filtered useless data is determined. The data with too high expression ratio of the generated mitochondrial gene data is set to be filtered out as useless data;
[0052] Then, the first processing unified format object set is standardized using a standardization function to remove technical errors and batch effects; a series of processing is performed on the first expression matrix to perform visualization operations and downstream analysis; the visualization operation can integrate the data in the first processing unified format object set after the standardization processing in a low-dimensional space for easy observation.
[0053] Then, the linear transformation operation is started through the preprocessing toolkit. The linear transformation operation can preserve the Euclidean distance between single or multiple single-cell information points and map the principal components to biological covariates to improve the statistical efficiency of data analysis.
[0054] Start the fusion calculation of single cell information points and spatial transcriptome data: Sub-step 1: Cluster the single cell information points with cell type labels to obtain different cell information clusters, find out the specific genes in each cell information cluster that are differentially expressed from other cell information clusters as semi-supervised information, and the semi-supervised information provides prior information for the subsequent deconvolution algorithm; Sub-step 2: Deconvolution algorithm is performed on the spatial transcriptome data in combination with the single cell information points; Sub-step 3: Algorithm for improving the resolution of the spatial transcriptome data map;
[0055] The Gini index of the analysis tool is used to obtain the characteristic gene set of each cell information cluster. The Gini index indicates the probability of a randomly selected sample in the sample set being misclassified. The smaller the Gini index, the smaller the probability of the selected sample in the set being misclassified, that is, the higher the purity of the set, and vice versa, the more impure the set;
[0056] By default, the top 100 gene data expressed in each group of cell information clusters are selected, and all selected gene data are saved as the expression gene data matrix Ghvg (X1, X2...); where X1 represents the gene data set of very highly expressed genes in the cell type, and X2 represents the gene data set of higher expression in the cell type, and so on. By default, sub-step 1 only selects the first two groups;
[0057] Since the selected gene data are the top 100 gene data expressed in each group of cell information clusters, there are differences in the gene expression of the top 100 gene data, some of which are highly expressed, and some of which are not highly expressed. The highly expressed genes in each cell type are used for training to improve the training speed, while the non-highly expressed genes that are screened out are not significantly expressed in each cell type and have no obvious characteristics. When the training speed is dragged down in the subsequent training process, the non-highly expressed genes are ignored through actual operations to reduce errors, and in subsequent calculations, it is set that the correlation between non-highly expressed genes and all cell types is not strong. The spatial transcriptome data is screened using the high-expression gene matrix Ghvg (x1, x2...) to obtain a high gene expression matrix composed of high-expression genes hvg and cell information capture points S;
[0058] Select the corresponding groups of gene data according to the range of gene data expression, and save the groups of gene data into different training set matrices {Gong(X1), Gong(X2), ...}.
[0059] Use the deconvolution algorithm model combined with single-cell information points to perform a deconvolution algorithm on the spatial transcriptome data, and add specific genes as a small amount of prior knowledge to the deconvolution algorithm model to form semi-supervised information, and assign a weight to the small amount of prior knowledge;
[0060] When searching for marker genes in the cell information clusters, some cell information clusters have highly expressed gene data a1, and some cell information clusters have only higher expression but not very high expression gene data a2 compared to other cell information clusters. In order to distinguish the highly expressed gene data a1 from the highly expressed but not very high expression gene data a2, different hierarchical prior knowledge is set, the marker genes are divided into several categories, and different weights are assigned to each category. The specific process of the deconvolution algorithm is as follows:
[0061] Start training the deconvolution algorithm model. First, input the number of cell types, the gene data to be trained, and the number of iterations. After training the deconvolution algorithm model, use the spatial transcriptome data matrix as the input file of the model, and input the semi-supervised information into the training set matrix {Gong(X1), Gong(X2), …}. The elements in the training set matrix default to Gong(X1) and Gong(X2). The weight of Gong(X1) in the training set matrix is set to 9, and the weight of Gong(X2) is set to 5.
[0062] In order to make the calculation results of the deconvolution algorithm model more accurate, the single-cell transcriptome data is first used for verification and parameter adjustment. The single-cell transcriptome data and Gong (X1) and Gong (X2) in the training set matrix can be directly put into the deconvolution algorithm model for training to obtain the verification set matrix composed of the real cell types and predicted cell types.
[0063] Since the single-cell information point is labeled data and each single-cell information point has a cell type, a set of correlation matrices of predicted cell types and true cell types can be obtained. Then, based on the obtained correlation matrix, the difference between the predicted cell type and the true cell type is judged, so as to adjust the semi-supervised information and weights until the predicted cell type and the true cell type results are similar.
[0064] After the single-cell transcriptome data is verified and the parameters are adjusted, the adjusted parameters Gong(X'1) and Gong(X'2) are generated, and the deconvolution algorithm model begins to directly perform deconvolution operations on the spatial transcriptome data matrix. The spatial transcriptome data matrix and the adjusted parameters Gong(X'1) and Gong(X'2) are directly put into the deconvolution algorithm model for training to obtain the probability distribution matrix of each cell information capture point S and cell type, and then the probability distribution matrix is normalized to obtain the cell type ratio prediction matrix;
[0065] The deconvolution algorithm is used to obtain the cell composition information in each cell information capture point S in the spatial transcriptome data. Different sequencing platforms have different resolutions. Each cell information capture point S in the spatial transcriptome data matrix calculates the number of cells according to the conditions given in the experiment, that is, the spatial transcriptome data matrix directly obtains the number of cells in each cell information capture point S.
[0066] Each cell information capture point S in the spatial transcriptome data matrix obtains the proportion information and cell number information of different cell types, then the spatial transcriptome data can be amplified to the amplified expression matrix with single-cell resolution, and then the amplified expression matrix can be matched to the spatial position information. The steps are as follows:
[0067] Estimate the number of cells in the cell information capture point S: Use the resolution size in the spatial transcriptome data sequencing technology to determine the number of cells contained in each cell information capture point S. For the convenience of calculation and intuitive observation of the results, all cell information capture points S are uniformly amplified to the same multiple to generate amplified cell information capture points S*; if the capture size of the spatial transcriptome data is 90μm, and the diameter of a single cell in the sequenced tissue is 10μm, it is assumed that all cell information capture points S contain 9 cells;
[0068] Amplify the spatial transcriptome data expression matrix: The cell type ratio prediction matrix Ψ={cell type×cell information capture point S} of the spatial transcriptome data is obtained by the deconvolution algorithm. It is known that the spatial transcriptome data matrix includes gene data and cell information capture point S. The cell type ratio information in each cell information capture point S is traversed, and the gene expression information in the cell information capture point S is combined with the cell type ratio. Based on the number of cells in the cell information capture point S that has been obtained, a reasonable allocation is performed according to the division of the cell ratio to obtain an amplified gene expression matrix A*={gene data×amplified cell information capture point S*} in which the number of cells in each cell information capture point S is the same as the expected value; for example, if the cell type 1 in the cell type: Cell type 2: cell type 3: cell type 4: cell type 5 = 0.2: 0.3: 0.4: 0.002: 0.098. Here, the proportion of cells occupied by cell type 3 is too small. Considering factors such as experimental errors and calculation errors, cell type 3 in the cell information capture point S will be deleted, and cell type 1: cell type 2: cell type 3: cell type 4: cell type 5 = 2: 3: 4: 0: 1 is obtained. The number of cells in the cell information capture point S is 9. Finally, the present invention expands the cell information capture point S into cell information capture point S_cell type 1 = 2, cell information capture point S_cell type 2 = 3, cell information capture point S_cell type 3 = 4, and cell information capture point S_cell type 5 = 1;
[0069] Matching the spatial position information of the expression matrix of the amplified spatial transcriptome data: After obtaining the expression matrix of the amplified spatial transcriptome data, each corresponding cell information capture point S also needs to be amplified and needs to be one-to-one corresponded with the expression information in the matrix, that is, this step needs to find the spatial position information of the expression matrix of the amplified spatial transcriptome data; the position information between the cell information capture point S and the cell information capture point S is obtained by slicing the spatial transcriptome data experiment, but the position information between cells in the amplified cell information capture point S is not clear in the present invention, so it is necessary to calculate the partial position information between cells in the cell information capture point S; cells with similar expressions are more likely to cluster together, so the present invention uses gene expression matrix information and optimal transmission theory to find the position information between cells; the specific algorithm flow is as follows:
[0070] Obtain the cell expression matrix information after amplification in the cell information capture point S and the spatial position information after amplification in the cell information capture point S;
[0071] After obtaining the amplified cell matrix, the gene expression in the single cell information point is used to calculate the Euclidean distance between the single cell information points, thereby forming a metric matrix C1 between the single cell information points.
[0072] The amplified spatial position matrix is calculated in the same way. The Euclidean distance between the real spatial position point of the single cell information point and the real spatial position point of the cell is calculated to obtain the metric matrix C2 between the real spatial position point of the cell and the real spatial position point of the cell.
[0073] Set an initial number of cells and a coupling matrix T consisting of the real spatial position points of the cells. Put the coupling matrix T, the metric matrix C1, and the metric matrix C2 into the optimal transmission model for training. The optimal transmission model is applied in the field of computer science. It uses geometric methods to model probability distributions and measure the distance between probability distributions. It is a bridge between geometry and probability.
[0074] The number of iterations here is 1000, and the optimal probability coupling matrix T′ is found iteratively; the optimal probability coupling matrix T′ contains the probability of possible correspondence between each single cell information point and all other points. Through the stable matching algorithm, the point that each single cell information point is most likely to correspond to is found, thereby obtaining a one-to-one correspondence between the single cell information point and the real space position point;
[0075] The above operation is performed on all cell information capture points S to find the spatial position information of the amplified single cell information point and the corresponding single cell information point in each cell information capture point S, thereby determining the position information of all the amplified single cell information points to achieve the purpose of improving the resolution of the spatial transcriptome data map;
[0076] The present invention mainly introduces the model framework and process of the algorithm of the present invention, and introduces it in detail from two parts: data collection and processing and the realization of single-cell resolution of spatial transcriptome data; in the data part, the present invention uses two sets of data - simulated data and real data. The present invention also makes a detailed description of the generation and collection of these two sets of data, and explains how to combine single-cell information points to make the spatial transcriptome data reach single-cell resolution. Algorithm flow;
[0077] Due to the limitations of experimental technology, the transcriptome captured by the probe at a specific location in spatial transcriptome data comes from multiple cells. These cells may come from a group of heterogeneous cells, not the same cell type. It is difficult to obtain the cell type distribution in each cell information capture point S in spatial transcriptome data through experimental methods, and it is also difficult to directly judge the accuracy of the prediction by using algorithms to parse the cell type information in spatial transcriptome data. Simulation data can judge the accuracy of the algorithm by directly comparing the predicted results with the actual results.
[0078] The root mean square error is often used to measure the difference between values and to compare the deviation between the model prediction results and the actual results. Although the present invention also uses single-cell transcriptome data, the present invention only uses it as an auxiliary tool, using single-cell information points to find and verify prior information, and does not directly integrate single-cell transcription data and spatial transcriptome data. The experimental methods, sequencing platforms and even some experimental samples of single-cell transcriptome sequencing technology and spatial transcriptome data technology are not consistent. Directly integrating these two sets of data may bring more errors to the cell type prediction of spatial transcriptome data. And the present invention proposes a new method to improve the resolution of spatial transcriptome data, using the obtained cell type ratio prediction and optimal transmission theory to obtain single-cell resolution spatial transcriptome data, so that it is crucial to better understand the functional association and heterogeneity of each region within the tissue. In the deconvolution algorithm, the present invention uses a semi-supervised topic model to predict the cell type ratio in the cell information capture point S. The semi-supervised information here affects the final result. Therefore, the present invention introduces a single cell information point for parameter adjustment, but this manual parameter adjustment is more troublesome and time-consuming. The present invention can further adjust here to simplify the parameter adjustment step; when the spatial transcriptome data is amplified, in order to facilitate calculation, the present invention directly takes the same amplification value for all cell information capture points S. Many spatial transcriptome data currently provided do not give the number of cells in each cell information capture point S, so the present invention uses an estimated value method for amplification. However, spatial transcriptome data technology is developing rapidly, and more and more spatial data will also give the number of cells contained in each group of cell information capture points S in the future. Using the specific number of cells contained, the present invention can more accurately predict the spatial transcriptome data with single cell resolution.
[0079] In order to compare the performance between different models and to directly observe the accuracy of the model algorithm, a set of synthetic data is introduced here to verify the model. The single-cell information point set used here is the single-cell annotation cell type used, which is the label of "subclaS". First, the single-cell information point set is divided into two equal and mutually exclusive data sets, namely the generation set and the validation set, and then the generation set is used as input to generate synthetic spatial transcriptome data according to the steps outlined above. The spatial transcriptome data obtained here contains 1000 cell information capture points S and 500 genes, and the genes are the top 500 genes with the highest expression. The validation set is reserved for subsequent deconvolution analysis as single-cell information points, validation set and its cell type annotation. Using single-cell sequencing data of mice, a synthetic cell mixture of 10 known cell types was generated. The spatial transcriptome data of 1000 locations from mouse scRNA-seq data were simulated and synthesized. For each location, a single cell was randomly selected from the scRNA and their transcriptomes were combined to form a mixture. This allows the synthesis of spatial transcriptome data of known cell type components to better and more directly verify the performance of various deconvolution models.
[0080] The actual single-cell transcription data was obtained through 10X Genomics Chromium technology. This set of data generated 3717 single-cell transcription profiles, with an average of 2900 genes and 11,000 unique transcripts per cell. This set of data was preprocessed to remove cells expressing less than 200 genes and genes expressed in less than 3 cells, and finally a set of 15323 genes×3760 barcodes of single-cell expression matrices was obtained. This set of single-cell information points and cell types consists of a total of 11 cell types. Clustering and visualization based on the annotation information can clearly show the distribution of each cell type.
[0081] The spatial transcriptome data gives multiple groups of slices and expression matrices. The present invention takes the first group of slices for each time point for experiment. The spatial transcriptome data of the 4.5-5PCW period consists of 38936 genes×55 cell information capture points S. After preprocessing and combining with specific genes, an expression matrix of 812 genes×55 cell information capture points S is obtained; the spatial transcriptome data consists of 38936 genes×238 cell information capture points S. After preprocessing and combining with specific genes, an expression matrix of 812 genes×238 cell information capture points S is obtained; the spatial transcriptome data consists of 39739 genes×210 cell information capture points S. After preprocessing and combining with specific genes, an expression matrix of 812 genes×210 cell information capture points S is obtained.
[0082] Since the simulation data is generated directly from single-cell information points and does not have images and location information of the spatial transcriptome data, only the simulation data is analyzed for cell type ratio prediction, and no further algorithm research on amplifying cell resolution is performed. However, since the prediction of cell type ratio in spatial transcriptome data plays a vital role in improving single-cell resolution, it is also very important to use simulation data to evaluate the cell type ratio of spatial transcriptome data.
[0083] The present invention first needs to utilize single cell information point to find the specific gene between different cell types.Because the single cell information point provided has marked the cell type, the present invention only needs to cluster the single cell information point marked to obtain different cell information clusters, then perform differential expression analysis between different cell information clusters, find the specific gene on each cell type, visualize the differential expression analysis heat map obtained, then the differential gene expression heat map can be obtained.From the heat map, it can be observed that several groups of highly expressed genes exist in the cell information clusters such as Blood cell information cluster, Oligos cell information cluster, Vascular cell information cluster, and the gene expression between different cell types also has larger differences.Here, the genes between different cell types are screened out, and some genes are highly expressed in the cell information cluster, and some genes are highly expressed in the cell information cluster, and some genes are lowly expressed in the cell information cluster.
[0084] The differential gene expression matrix obtained is a matrix G(x1, x2...) = gene × cell-type, i.e., the rows are gene and the columns are cell-type. The present invention first normalizes the row data to obtain the specificity ratio of the gene in each cell type. The larger the value, the more specific the gene is in this cell type compared to other cell types, i.e., the normalized differential gene expression matrix is obtained. Each column of data in the matrix is sorted to obtain the top 10 genes in each group of cell types. If the proportion of the gene in this cell type is >0.8, this group of genes is added to the specificity matrix G(X1). If the proportion of the gene in this cell type is <0.8 and >0.5, this group of genes is added to the specificity matrix G(X2). The two groups of specific gene matrices G(X1) and G(X2) obtained are used as prior information for subsequent initial iterations.
[0085] The highly expressed gene matrix G(x1, x2…x732) obtained using single-cell transcriptome data finally contains 732 genes, while the genes in the spatial transcriptome data are not completely consistent with these 732 genes. The spatial transcriptome data generates 500 highly expressed genes, and the intersection of these genes is taken, and finally only 254 genes are obtained. Therefore, the screened spatial transcriptome data becomes a matrix of 254 genes×1000 cell information capture points S.
[0086] Since the spatial correlation interpretation algorithm uses specific genes in cell types as prior information, and single-cell transcriptome data is labeled data, single-cell information points can be used for training first, and the correlation matrix between the obtained cell types and cells can be observed. Then, the label information is used to convert the cells into cell types, and the correlation between the predicted cell types and the actual cell types can be observed. The correlation heat map of the cell types predicted by the simulation data and the actual cell types can clearly show that the predicted cell types and the actual cell types are highly correlated. The present invention has good accuracy in predicting cell types.
[0087] If the obtained predicted cell type and real cell type correlation graphs are quite different, the present invention can be trained by continuing to adjust the prior information - G(X1, X2, ...) matrix and corresponding parameters until a better correlation graph is obtained, that is, when the dark color in the heat map of the predicted cell type and the real cell type presents a diagonal line, the prior information specific genes G(X1), G(X2) and weights at this time are required by the present invention, and the specific genes G(X1) and G(X2) are finally determined by the simulation data.
[0088] It is very important to use the deconvolution algorithm to test the changes in cell types at different stages in the spatial transcriptome data. First, the deconvolution algorithm is used to predict the sum of the cell type ratios of the spatial transcriptome data. After obtaining the cell type ratio, the spatial transcriptome data is amplified in combination with the expression matrix information. Finally, the spatial transcriptome data with single-cell resolution can be constructed.
[0089] Here, the gini method in the Giotto package is used to obtain the specific genes of each cell information cluster. The differentially expressed genes are visualized to obtain a heat map. From the heat map, it can be observed that there are several groups of highly expressed genes in the cell information clusters such as Immune, Cncc&Spc, and Erythrocytes, while the gene expressions of Fibroblast-like, Epicardium-derived cells, and Smooth muscle cells are very similar.
[0090] The highly expressed gene matrix G (x1, x2…x732) obtained using single-cell transcriptome data ultimately contains 862 genes, but the genes in the spatial transcriptome data at three different time points are not completely consistent with these 862 genes. After deintersecting the genes in the spatial transcriptome data and the highly expressed genes, only 812 genes are finally obtained. Therefore, the spatial transcriptome data at the three time points all become a matrix of 812 genes × cell information capture point S. Here, the genes with the largest differences are still selected according to the obtained differential gene expression matrix as the initial prior information.
[0091] The gene with the largest difference obtained in the previous step is used as prior information. First, the single cell information point is still used for verification, and the most appropriate specific gene and weight are obtained by adjusting the parameters. The single cell information point is used as the input of the deconvolution algorithm model to obtain the correlation matrix of the single cell and the predicted cell type. Then, the label of the single cell is used to obtain the correlation matrix of the real cell type and the predicted cell type. The heat map is obtained by visualizing it. It can be directly observed here that some cell types have similar expression genes to another cell type, which will cause high correlation points except for the diagonal line, but in general, the present invention can still accurately predict different cell types.
[0092] If the predicted cell type obtained is different from the real cell type correlation diagram, the present invention can be trained by continuing to adjust the prior information-G (X1, X2, ...) matrix and corresponding parameters until a better correlation diagram is obtained, that is, when the dark color in the heat map of the predicted cell type and the real cell type presents a diagonal line, the prior information specific gene G (X1), G (X2) and weight at this time are what the present invention needs, and the specific gene G (X1) and G (X2) finally determined by the specific gene are verified and adjusted by the single cell information point to the model, and the present invention can put the spatial transcriptome data into the model for training, and the data of three groups of spatial transcriptome data are used here for experimental analysis, and the deconvolution result diagram obtained can be used to list the distribution diagram of the cell type in each spatial transcriptome data, and several cell types with special distribution positions are listed here. By observing the distribution of cell types in space, it can be clearly found that the predicted cell type is highly consistent with the corresponding cell type spatial distribution position, so that it can be confirmed that the real biological data can also obtain good cell type prediction results using the present invention.
[0093] For the convenience of calculation, the present invention takes a cell information capture point S containing 9 cells and performs calculation according to the resolution of amplifying to 9 cells. The spatial transcription expression matrix and the spatial position point matrix are amplified, and then the specific position of the amplified cell in these 9 positions is found by using the optimal transmission algorithm for each cell information capture point S, and the spatial data with single cell resolution is obtained.
[0094] Here, simulated data is used to benchmark different deconvolution methods. The present invention provides a verified single-cell information point set and a simulated synthetic spatial transcriptome data verification set for each model method. The root mean square error between the predicted proportion of cell types in the spatial transcriptome data and the actual proportion is first calculated. Here, the dotted line represents the average RMSE value of the estimated cell type proportion (assuming that the concentration of each cell type is set to 1) from the 1000 cell information capture points S generated in the spatial transcriptome data. It can be clearly seen that the present invention achieves a lower result in the root mean square error, indicating that the predicted result is not much different from the actual result.
[0095] The ablation experiment of the present invention observes the impact of adding or removing certain factors on the final result. First, single-cell transcriptome data is directly added to the deconvolution model part, but semi-supervised information is not used. Instead, the single-cell transcriptome data is directly predicted first, and the single-cell transcriptome data is predicted using an improved correlation interpretation model. Define the required number of topics as k (i.e., the final number of cell types), perform unsupervised topic modeling on the single-cell transcriptome data, and maximize the correlation between cells in each cell type through iterative optimization, thereby obtaining a correlation matrix between topics and cells. In the single-cell transcriptome data, a cell can easily obtain the corresponding cell type label, so the matrix of topics and cell types can be obtained; then use the same method to process the spatial transcriptome data to obtain a correlation matrix of topics and cell information capture points S, and combine the topic × cell type matrix obtained above to finally obtain a prediction matrix of cell type × cell information capture point S.
[0096] The second set of experiments added semi-supervised information to the above model, and used the semi-supervised information to perform topic modeling on the single-cell transcriptome data and the spatial transcriptome data respectively. The two sets of data were then integrated to obtain the result matrix of the spatial transcriptome data cell type ratio prediction.
[0097] Single-cell transcriptome data are used to obtain marker genes for each cell type, and these marker genes are used as prior information to deconvolve the spatial transcriptome data. Here, only spatial transcriptome data is used for experiments, and no other unnecessary errors will be introduced.
[0098] When the obtained predicted cell type and real cell type correlation graphs are quite different, the present invention can be trained by continuing to adjust the prior information - G(X1, X2, ...) matrix and corresponding parameters until a better correlation graph is obtained, that is, when the dark color in the heat map of the predicted cell type and the real cell type presents a diagonal line, the prior information specific genes G(X1), G(X2) and weights at this time are required by the present invention, and the specific genes G(X1) and G(X2) are finally determined by the simulation data.
[0099] The highly expressed gene matrix G (x1, x2…x732) obtained using single-cell transcriptome data ultimately contains 862 genes, but the genes in the spatial transcriptome data at three different time points are not completely consistent with these 862 genes. After deintersecting the genes in the spatial transcriptome data and the highly expressed genes, only 812 genes are finally obtained. Therefore, the spatial transcriptome data at the three time points all become a matrix of 812 genes × cell information capture point S. Here, the genes with the largest differences are still selected according to the obtained differential gene expression matrix as the initial prior information.
[0100] The present invention uses two sets of data, specifically introduces the experimental results of the two sets of data, and analyzes the experimental results. First, simulated data is used to intuitively compare and verify the difference between the predicted results and the actual results, and simulated data is used to conduct comparative experimental analysis of the present invention and several commonly used models, and a set of ablation experiments is also introduced; secondly, real data is used to further verify the accuracy of the present invention in predicting cell types in spatial transcriptome data, and the resolution of this set of data is improved to better understand the spatial distribution of different tissues and cells.
[0101] Because spatial transcriptome data cannot reach the level of single-cell resolution, only single-cell resolution can better observe the information of cells in tissues, which is beneficial to biological research; the present invention first uses a deconvolution algorithm to calculate the proportion of cell types in the cell information capture point S in the spatial transcriptome data, and then uses the obtained cell type proportion for amplification to achieve single-cell resolution spatial transcriptome data
[0102] The above are only preferred embodiments of the present invention and are not intended to limit the scope of protection of the claims of the present invention. At the same time, the above description should be understandable and implementable to those skilled in the relevant technical field, so other equivalent changes based on the content disclosed by the present invention should be included in the scope of the claims.
[0103] Beneficial results: The present invention provides a method for fusion of data from computer processing acquisition equipment, which has obtained the cell composition information of each cell information capture point S in the spatial transcriptome data, and then obtained the number of cells in each cell information capture point S through analysis, and combined these two sets of information to draw a higher-resolution spatial transcriptome data map. Single-cell information points are used as an auxiliary tool to verify the algorithm, and single-cell information points and spatial transcriptome data are not directly integrated to reduce the experimental errors caused by the integration of data from different batches and platforms. Single-cell information points are used to simulate and synthesize corresponding spatial transcriptome data, and simulated data are used to analyze the difference between the predicted results of the present invention and the actual results. At the same time, the present invention draws a single-cell resolution spatial transcriptome data map for the spatiotemporal organizational changes of cell type composition.
Claims
1. A method for fusing data from a computer-processed collection device, characterized in that: The method comprises the following steps: collecting several groups of different single cell information points and cell types through a computer to form a cell data barcode, analyzing and verifying the gene data, and introducing a set of simulated data sets to ensure the accuracy of the analysis and verification steps. The simulated data set is set in advance to construct the cell data barcode of each cell information capture point S in the spatial transcriptome data matrix, and the analysis and verification results finally obtained can be directly compared and analyzed with the real device collection results; the generation steps of the simulated data set are: selecting part of the cell data barcodes to construct a cell data barcode set, and splitting and constructing the cell data barcode set into a generation set matrix and a verification set matrix as needed, the generation set matrix is used to simulate the spatial transcriptome data matrix, and the verification set matrix is used to verify the results of integrating the cell data barcode and the spatial transcriptome data matrix in the subsequent process; Step 2, design parameters: define the parameters in the spatial transcriptome data matrix, and design and construct the spatial transcriptome data matrix by computer according to the design parameters: assume that when there is a cell data barcode, there is a cell information capture point S in the spatial transcriptome data matrix, and determine that multiple cell data barcodes are obtained in each cell information capture point S; the spatial transcriptome data matrix also includes gene data and single cell information points; the gene data is associated with the single cell information points and the cell types, the single cell information points and the cell types contain different gene data, and the gene data is expressed in different single cell information points and cell types; Step 3: Different single cell information points correspond to different cell types; define the density and sparsity of the cell type, where the density is divided into high density or low density, indicating whether the cell type in a certain cell information capture point S is low density or high density; Sparsity refers to the sparseness of the cell type distribution position. Sparsity indicates whether the cell type is evenly distributed in the spatial position or clustered in a certain area, and considers the total number of cell information capture points S where the cell type is located and the average number of single cell information points in each cell information capture point S. Step 4: Start extracting the cell data barcode obtained from the cell information capture point S into single cell information points and cell types, and then use Dirichlet distribution to generate the ratio between adjustment and unadjustment for the cell type to which the single cell information point belongs: set the concentration of all existing cell types to 1, then the number of cells of each cell type in each cell information capture point S can be obtained, and the number of cells of each cell type needs to be adjusted to the integer value closest to the cell information capture point S, and then start defining the density of different cell types, and use the calculated cell type ratio density to adjust the number of single cell information points of each cell type that is most suitable for each cell type in each cell information capture point S by iteration; then sample from each cell type to obtain the total number of single cell information points to be analyzed, and sample the total number of single cell information points to obtain different cell types, and calculate the first expression matrix by the total number of single cell information points and different cell types; Step 5, start preprocessing of the first original expression matrix: download and obtain the first original expression matrix from the website, the first original expression matrix includes single-cell transcriptome data and spatial transcriptome data matrix; the single-cell transcriptome data is composed of a first urgently needed expression matrix, the first urgently needed expression matrix is composed of gene data information and cell data barcodes, and the spatial transcriptome data matrix is composed of a second urgently needed expression matrix, the second urgently needed expression matrix is composed of gene data information and cell information capture points S; after importing the first original expression matrix into the preprocessing toolkit, the preprocessing toolkit processes the first original expression matrix, unifies the format, and creates a first original unified format object set; Step 6: After the preprocessing toolkit creates the first original unified format object set, the first original unified format object set is saved in different storage locations in the preprocessing toolkit, and the storage location is commanded as a slot; the built-in functions in the preprocessing toolkit are then used to preprocess the data to obtain the first processed unified format object set. The built-in functions include screening, dimensionality reduction, clustering, and visualization operations. The preprocessing toolkit is used for quality control and analysis of single-cell information points, which can enable users to identify and interpret the sources of heterogeneity in single-cell transcriptome data, and at the same time provide built-in functions that can integrate single-cell information points of different cell types; The steps for executing the screening function in the built-in function are as follows: establish a quality control chart, start observing the total number of expression values of the gene data in each cell data barcode in the first processing unified format object set, and calculate the total number of expression values of the mitochondrial gene data in each cell data barcode, wherein the mitochondrial gene data expression value is set to not be 0, thereby screening according to the total number of expression values of the gene data contained and the total number of expression values of the mitochondrial gene data, and then set a threshold for the calculated value, and the single cell information points below the threshold will be deleted from the cell data barcode; The quality control charts respectively display the total amount of gene data measured in each cell data barcode in the first processing unified format object set, the sum of all gene expression data in each single cell information point measured, and the distribution of the total amount of mitochondrial gene data. Useless data is filtered out as needed through the quality control charts, and the filtered useless data is determined. The data with too high expression ratio of the generated mitochondrial gene data is set to be filtered out as useless data; Then, a standardization processing function is used to standardize the first processing uniform format object set so as to remove technical errors and batch effects; A series of processing is performed on the first expression matrix to perform visualization operations and downstream analysis; The visualization operation can integrate the data in the first processed unified format object set after standardization into a low-dimensional space for easy observation. Step 7: Then, the linear transformation operation is started through the preprocessing toolkit. The linear transformation operation can preserve the Euclidean distance between single or multiple single-cell information points and map the principal components to biological covariates to improve the statistical efficiency of data analysis; Step 8: To obtain the gene expression value of each gene data in the spatial transcriptome data matrix, multiply the single cell information point by a scaling factor, and sum all selected cell types and predefined constants to obtain a generation set matrix for simulating the spatial transcriptome data matrix, where the scaling factor is a custom constant; Step 9, start the fusion calculation of single cell information points and spatial transcriptome data matrix: Sub-step 1: cluster the single cell information points with cell type labels to obtain different cell information clusters, find out the specific genes in each cell information cluster that are differentially expressed from other cell information clusters as semi-supervised information, and the semi-supervised information provides prior information for the subsequent deconvolution algorithm; Sub-step 2: perform deconvolution algorithm on the spatial transcriptome data matrix in combination with single cell information points; Sub-step 3: algorithm to improve the atlas resolution of the spatial transcriptome data matrix; Sub-step 1: The Gini index of the analysis tool is used to obtain the characteristic gene set of each cell information cluster. The Gini index indicates the probability that a randomly selected sample in the sample set is misclassified. The smaller the Gini index, the smaller the probability that the selected sample in the set is misclassified, that is, the higher the purity of the set, and vice versa, the more impure the set; By default, the top 100 gene data expressed in each group of cell information clusters are selected, and all selected gene data are saved as the expression gene data matrix Ghvg (X1, X2...); where X1 represents the gene data set of very highly expressed genes in the cell type, and X2 represents the gene data set of higher expression in the cell type, and so on. By default, sub-step 1 only selects the first two groups; Since the selected gene data are the top 100 gene data expressed in each group of cell information clusters, there are differences in the gene expression of the top 100 gene data, some of which are highly expressed, and some of which are not highly expressed. The highly expressed genes in each cell type are used for training to improve the training speed, while the non-highly expressed genes that are screened out are not significantly expressed in each cell type and have no obvious characteristics. When the training speed is dragged down in the subsequent training process, the non-highly expressed genes are ignored through actual operations to reduce errors, and in subsequent calculations, it is set that the correlation between non-highly expressed genes and all cell types is not strong. The spatial transcriptome data matrix is screened using the high-expression gene matrix Ghvg (x1, x2...) to obtain the high gene expression matrix of the high-expression gene hvg and the cell information capture point S; Select the corresponding groups of gene data according to the expression range of gene data, and save them into different training set matrices. At this time, the training set matrix is assigned {Gong(X1), Gong(X2), ...}. Sub-step 2: Use the deconvolution algorithm model to perform a deconvolution algorithm on the spatial transcriptome data matrix in combination with the single-cell information points, and add the specific genes in step nine as a small amount of prior knowledge to the deconvolution algorithm model to form semi-supervised information, and assign a weight to the small amount of prior knowledge; Sub-step 3: When finding marker genes in the cell information clusters, some cell information clusters have highly expressed gene data a1, and some cell information clusters have gene data a2 that is only highly expressed but not very highly expressed compared to other cell information clusters. In order to distinguish the highly expressed gene data a1 from the highly expressed but not very highly expressed gene data a2, different hierarchical prior knowledge is set, and the marker genes are divided into several categories, each of which is assigned different weights. The specific process of the deconvolution algorithm is as follows: Start training the deconvolution algorithm model. First, input the number of cell types, the gene data to be trained, and the number of iterations. After training the deconvolution algorithm model, use the spatial transcriptome data matrix as the input file of the model, and input the semi-supervised information into the training set matrix {Gong(X1), Gong(X2), …}. The elements in the training set matrix default to Gong(X1) and Gong(X2). The weight of Gong(X1) in the training set matrix is set to 9, and the weight of Gong(X2) is set to 5. In order to make the calculation results of the deconvolution algorithm model more accurate, the single-cell transcriptome data is first used for verification and parameter adjustment. The single-cell transcriptome data and Gong (X1) and Gong (X2) in the training set matrix can be directly put into the deconvolution algorithm model for training to obtain the verification set matrix composed of the real cell types and predicted cell types, and then verified together with the generation set matrix obtained in step eight; Since the single-cell information point is labeled data and each single-cell information point has a cell type, a set of correlation matrices of predicted cell types and true cell types can be obtained. Then, based on the obtained correlation matrix, the difference between the predicted cell type and the true cell type is judged, so as to adjust the semi-supervised information and weights until the predicted cell type and the true cell type results are similar. Sub-step 4: After the single-cell transcriptome data is verified and the parameters are adjusted, the adjusted parameters Gong(X'1) and Gong(X'2) are generated, and the deconvolution algorithm model begins to directly perform deconvolution operations on the spatial transcriptome data matrix. The spatial transcriptome data matrix and the adjusted parameters Gong(X'1) and Gong(X'2) are directly put into the deconvolution algorithm model for training calculations to obtain the probability distribution matrix of each cell information capture point S and cell type, and then the probability distribution matrix is normalized to obtain the cell type ratio prediction matrix; Sub-step 5: Use the deconvolution algorithm to obtain the cell composition information in each cell information capture point S in the spatial transcriptome data matrix. Different sequencing platforms have different resolutions. Each cell information capture point S in the spatial transcriptome data matrix calculates the number of cells according to the conditions given in the experiment, that is, the spatial transcriptome data matrix directly obtains the number of cells in each cell information capture point S; Each cell information capture point S in the spatial transcriptome data matrix obtains the proportion information and cell number information of different cell types. The spatial transcriptome data matrix can be amplified to an amplified expression matrix with single-cell resolution, and then the amplified expression matrix can be matched to the spatial position information. The steps are as follows: Step 10: Estimate the number of cells in the cell information capture point S: Use the resolution size in the spatial transcriptome data matrix sequencing technology to determine the number of cells contained in each cell information capture point S. For the convenience of calculation and intuitive observation of the results, all cell information capture points S are uniformly amplified to the same multiple to generate amplified cell information capture points S*; If the capture size of the spatial transcriptome data matrix is 90 μm, and the diameter of a single cell in the sequenced tissue is 10 μm, it is assumed that all cell information capture points S contain 9 cells; Step 11, amplify the spatial transcriptome data matrix expression matrix: obtain the cell type ratio prediction matrix Ψ={cell type×cell information capture point S} of the spatial transcriptome data matrix by the deconvolution algorithm, and it is known that the spatial transcriptome data matrix includes gene data and cell information capture point S, traverse the cell type ratio information in each cell information capture point S, combine the gene expression information in the cell information capture point S with the cell type ratio, and reasonably distribute the number of cells in the cell information capture point S according to the division of the cell ratio, and obtain an amplified spatial transcriptome data matrix gene expression matrix A*={gene data×amplified cell information capture point S*} in which the number of cells in each cell information capture point S is the same as the expected value; Step 12, matching the spatial position information of the gene expression matrix of the amplified spatial transcriptome data matrix: after obtaining the gene expression matrix of the amplified spatial transcriptome data matrix, the corresponding amplified cell information capture point S* needs to be one-to-one matched with the expression information of the gene data in the gene expression matrix of the amplified spatial transcriptome data matrix, that is, it is further necessary to find the spatial position information of the expression matrix of the amplified spatial transcriptome data matrix; The gene data expression information in the gene expression matrix of the amplified spatial transcriptome data matrix and the optimal transmission theory are used to find the position information between single-cell information points; the specific algorithm flow is as follows: Obtain the gene data expression information after amplification in the amplified cell information capture point S*, and the spatial position information after amplification in the amplified cell information capture point S*; After obtaining the gene expression matrix of the amplified spatial transcriptome data matrix, the gene expression in the original single-cell information point is used to calculate the Euclidean distance between the amplified single-cell information points, forming a metric matrix C1 between the amplified single-cell information points; Calculation of the spatial position matrix after amplification: Calculate the Euclidean distance between the real spatial position point of the amplified single cell information point and the real spatial position point of the amplified single cell information point, and obtain the metric matrix C2 between the real spatial position point of the amplified single cell information point and the real spatial position point of the amplified single cell information point; Set an initial number of amplified single-cell information points and a coupling matrix T consisting of the real spatial position points of the amplified single-cell information points, put the coupling matrix T, the metric matrix C1, and the metric matrix C2 into the optimal transmission model for training. The optimal transmission model is applied in the field of computer science. It uses geometric methods to model probability distributions and measure the distance between probability distributions. It is a bridge connecting geometry and probability. The number of iterations of the optimal transmission model is 1000, and the optimal probability coupling matrix T′ is found iteratively. The optimal probability coupling matrix T′ contains the probability of possible correspondence between each amplified single cell information point and all other amplified single cell information points. Through the stable matching algorithm, the point that each amplified single cell information point is most likely to correspond to is found, thereby obtaining a one-to-one correspondence between the amplified single cell information point and the real space position point. The above operation is performed on all cell information capture points S to find the spatial position information corresponding to the amplified single cell information point and the amplified single cell information point in each cell information capture point S, thereby determining the position information of all amplified single cell information points after amplification to improve the resolution of the spatial transcriptome data matrix map; The single cell information points captured in the cell data barcode at a specific cell information capture point S may come from a group of heterogeneous cell types, not the same cell type. The cell type distribution in each cell information capture point S in the spatial transcriptome data matrix is obtained by evaluation index 1 and evaluation index 2 to judge the data screening criteria, and the root mean square error is often used to measure the difference between the values and compare the deviation between the predicted results and the actual results. Evaluation index 1 is to measure the difference between the two probability distributions P and Q by multiplying the probability distribution of the generation set matrix P, the probability distribution of the verification set matrix Q and the logarithmic function. The calculation formula of evaluation index 1 is: The logarithmic function is a convex function, E represents all single-cell information points in each cell information capture point S in all spatial transcriptome data matrices, and ε represents the single-cell information point used for judgment; P(ε) represents the probability distribution of all single-cell information points in each cell information capture point S in all spatial transcriptome data matrices to be found in the generation set matrix, and Q(ε) represents the probability distribution of all single-cell information points in each cell information capture point S in all spatial transcriptome data matrices to be found in the validation set matrix; the evaluation index 2 has a range of [0, 1], and P(ε) and Q(ε) replace P in the evaluation index 1. Replace Q in the evaluation index; If the two probability distributions P and Q are the same, the value of the evaluation index 2 is 0. The more dissimilar the distributions are, the closer it is to 1. The calculation formula of the evaluation index 2 is:
