Space transcriptome data deconvolution method based on graph attention auto-encoder
The method based on the graph attention autoencoder solves the problem that the spatial transcriptome technology in the existing technology cannot achieve single cell resolution, and achieves the characterization of the correlation of spatial sites and the accurate prediction of cell type proportions, which is suitable for in many fields of biological research.
Patent Information
- Application Number
- CN202410789167.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-19
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-19
AI Technical Summary
Existing spatial transcriptome technology cannot achieve single-cell resolution, resulting in the gene expression level observed at a single spatial location may come from heterogeneous cell types, and cannot effectively characterize the correlation between spatial locations.
A spatial transcriptome data deconvolution method based on graph attention autoencoder is used to construct graph data by standardizing preprocessing of scRNA-seq data and spatial transcriptome data of the same tissue, and using graph attention autoencoder to extract features. , and predict the proportion of cell types through the label predictor, effectively utilizing the position information of spatial locations.
It effectively depicts the correlation between spatial sites, integrates scRNA-seq data and spatial transcriptome data, improves the single-cell resolution of spatial transcriptome data, and can be applied to fields such as embryonic development, tumor development, and disease sample analysis. .
Smart Images

Figure CN118737294A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of spatial transcriptome technology, and in particular relates to a spatial transcriptome data deconvolution method based on a graph attention autoencoder. Background Art
[0002] The emerging spatial transcriptomics technology can retain the spatial location information of samples while obtaining gene expression, providing us with a new perspective to understand complex tissues. It is of great significance to reveal the spatial heterogeneity of biological tissues and is being used to solve hot issues in the fields of disease, organ development, and tumors. Although spatial transcriptomics technology is constantly developing and improving, it also has a major limitation: the commonly used spatial transcriptomics technology cannot achieve single-cell resolution. For example, the first-generation spatial transcriptomics technology measures a site with a diameter of 100μm, which can cover dozens of cells. The diameter of each spatial site of 10XGenomics Visium is reduced to 55μm, which still contains 1 to 10 cells. This results in the gene expression level observed at a single spatial site may come from heterogeneous cell types. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a spatial transcriptome data deconvolution method based on a graph attention autoencoder in response to the above-mentioned deficiencies in the prior art. The method effectively utilizes the position information of spatial sites to characterize the correlation between spatial sites.
[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is: a spatial transcriptome data deconvolution method based on a graph attention autoencoder, characterized in that it includes:
[0005] The gene expression of scRNA-seq data and spatial transcriptome data of the same tissue was standardized and preprocessed, and the common genes of scRNA-seq data and spatial transcriptome data were selected as the gene set. Then, several cell-simulated spatial sites were randomly selected from the scRNA-seq data to form a pseudo-spatial site. Pseudo-spatial transcriptome data were constructed based on multiple pseudo-spatial sites and their gene expression levels, and the pseudo-spatial sites of the pseudo-spatial transcriptome data were labeled with the proportion of cell types.
[0006] Graph data is constructed from the labeled pseudo-space transcriptome data and the pre-processed spatial transcriptome data. The nodes of the graph data are the pseudo-space sites of the pseudo-space transcriptome data and the real space sites of the spatial transcriptome data, and the edges between the nodes are established according to the clustering information and the spatial position.
[0007] A feature extractor for graph data is established by using a graph attention autoencoder to extract a feature set from the graph data;
[0008] The feature set is input into a label predictor, and the label of the spatial transcriptome data, i.e., the cell type proportion of the real spatial site, is input.
[0009] Preferably, the graph attention autoencoder consists of two parts, an encoder and a decoder, and a graph attention mechanism is added on the basis of the graph autoencoder; the label predictor is constructed by stacking multiple layers of neural networks.
[0010] Preferably, the specific method of the preprocessing is: logarithmically normalizing the gene expression values in the scRNA-seq data and the spatial transcriptome data so that the gene expression values of the data obey a Gaussian distribution.
[0011] Preferably, graph data is constructed from the labeled pseudo-space transcriptome data and the pre-processed spatial transcriptome data, the nodes of the graph data are the pseudo-space sites of the pseudo-space transcriptome data and the real space sites of the spatial transcriptome data, and the edges between the nodes are established according to the clustering information and the spatial position; specifically:
[0012] The labeled pseudo-spatial transcriptome data and the pre-processed spatial transcriptome data are mixed as nodes of the graph data and used and Represent the gene expression levels of pseudo-space sites and real-space sites, respectively, where m is the number of genes and n is p Indicates the number of spatial sites in pseudo-space transcriptome data, n r Represents the number of spatial sites of spatial transcriptome data; the attribute characteristics of the graph node are expressed as:
[0013] X=[X pseudo X real ]∈R m×N
[0014] Where N = n p +n r ;
[0015] The Leiden method is used to cluster the pseudo-space sites of pseudo-space transcriptome data and the real-space sites of spatial transcriptome data according to gene expression levels, and edges are established between the pseudo-space sites and real-space sites clustered in the same cluster to connect them and treat each other as neighbors; at the same time, for each real-space site, several real-space sites closest to it are selected as neighbors, and edges are established to connect them to form an undirected neighbor network.
[0016] Preferably, in each layer of the neural network of the encoder and the decoder, the attention weights are first calculated for the nodes of the graph data to determine the correlation between each node and its neighboring nodes, and then the features of the node and the features of its neighboring nodes are weighted and summed;
[0017] On the k-th layer network of the encoder model, the relevance of neighbor spatial site j to spatial site i is calculated according to the formula:
[0018]
[0019] Among them, W k is the trainable weight matrix of the encoder k-th layer network, and is a trainable weight vector, Sigmoid represents the sigmoid activation function; represents the embedding representation generated by the i-th spatial site at the k-1 layer, represents the embedding representation generated by the j-th spatial site at the k-1 layer;
[0020] In order to make the correlation coefficients of multiple neighboring nodes of node i comparable, they are standardized using the softmax function. The attention coefficient of the edge between the i-th spatial site and the j-th spatial site on the k-th layer is expressed as:
[0021]
[0022] Among them, S i Represents the set of neighboring spatial sites of spatial site i;
[0023] The input of the encoder is the node attribute matrix X of the graph data, that is, the gene expression matrix of the spatial site, and the low-dimensional feature representation of the node is obtained by aggregating the neighbor node information; using x i represents the standardized gene expression level of the ith spatial site, and L represents the number of layers in the encoder network; the input of the encoder is expressed as:
[0024]
[0025] The embedding generated by the i-th spatial site at the k-th layer of the encoder is represented as:
[0026]
[0027] Where σ is a nonlinear activation function;
[0028] In the last L layer of the encoder, no attention mechanism is used, which can be expressed as:
[0029]
[0030] can be regarded as a low-dimensional feature representation of the final spatial location; W L Represents the trainable weight matrix of the encoder L-th layer network;
[0031] The decoder part is opposite to the encoder part. The decoder constructs the low-dimensional representation of the spatial site into a reconstructed normalized gene expression profile; the input of the decoder is the output of the encoder, expressed as:
[0032]
[0033] The i-th spatial site is at the k-1th layer of the decoder, where the value range of k is k∈{2,..,L-1,L}, and the reconstructed embedding is expressed as:
[0034]
[0035] represents the trainable weight matrix of the kth layer of the decoder;
[0036] Same as the encoder, the last layer of the decoder can be expressed as:
[0037]
[0038] represents the output of the decoder, which is the normalized gene expression reconstructed by the spatial site. To prevent overfitting, we set in, represents the trainable weights of the kth layer of the decoder, W (k) represents the trainable weights of the encoder kth layer, represents the attention coefficient of the kth layer of the decoder, att (k) represents the attention coefficient of the encoder kth layer;
[0039] The loss function of the graph attention autoencoder is the error between the reconstructed gene expression and the original gene expression, expressed as:
[0040]
[0041] Preferably, the label predictor is first trained using labeled pseudo-spatial transcriptome data so that it can learn the relationship between spatial site features and cell type proportion labels, and then predict the labels of the spatial transcriptome data.
[0042] Preferably, the label predictor takes the feature set extracted by the feature extractor as input and obtains label information through three fully connected layers; in the neural network of the label predictor, the first two layers use the ReLU activation function, followed by a batch normalization layer, and the output layer uses the Softmax activation function.
[0043] Preferably, the result is obtained by a label predictor N is the total number of spatial sites, and F is the number of cell types; It consists of two parts:
[0044]
[0045] in, Indicates the proportion of cell types in the predicted pseudo-space sites, The proportion of cell types representing the real spatial sites;
[0046] The loss function of the label predictor is the cross entropy between the predicted labels of the pseudo-space transcriptome data and the known labels of the pseudo-space transcriptome data, as shown below:
[0047]
[0048] Among them, y i,f ∈Y p represents the proportion of the fth cell type in the known ith pseudo-space site, Represents the predicted proportion of the fth cell type in the ith pseudospace site.
[0049] Preferably, the objective loss function of the feature extractor and label predictor can be expressed as:
[0050] L=L 1 +λL 2
[0051] Among them, L 1 is the loss function of the feature extractor, L 12 is the loss function of the label predictor and λ is a hyperparameter.
[0052] Compared with the prior art, the present invention has the following advantages:
[0053] The present invention effectively utilizes the position information of spatial sites to characterize the correlation between spatial sites. By establishing a feature extractor through a graph attention autoencoder, not only the scRNA-seq data and the spatial transcriptome data are effectively integrated, but also the information of adjacent spatial sites is aggregated to utilize the spatial position information of the spatial transcriptome data. The method of the present invention deconvolves the spatial transcriptome data and can be applied to research in the fields of embryonic development, tumor development, disease sample analysis, etc.
[0054] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] Figure 1 This is a flow chart of a method and device for deconvolution of spatial transcriptome data based on a graph attention autoencoder disclosed in Example 1 of the present invention.
[0056] Figure 2 This is a distribution map of the cell proportions of the spatial sites of ventricular cardiomyocytes, atrial cardiomyocytes, smooth muscle cells, epicardial cells, and epicardium-derived cells obtained by using the deconvolution method GATED and the deconvolution algorithm MuSiC of the present invention for the human embryonic heart tissue data in Example 2 of the present invention.
[0057] Figure 3 The spatial distribution of epicardial source cells, epicardial cells, endothelial cell epicardium, fibroblasts and their corresponding marker genes obtained by using the deconvolution method GATED and the deconvolution algorithm MuSiC of the present invention for the human embryonic heart tissue data in Example 2 of the present invention are visualized respectively.
[0058] Figure 4 This is a distribution map of the proportion of each cell at a spatial site obtained by using the deconvolution method GATED and the deconvolution algorithm MuSiC of the present invention for human pancreatic ductal carcinoma in Example 3 of the present invention.
[0059] Figure 5 The cell types and spatial distribution of corresponding marker genes obtained by using the deconvolution method GATED and the deconvolution algorithm MuSiC of the present invention for human pancreatic ductal carcinoma in Example 3 of the present invention are visualized respectively.
[0060] Figure 6 The data of four human squamous cell carcinoma patients in Example 4 of the present invention are visualized and compared by the deconvolution method GATED and the deconvolution algorithm MuSiC of the present invention and their H&E staining images. DETAILED DESCRIPTION
[0061] Example 1
[0062] like Figure 1 As shown, a spatial transcriptome data deconvolution method based on a graph attention autoencoder in an embodiment of the present invention includes:
[0063] S1. Standardize and preprocess the gene expression of scRNA-seq data and spatial transcriptome data of the same tissue, select the common genes of scRNA-seq data and spatial transcriptome data as the gene set, and then randomly select several cell simulation spatial sites from the preprocessed scRNA-seq data to form a pseudo-space site. Construct pseudo-space transcriptome data based on multiple pseudo-space sites and their gene expression levels, and label the pseudo-space sites of the pseudo-space transcriptome data with the proportion of cell types;
[0064] The specific method of the standardization preprocessing is: logarithmically standardizing the gene expression values in the scRNA-seq data and the spatial transcriptome data so that the gene expression values of the data obey the Gaussian distribution.
[0065] The value of the number of cells in each pseudo-spatial site is specified according to the cellular resolution of the spatial transcriptome data used;
[0066] Since the cell type of each pseudo-space site in the pseudo-space transcriptome data is known, each pseudo-space site is labeled with the cell type ratio accordingly;
[0067] S2, constructing graph data from the labeled pseudo-space transcriptome data and the pre-processed spatial transcriptome data, where the nodes of the graph data are the pseudo-space sites of the pseudo-space transcriptome data and the real space sites of the spatial transcriptome data, and establishing edges between the nodes according to clustering information and spatial positions;
[0068] Specifically, the labeled pseudo-spatial transcriptome data and the preprocessed spatial transcriptome data are mixed as nodes of the graph data, using and Represent the gene expression levels of pseudo-space sites and real-space sites, respectively, where m is the number of genes and n is p Indicates the number of spatial sites in pseudo-space transcriptome data, n r Represents the number of spatial sites of spatial transcriptome data; the attribute characteristics of the graph node are expressed as:
[0069] X=[X pseudo X real ]∈R m×N
[0070] Where N = n p +n r ;
[0071] The Leiden method is used to cluster pseudo-space sites and real-space sites according to gene expression levels, and edges are established between pseudo-space sites and real-space sites that are clustered in the same cluster to connect them and treat them as neighbors. At the same time, in order to establish a relationship between real-space sites that are close to each other, the distance between each real-space site and other surrounding real empty sites is calculated based on its position coordinate information. Taking into account the scale of the data and subsequent training results, the three real-space sites closest to each real-space site are selected as neighbors, and edges are established to connect them to form an undirected neighbor network. A is used to represent the adjacency matrix of the graph. When there is an edge connecting node i and node j in the graph, let A ij =1, thus obtaining the adjacency matrix of the graph.
[0072] S3. Using a graph attention autoencoder to establish a feature extractor for graph data, and extracting a feature set from the graph data;
[0073] Specifically, the graph attention autoencoder consists of two parts: an encoder and a decoder, and a graph attention mechanism is added on the basis of the graph autoencoder;
[0074] In each layer of the neural network of the encoder and decoder, attention weights are first calculated for the nodes of the graph data to determine the correlation between each node and its neighboring nodes, and then the features of the node and the features of its neighboring nodes are weighted and summed;
[0075] On the k-th layer network of the encoder model, the relevance of neighbor spatial site j to spatial site i is calculated according to the formula:
[0076]
[0077] Among them, W k is the trainable weight matrix of the encoder k-th layer network, and is a trainable weight vector, Sigmoid represents the sigmoid activation function; represents the embedding representation generated by the i-th spatial site at the k-1 layer, represents the embedding representation generated by the j-th spatial site at the k-1 layer;
[0078] In order to make the correlation coefficients of multiple neighboring nodes of node i comparable, they are standardized using the softmax function. The attention coefficient of the edge between the i-th spatial site and the j-th spatial site on the k-th layer is expressed as:
[0079]
[0080] Among them, S i Represents the set of neighboring spatial sites of spatial site i;
[0081] The input of the encoder is the node attribute matrix X of the graph data, that is, the gene expression matrix of the spatial site, and the low-dimensional feature representation of the node is obtained by aggregating the neighbor node information; using x i represents the standardized gene expression level of the ith spatial site, the standardized gene expression level is the gene expression value that has undergone standardized preprocessing, and L represents the number of layers in the encoder network; then the input of the encoder is expressed as:
[0082]
[0083] The embedding generated by the i-th spatial site at the k-th layer of the encoder is represented as:
[0084]
[0085] Where σ is a nonlinear activation function;
[0086] In the last L layer of the encoder, no attention mechanism is used, which can be expressed as:
[0087]
[0088] can be regarded as a low-dimensional feature representation of the final spatial location; W L Represents the trainable weights of the L-th layer network;
[0089] The decoder part is opposite to the encoder part. The decoder constructs the low-dimensional representation of the spatial site into a reconstructed normalized gene expression profile; the input of the decoder is the output of the encoder, expressed as:
[0090]
[0091] The embedding reconstructed at the i-th spatial site in the k-1th layer of the decoder (the value range of k is k∈{2,..,L-1,L}) is expressed as:
[0092]
[0093] represents the trainable weights of the kth layer of the decoder;
[0094] Same as the encoder, the last layer of the decoder can be expressed as:
[0095]
[0096] The output of the decoder is the normalized gene expression reconstructed at the spatial site. To prevent overfitting, we set in, represents the trainable weights of the kth layer of the decoder, W (k) represents the trainable weights of the encoder kth layer, represents the attention coefficient of the kth layer of the decoder, att (k) represents the attention coefficient of the encoder kth layer;
[0097] The loss function of the graph attention autoencoder is the error between the reconstructed gene expression and the original gene expression, expressed as:
[0098]
[0099] S4. Input the feature set into a label predictor, and input the label of the spatial transcriptome data, that is, the cell type ratio of the real spatial site.
[0100] The label predictor is first trained using labeled pseudo-spatial transcriptome data to enable it to learn the relationship between spatial site features and cell type proportion labels, and then predict the labels of the spatial transcriptome data.
[0101] The label predictor is constructed by stacking multiple layers of neural networks; the label predictor takes the feature set extracted by the feature extractor as input and obtains label information through three fully connected layers;
[0102] In the neural network of the label predictor, the first two layers use the ReLU activation function, followed by a batch normalization layer. The batch normalization layer speeds up the training of the neural network and improves the generalization performance of the network by making the distribution of the layer data roughly consistent and making the training easier to converge. The output layer uses the Softmax activation function.
[0103] In the process of training the label predictor, pseudo-spatial transcriptomic data with label prior knowledge of cell type proportions are used as training data, spatial transcriptomic data are used as test data, and labels of spatial transcriptomic data are output;
[0104] Get results through label predictor N is the total number of spatial sites, and F is the number of cell types; It consists of two parts:
[0105]
[0106] in, Indicates the proportion of cell types in the predicted pseudo-space sites, The proportion of cell types representing the real spatial sites;
[0107] The loss function of the label predictor is the cross entropy between the predicted labels of the pseudo-space transcriptome data and the known labels of the pseudo-space transcriptome data, as shown below:
[0108]
[0109] Among them, y i,f ∈Y p represents the proportion of the fth cell type in the known ith pseudo-space site, Represents the predicted proportion of the fth cell type in the ith pseudospace site.
[0110] Therefore, in this embodiment, the objective loss function of the feature extractor and the label predictor can be expressed as:
[0111]
[0112] Among them, λ is a hyperparameter.
[0113] Example 2
[0114] The data set used in this embodiment includes tissue sections collected from human embryonic heart tissues at three periods: 4.5-5PCW, 6.5PCW, and 9PCW. One sample is taken in each of the three periods to obtain the spatial transcriptome data of the three samples at 4.5-5PCW, 6.5PCW, and 9PCW, and the scRNA-seq data of 6.5PCW. The spatial transcriptome data deconvolution method based on graph attention autoencoder (GATED for short) disclosed in Example 1 is used to deconvolute the spatial transcriptome data of 4.5-5PCW, 6.5PCW, and 9PCW using the scRNA-seq data of 6.5PCW, and the cell type proportion labels of each spatial site in each sample are obtained, and visualization operations are performed.
[0115] At the same time, another existing deconvolution algorithm MuSiC was used to deconvolve the three samples and compared with the results of GATED to draw the distribution of the five main cell types in human embryonic heart tissue: ventricular cardiomyocytes, atrial cardiomyocytes, smooth muscle cells, epicardial cells, and epicardium-derived cells in spatial locations, such as Figure 2 As shown ( Figure 2 The cell types from left to right in the two methods are ventricular cardiomyocytes, atrial cardiomyocytes, smooth muscle cells, epicardial cells, and epicardium-derived cells, and from top to bottom are 4.5-5PCW, 6.5PCW, and 9PCW human embryonic heart tissues. Figure 2 It was found that in the deconvolution results of GATED, ventricular cardiomyocytes and atrial cardiomyocytes were located in the upper and lower chambers of the heart, respectively, and showed obvious expansion process; epicardial-derived cells and epicardial cells were located in the outer layer of the heart. Combined with existing studies, these cells are all located in reasonable positions in the heart space. However, for the results of MuSiC, ventricular cardiomyocytes and atrial cardiomyocytes are not specifically expressed only in reasonable positions, but are scattered in the tissue. At the same time, the cell type with the highest proportion in each spatial site in the MuSiC results cannot correctly divide the spatial domain.
[0116] Next, we collected marker genes of epicardium-derived cells, epicardial cells, endothelial epithelium, and fibroblasts, and visualized the spatial distribution of these cells and the corresponding marker genes in the three samples, e.g. Figure 3 As shown ( Figure 3The first three rows from top to bottom are visualizations of the spatial distribution of epicardial-derived cells, epicardial cells, and corresponding marker genes in three samples. The fourth to sixth rows are visualizations of the spatial distribution of endothelial cell epicardium and corresponding marker genes in three samples. The seventh to ninth rows are visualizations of the spatial distribution of fibroblasts (fibroblasts include Fibroblast 1, Fibroblast 2, and Fibroblast 3, and the cell names are Fibroblast_like_1, Fibroblast_like_2, and Fibroblast_like_3) and corresponding marker genes in three samples. Figure 3 It can be found that the prediction results of GATED for the spatial distribution of cell types are basically consistent with the spatial distribution of marker genes, which further illustrates the accuracy of the results and shows that GATED has high reliability in analyzing the localization of cardiac tissue cell types.
[0117] In summary, GATED can systematically reveal the key spatiotemporal developmental characteristics of the main cell types during human embryonic heart development, laying the foundation for explaining the growth and development mechanism of the heart.
[0118] Example 3
[0119] The spatial transcriptome data of human pancreatic ductal carcinoma (PDAC) were deconvolved using GATED and scRNA-seq data of human pancreatic ductal carcinoma, and the results were compared with those obtained using MuSiC, as shown in Figure 4 As shown in the figure, the composite pie chart on the left of the two groups of figures can clearly show the proportion of each cell type in each spatial site. The right figure shows that we have selected the cell type with the largest proportion in each spatial site to color the site and perform a simple spatial domain division of the data. Figure 4 It can be seen that GATED can correctly distinguish normal pancreatic cells from tumor cells in space: in the cancer area, different tumor cells (blue-purple represents cancer clone A cells, blue-green represents cancer clone B cells) are mixed, and there are also more ductal groups (light green) expressing the hypoxia gene APOL1; while the acinar central ductal group (purple) expressing CRISP3 is distributed in the ductal area and the normal pancreatic area; acinar cells (orange) are mainly enriched in the normal pancreatic area. According to the results of GATED, the cancer area, ductal area and interstitial area can be well divided. However, in the results of MuSiC, the highest expression in the spatial site of the cancer area is not the cancer clone cell, and the highest expression in the normal pancreatic area is not the tissue-related acinar cells and ductal cells, but the red blood cells.
[0120] At the same time, the marker genes of the main cell types in the PDAC data were collected, and the cell types of the GATED and MuSiC results and the spatial distribution of the corresponding marker genes were visualized, respectively, as shown in Figure 2. Figure 5 As shown, Figure 5 Figure 3 shows that the spatial expression patterns of cell types predicted by GATED are more consistent with the expression patterns of corresponding marker genes than those predicted by MuSiC.
[0121] In addition, by Figure 5 The bottom row of graphs found that the marker gene TM4SF1 of cancer clone A cells was mainly distributed in the upper part of the cancer area, and the marker gene S100A4 of cancer clone B cells was mainly distributed in the lower right part of the cancer area. Studies have shown that high expression of S100A4 may be related to the formation and development of early pancreatic cancer, while TM4SF1 can significantly promote the growth, migration and invasion of cancer cells. Therefore, in the results of GATED, the upper part of the cancer area where cancer clone A cells are enriched is likely to be an early cancer area, and the lower part of the cancer area where cancer clone B cells are highly expressed may be a late-stage cancer area with metastatic ability.
[0122] In summary, GATED can well deconvolute PDAC data to obtain the spatial distribution of tumor cells and various non-tumor cells, thereby further analyzing PDAC samples.
[0123] Example 4
[0124] GATED was used to analyze data from four human squamous cell carcinoma patients (labeled as samples A, B, C, and D), including scRNA-seq data and spatial transcriptome data of human squamous cell carcinoma patients. First, the deconvolution results of GATED were visualized, and a composite pie chart was used on each sample to represent the proportion of cell types in the spatial site, such as Figure 6 As shown in the middle picture of groups A, B, C, and D. At the same time, the sites were colored according to the cell type with the highest content at each site, and a simple spatial domain division was performed, such as Figure 6 Groups A, B, C, and D are shown in the right figure. Figure 6 The left picture of groups A, B, C, and D is the H&E staining of the four sample tissues. By comparison, the deconvolution results of GATED are basically consistent with the H&E staining. Figure 6Taking Group A in the middle as an example, according to the results of GATED, we found that immune cells (mainly B lymphocytes, represented by orange in the figure; and T cells are enriched in the upper part of the tissue, while epithelial cells are distributed in large numbers in the lower part of the tissue. At the same time, there is also an enrichment of tumor-specific keratinocyte (TSK) cells (represented by light green in the figure) at the edge, which is consistent with the analysis of existing studies.
[0125] The above is only a preferred embodiment of the present invention and does not limit the present invention in any way. Any simple modification, change and equivalent change made to the above embodiment according to the technical essence of the invention still falls within the protection scope of the technical solution of the present invention.
Claims
1. A spatial transcriptome data deconvolution method based on graph attention autoencoder, It is characterized in that include: The gene expression of scRNA-seq data and spatial transcriptome data of the same tissue was standardized and preprocessed, and the common genes of scRNA-seq data and spatial transcriptome data were selected as the gene set. Then, several cell-simulated spatial sites were randomly selected from the scRNA-seq data to form a pseudo-spatial site. Pseudo-spatial transcriptome data were constructed based on multiple pseudo-spatial sites and their gene expression levels, and the pseudo-spatial sites of the pseudo-spatial transcriptome data were labeled with the proportion of cell types. Graph data is constructed from the labeled pseudo-space transcriptome data and the pre-processed spatial transcriptome data. The nodes of the graph data are the pseudo-space sites of the pseudo-space transcriptome data and the real space sites of the spatial transcriptome data, and the edges between the nodes are established according to the clustering information and the spatial position. A feature extractor for graph data is established by using a graph attention autoencoder to extract a feature set from the graph data; The feature set is input into a label predictor, and the label of the spatial transcriptome data, i.e., the cell type proportion of the real spatial site, is input.
2. The spatial transcriptome data deconvolution method based on graph attention autoencoder according to claim 1, It is characterized in that The graph attention autoencoder consists of two parts: an encoder and a decoder, and a graph attention mechanism is added on the basis of the graph autoencoder; the label predictor is constructed by stacking multiple layers of neural networks.
3. The spatial transcriptome data deconvolution method based on graph attention autoencoder according to claim 1 or 2, It is characterized in that The specific method of the standardization preprocessing is: logarithmically standardizing the gene expression values in the scRNA-seq data and the spatial transcriptome data so that the gene expression values of the data obey the Gaussian distribution.
4. The spatial transcriptome data deconvolution method based on graph attention autoencoder according to claim 1, It is characterized in that Graph data is constructed from the labeled pseudo-space transcriptome data and the pre-processed spatial transcriptome data. The nodes of the graph data are the pseudo-space sites of the pseudo-space transcriptome data and the real space sites of the spatial transcriptome data, and the edges between the nodes are established according to the clustering information and the spatial position. Specifically: The labeled pseudo-spatial transcriptome data and the pre-processed spatial transcriptome data are mixed as nodes of the graph data and used and Represent the gene expression levels of pseudo-space sites and real-space sites, respectively, where m is the number of genes and n is p Indicates the number of spatial sites in pseudo-space transcriptome data, n r Represents the number of spatial sites of spatial transcriptome data; the attribute characteristics of the graph node are expressed as: X=[X pseudo X real ]∈R m×N Where N = n p +n r ; The Leiden method is used to cluster the pseudo-space sites of pseudo-space transcriptome data and the real-space sites of spatial transcriptome data according to gene expression levels, and edges are established between the pseudo-space sites and real-space sites clustered in the same cluster to connect them and treat each other as neighbors; at the same time, for each real-space site, several real-space sites closest to it are selected as neighbors, and edges are established to connect them to form an undirected neighbor network.
5. The spatial transcriptome data deconvolution method based on graph attention autoencoder according to claim 2, It is characterized in that In each layer of the neural network of the encoder and decoder, attention weights are first calculated for the nodes of the graph data to determine the correlation between each node and its neighboring nodes, and then the features of the node and the features of its neighboring nodes are weighted and summed; On the k-th layer network of the encoder model, the relevance of neighbor spatial site j to spatial site i is calculated according to the formula: Among them, W k is the trainable weight matrix of the encoder k-th layer network, and is a trainable weight vector, Sigmoid represents the sigmoid activation function; represents the embedding representation generated by the i-th spatial site at the k-1 layer, represents the embedding representation generated by the j-th spatial site at the k-1 layer; In order to make the correlation coefficients of multiple neighboring nodes of node i comparable, the softmax function is used for normalization, and the attention coefficient of the edge between the i-th spatial site and the j-th spatial site on the k-th layer is expressed as: Among them, S i Represents the set of neighboring spatial sites of spatial site i; The input of the encoder is the node attribute matrix X of the graph data, that is, the gene expression matrix of the spatial site, and the low-dimensional feature representation of the node is obtained by aggregating the neighbor node information; using x i represents the standardized gene expression level of the ith spatial site, and L represents the number of layers in the encoder network; the input of the encoder is expressed as: The embedding generated by the i-th spatial site at the k-th layer of the encoder is represented as: Where σ is a nonlinear activation function; In the last L layer of the encoder, no attention mechanism is used, which can be expressed as: can be regarded as a low-dimensional feature representation of the final spatial location; W L Represents the trainable weight matrix of the encoder L-th layer network; The decoder part is opposite to the encoder part. The decoder constructs the low-dimensional representation of the spatial site into a reconstructed normalized gene expression profile; the input of the decoder is the output of the encoder, expressed as: The embedding reconstructed at the i-th spatial site in the k-1th layer of the decoder (the value range of k is k∈{2,..,L-1,L}) is expressed as: represents the trainable weight matrix of the kth layer of the decoder; Same as the encoder, the last layer of the decoder can be expressed as: represents the output of the decoder, specifically the normalized gene expression reconstructed by the spatial site. In order to prevent overfitting, in, represents the trainable weights of the kth layer of the decoder, W (k) represents the trainable weights of the encoder kth layer, represents the attention coefficient of the kth layer of the decoder, att (k) represents the attention coefficient of the encoder kth layer; The loss function of the graph attention autoencoder is the error between the reconstructed gene expression and the original gene expression, expressed as:
6. The spatial transcriptome data deconvolution method based on graph attention autoencoder according to claim 2, It is characterized in that The label predictor is first trained using labeled pseudo-spatial transcriptome data to enable it to learn the relationship between spatial site features and cell type proportion labels, and then predict the labels of the spatial transcriptome data.
7. The spatial transcriptome data deconvolution method based on graph attention autoencoder according to claim 6, It is characterized in that The label predictor uses the feature set extracted by the feature extractor as input and obtains label information through three fully connected layers; in the neural network of the label predictor, the first two layers use the ReLU activation function, followed by a batch normalization layer, and the output layer uses the Softmax activation function.
8. The spatial transcriptome data deconvolution method based on graph attention autoencoder according to claim 6, It is characterized in that Get results through label predictor N is the total number of spatial sites, and F is the number of cell types; Composed of two parts composition: in, Indicates the proportion of cell types in the predicted pseudo-space sites, The proportion of cell types representing the real spatial sites; The loss function of the label predictor is the cross entropy between the predicted labels of the pseudo-space transcriptome data and the known labels of the pseudo-space transcriptome data, as shown below: Among them, y i,f ∈Y p represents the proportion of the fth cell type in the known ith pseudo-space site, Represents the predicted proportion of the fth cell type in the ith pseudospace site.
9. The spatial transcriptome data deconvolution method based on graph attention autoencoder according to claim 1, It is characterized in that The objective loss function of the feature extractor and label predictor can be expressed as: L=L 1 +λL 2 Among them, L 1 is the loss function of the feature extractor, L 12 is the loss function of the label predictor and λ is a hyperparameter.
Citation Information
Patent Citations
Spatial transcriptome data clustering method
CN117253550A
Method and device for determining cell type based on space transcriptome deconvolution of GraphSAGE
CN118098356A
Transcriptome data integration
WO2023234864A1
Cited By
In-vitro tissue space transcriptome data analysis method based on graph neural network
CN121838890A
