Modeling method and device based on cell state, electronic equipment and storage medium
By fusing high- and low-dimensional information on the cell state matrix, a dual-pathway calculation model for RNA rate is constructed, which solves the problem of insufficient accuracy of cell trajectory analysis in traditional methods and achieves higher analysis accuracy and expression capabilities.
Patent Information
- Application Number
- CN202310446155.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-14
- Publication Date
- 2024-10-18
AI Technical Summary
Traditional RNA rate-based modeling methods can only constrain the low-dimensional features of a very small number of cells in a steady state during the training process, making cell trajectory analysis prone to fallacies.
A single-cell cell state-based modeling method that integrates high- and low-dimensional dual paths is adopted. By obtaining the cell state matrix, the RNA rates in the first and second dimensions are calculated, and the transition probability matrix is obtained through mutual learning module processing to construct a double cell state matrix. Pathway model for calculating RNA rates.
This method can analyze cell trajectories more accurately, has higher expression ability, simply and efficiently verifies known cell differentiation relationships and infers unknown cell differentiation trajectories, improving the accuracy of analysis.
Smart Images

Figure CN118800318A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of biotechnology, and in particular to a cell state-based modeling method, device, electronic device and storage medium. Background Art
[0002] The single-cell RNA sequencing technology that has emerged in recent years can measure the gene expression level in cells at the level of individual cells, allowing researchers to identify specific cell types in complex cell populations, analyze the heterogeneity of individual cells, and describe the gene expression trends of cells during differentiation, that is, cell trajectory analysis. In cell trajectory analysis, it is necessary to obtain the RNA rate of single cells. Modeling based on single-cell RNA rate refers to restoring the changes in mRNA abundance, that is, RNA rate, through the unspliced mRNA abundance, spliced mRNA abundance, and other omics data that may be included in the "static snapshot" of the cell state at the time of sequencing, thereby realizing cell trajectory analysis.
[0003] Currently, the traditional RNA rate-based modeling approach is a data-driven deep learning method that utilizes a customized autoencoder to learn a low-dimensional representation of RNA rates, which can more stably estimate cell trajectories.
[0004] However, this method can only constrain the low-dimensional features of a very small number of cells in steady state during training, so the analysis of subsequent cell trajectories is prone to errors. Summary of the invention
[0005] In view of this, the present application provides a modeling method, device, electronic device and storage medium based on cell state. The main purpose is to propose a modeling method based on single-cell cell state that integrates high- and low-dimensional dual paths, which can more accurately analyze cell trajectories.
[0006] In a first aspect, the present application provides a modeling method based on cell state, comprising:
[0007] Obtain cell state matrix based on single-cell omics data;
[0008] Based on the cell state matrix, respectively calculating the RNA rate of the first dimension and the RNA rate of the second dimension of the cell state matrix; wherein the first dimension is higher than the second dimension;
[0009] Processing the RNA rate of the first dimension and the RNA rate of the second dimension through the mutual learning module to obtain a first transition probability matrix corresponding to the RNA rate of the first dimension and a second transition probability matrix corresponding to the RNA rate of the second dimension;
[0010] Modeling is performed based on the first transition probability matrix and the second transition probability matrix.
[0011] In a second aspect, the present application provides a modeling device based on cell state, comprising:
[0012] An acquisition unit, configured to acquire a cell state matrix according to the single-cell omics data;
[0013] A calculation unit is configured to calculate the RNA rate of a first dimension and the RNA rate of a second dimension of the cell state matrix respectively based on the cell state matrix; wherein the first dimension is higher than the second dimension;
[0014] A processing unit is configured to process the RNA rate of the first dimension and the RNA rate of the second dimension through a mutual learning module to obtain a first transition probability matrix corresponding to the RNA rate of the first dimension and a second transition probability matrix corresponding to the RNA rate of the second dimension;
[0015] A modeling unit is configured to perform modeling processing based on the first transition probability matrix and the second transition probability matrix.
[0016] In a third aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the cell state-based modeling method described in the first aspect.
[0017] In a fourth aspect, the present application provides an electronic device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the cell state-based modeling method described in the first aspect when executing the computer program.
[0018] By means of the above technical scheme, a modeling method, device, electronic device and storage medium based on cell state provided by the present application, the present application first obtains a cell state matrix in single cell omics data, wherein the omics data can be multimodal (not limited to transcriptome, metabolome, epigenome, proteome, etc.). Then, through the cell state matrix, the RNA rate of the first dimension and the second dimension is obtained and processed to obtain the first transition probability matrix and the second transition probability matrix. Modeling is performed based on the first transition probability matrix and the second transition probability matrix. A model for calculating RNA rate by dual paths that can fuse information of different dimensions is constructed, which can have a more powerful expression ability than the related art inferring cell trajectories by only a single dimension or the like. It is possible to simply and efficiently verify known cell differentiation relationships, infer unknown cell differentiation trajectories, and have a higher accuracy rate.
[0019] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0021] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0022] Figure 1 A schematic diagram of a cell state-based modeling method provided in an embodiment of the present application is shown;
[0023] Figure 2 A schematic diagram of the structure of a cell state-based modeling framework provided in an embodiment of the present application is shown;
[0024] Figure 3 A schematic diagram of the structure of a time difference module provided in an embodiment of the present application is shown;
[0025] Figure 4 A schematic structural diagram of a cell state-based modeling device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0026] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0027] In order to avoid errors in the analysis of cell trajectories and improve accuracy, this embodiment proposes a modeling method based on single cell state that integrates high- and low-dimensional dual paths, which can analyze cell trajectories more accurately. Figure 1 As shown, a modeling method based on cell state provided by this embodiment is shown, and the method includes:
[0028] S101. Obtain a cell state matrix based on single-cell omics data.
[0029] Among them, single-cell omics data include but are not limited to transcriptome, epigenome, metabolome, proteome, etc., to obtain the cell state matrix.
[0030] S102. Based on the cell state matrix, respectively calculate the RNA rate of the first dimension and the RNA rate of the second dimension of the cell state matrix.
[0031] Among them, the first dimension is higher than the second dimension. For ease of understanding, in the subsequent descriptions, some RNA rates in the first dimension are directly written as high-dimensional RNA rates, and some RNA rates in the second dimension are written as low-dimensional RNA rates. RNA rates can be used to describe and observe the process of cell transfer and evolution through transcription dynamics, and to infer the future state of cells, which is usually defined as changes in the abundance of spliced mRNA.
[0032] S103, processing the RNA rate of the first dimension and the RNA rate of the second dimension through the mutual learning module to obtain a first transition probability matrix corresponding to the RNA rate of the first dimension and a second transition probability matrix corresponding to the RNA rate of the second dimension.
[0033] In this step, the mutual learning module is a variant of knowledge distillation. By training multiple student networks at the same time, each student network can be collaboratively optimized, learn from each other, and inherit the advantages of other networks in the learning process to jointly solve the problem. Transition probability matrix: There are several situations in which the state at the previous moment is transferred to a certain state at the current moment. Then all the conditional probabilities will form a matrix, which is called the transition probability matrix.
[0034] S104: Perform modeling based on the first transfer probability matrix and the second transfer probability matrix.
[0035] In this embodiment, the cell state matrix of the cell to be transcribed is first obtained in the single-cell omics data, wherein the omics data can be multimodal (not limited to transcriptome, metabolome, epigenome, proteome, etc.). Then, through the cell state matrix, the RNA rate of the first dimension and the second dimension is obtained and processed to obtain the first transfer probability matrix and the second transfer probability matrix. Modeling is performed based on the first transfer probability matrix and the second transfer probability matrix. A model for calculating RNA rate by dual paths that can integrate information of different dimensions is constructed, which can have more powerful expression ability than the related art inferring cell trajectories by only a single dimension or the like. It can simply and efficiently verify known cell differentiation relationships, infer unknown cell differentiation trajectories, and have a higher accuracy rate.
[0036] This application takes Markov search as an example, but is not limited to this.
[0037] Optionally, based on the cell state matrix, the RNA rate of the first dimension and the RNA rate of the second dimension of the cell state matrix are calculated respectively, including: using the cell state matrix as the input of the time difference module to calculate the RNA rate of the first dimension; using the cell state matrix as the input of the graph representation learning module to calculate the RNA rate of the second dimension.
[0038] In this embodiment, the time difference module is a symbolic neural network SymNet network path for learning RNA high-dimensional information, which aims to solve the first-order ODE of transcription dynamics and characterize high-dimensional and continuous RNA rates through symbolic neural networks. In addition, since it contains k hidden layers, the coefficients of the ODE solved have certain biological interpretability. The graph representation learning module is a VeloAE network path for characterizing low-dimensional RNA information, but the graph convolution module (GCN) therein is replaced by a graph attention module (GAT), so that it can learn the low-dimensional representation of RNA rates and avoid the sparsity of the original data, remove noise, and learn the relationship between genes, providing a rough directionality for SymNet. By calculating the RNA rates in the first and second dimensions, unknown cell differentiation trajectories can be inferred from different dimensions with higher accuracy.
[0039] Optionally, the time difference module includes a symbolic neural network containing k hidden layers; using the cell state matrix as the input of the time difference module to obtain the RNA rate of the first dimension includes: using the cell state matrix as the input of the first hidden layer of the symbolic neural network; using the product of the output of the previous hidden layer and the order increase factor as the input of the next hidden layer until the output of the kth hidden layer is obtained; wherein the output of the kth hidden layer includes the RNA rate of the first dimension, and k is a positive integer.
[0040] In this embodiment, the temporal difference module includes a symbolic neural network SymNet with k hidden layers. The cell state matrix is input into the first hidden layer, and the output of each layer is multiplied by the order increase factor and then enters the next layer until the result of the last hidden layer is output. The final output of this module is a linear combination of continuous high-dimensional RNA rates. In addition, the coefficients of the ODE solved by it have certain biological interpretability.
[0041] Optionally, the graph representation learning module includes an encoder for supporting multi-omics dimensionality reduction; using the cell state matrix as input to the graph representation learning module, calculating the RNA rate of the second dimension, including: inputting the cell state matrix into the graph representation learning module, and performing dimensionality reduction processing on the cell state matrix through the encoder; calculating the RNA rate of the second dimension in the space after dimensionality reduction.
[0042] In this embodiment, the graph representation learning module generally follows the VeloAE method of solving low-dimensional RNA rates, but some modules are improved, such as replacing the graph convolution module (GCN) with the graph attention module (GAT). The graph attention module uses an attention mechanism for graph node features and implicitly defines the weight of node information fusion, which is more in line with the mechanism of interaction between cells. Therefore, the effect is significantly better than the graph convolution module. It can learn a low-dimensional representation of RNA rates and avoid the sparsity of original data, remove noise, and learn the relationship between genes, providing a rough direction for SymNet.
[0043] Optionally, calculating the RNA rate of the second dimension in the space after dimensionality reduction includes: calculating the RNA rate of the second dimension in the space after dimensionality reduction by an extreme quantile regression algorithm.
[0044] In this embodiment, it is necessary to first perform dimensionality reduction processing through a graph representation learning module, and then calculate the low-dimensional RNA rate through an extreme quantile regression algorithm to facilitate subsequent processing of high-dimensional RNA rates and low-dimensional RNA rates.
[0045] Optionally, the RNA rate of the first dimension and the RNA rate of the second dimension are processed through a mutual learning module to obtain a first transfer probability matrix corresponding to the RNA rate of the first dimension and a second transfer probability matrix corresponding to the RNA rate of the second dimension, including: using a divergence alignment method to perform divergence alignment processing on the RNA rate of the first dimension and the RNA rate of the second dimension to obtain the first transfer probability matrix and the second transfer probability matrix.
[0046] In this embodiment, due to the different dimensions of the two, it is necessary to perform divergence alignment processing on the obtained high-dimensional RNA rate and low-dimensional RNA rate through a mutual learning module to obtain a first transition probability matrix and a second transition probability matrix. The transition probability matrix can be used as a modeling input to achieve prediction and analysis of cell trajectories.
[0047] Optionally, modeling is performed based on the first transfer probability matrix and the second transfer probability matrix, including: determining modeling parameters based on the first transfer probability matrix and the second transfer probability matrix; and performing Markov modeling according to the first transfer probability matrix, the second transfer probability matrix and the modeling parameters.
[0048] In this embodiment, the modeling idea is explained. The first transfer probability matrix and the second transfer probability matrix are mathematically processed according to the modeling needs, the modeling parameters are determined, and Markov modeling is performed based on the modeling parameters. Markov process is a type of random process. It means that the transition of each state in the process only depends on the previous n states. This process is called an n-order Markov model, where n is the number of states that affect the transition. The simplest Markov process is a first-order process, and the transition of each state only depends on the previous state.
[0049] Since the cell differentiation process is very complex, the first-order ODE method consisting of only the regulation of transcription, splicing, and degradation rates is far from being able to describe the transcription dynamics. At the same time, the gene-specific model ignores the interaction between genes. In order to overcome the limitations brought by the assumptions, this example retains some of the rational components in the first-order model and generalizes and expands them. Assume that the state of the cell is expressed as Where M is the number of genes and d is the gene-specific cell state dimension. In the most original transcriptional dynamics assumption d = 2, the cell state consists of the abundance of unspliced mRNA u(t) and the abundance of spliced mRNA s(t), that is, x = (u, s). Then an autonomous dynamic system is used to simulate the transcriptional dynamics process:
[0050] x=F(·)
[0051] (Formula 1)
[0052] Among them, F(·) describes a continuous vector field. In order to simulate real and complex transcription processes, such as multi-lineage systems or non-constant rates, the vector field is further expanded to a high-dimensional nonlinear function instead of the conventional first-order ODE in the original assumption.
[0053] Furthermore, unlike the traditional method that treats RNA rate evaluation and cell transfer modeling as two independent processes, this embodiment treats the two processes as an integrated part, and promotes the evaluation of RNA rate by means of cell transfer modeling. Under the assumption that the cell state changes in small steps during the cell transfer process, the cell transfer is modeled by a Markov chain model, where each state of the cell is defined by the observed cell profile, and the weight of the edge represents the probability of one cell transferring to another cell. Since the RNA rate can truly characterize the local cell transcription dynamics, the RNA rate is used to define the transition probability (matrix) of the Markov chain, or the RNA rate is used to determine the transition probability (matrix). Unlike the method based on pseudo-time series, randomness and the cell transfer law revealed by the RNA rate are considered at the same time, and they are called diffusion and drift.
[0054] The diffusion part aims to characterize the randomness of cell migration, which limits the possible migration directions of cells to their neighboring cells. First, an undirected graph that can describe the similarity between cells is constructed by the K-Nearest Neighbor (KNN) method. The diffusion kernel is defined as:
[0055]
[0056] Where I(·) is the indicator function. When |r|≤1, I(r)=1; otherwise, I(r)=0. k (x i ) is the distance from cell i to its kth nearest neighbor. In addition, in order to better model the interaction between cells, we further use a graph attention network on the graph constructed by KNN to capture the mutual effects between cells.
[0057] The drift part aims to characterize the directional cell transfer law revealed by RNA rate. When the real state of cell i changes direction δ ij =x j -x i When it matches the RNA rate of cell i, it means that cell i has a very high probability of transforming into cell j. Using cosine similarity as the speed kernel,
[0058] v(x i ,x j )=cos<δ ij ,v i > (Formula 3)
[0059] Among them, <·,·> represents the angle between two input vectors, v i represents the RNA rate of cell i, so the overall transfer nucleus is
[0060] k(x i ,x j )=d(x i ,x j )·v(x i ,x j )
[0061] (Formula 4)
[0062] The transition probability matrix P = (p ij ) i,j=1:N It can be defined as:
[0063]
[0064] in is the normalization term, is the width parameter of the exponential kernel.
[0065] Next, the relevant knowledge of this application is explained and illustrated. First, single-cell RNA sequencing technology can measure the gene expression level in cells at the level of individual cells, allowing researchers to identify specific cell types in complex cell populations, analyze the heterogeneity of individual cells, and describe the gene expression trends of cells during differentiation, that is, cell trajectory analysis.
[0066] Currently, single-cell RNA rate modeling is commonly used to analyze cell trajectories. This method uses the unspliced mRNA abundance, spliced mRNA abundance, and other omics data contained in the cell state to restore the change in mRNA abundance, that is, RNA rate, and then realize cell trajectory analysis. The RNA maturation process mainly goes through three stages: transcription, splicing, and degradation. The transcription dynamics assumptions are as follows:
[0067]
[0068] Where u(t) and s(t) represent the normalized unspliced mRNA abundance and spliced mRNA abundance, respectively. The transcriptional kinetic model generates unspliced mRNA: u(t) at a transcription rate of α(t), which is then spliced into spliced mRNA: s(t) at a rate of β, and finally degraded at a degradation rate of γ. The RNA rate is defined as the change in the abundance of spliced mRNA, i.e., ds / dt.
[0069] Next, the scheme described in the above embodiment is explained in combination with specific practical application scenarios. In the introduction, the first dimension is called high dimension and the second dimension is called low dimension. First, the cell state-based modeling method proposed in this embodiment can be applied to an overall framework SymVelo. Figure 2As shown in the figure, the framework consists of three modules: a temporal difference module, a graph representation learning module, and a mutual learning module. The temporal difference module is a symbolic neural network SymNet network path that learns RNA high-dimensional information. It aims to solve the first-order ODE of transcription dynamics and characterize high-dimensional and continuous RNA rates through symbolic neural networks. In addition, since it contains k hidden layers, the coefficients of the ODE solved by it have certain biological interpretability. The graph representation learning module is a VeloAE network path that represents low-dimensional RNA information, but the graph convolution module (GCN) in it is replaced by a graph attention module (GAT), so that it can learn a low-dimensional representation of RNA rates and avoid the sparsity of the original data, remove noise, and learn the relationship between genes, providing a rough directionality for SymNet. The mutual learning module can effectively align the rates calculated by the two paths and solve the problem of mismatched dimensions of the two paths, so that SymNet can inherit the reliable differentiation trajectory in VeloAE and retain biological interpretability, and enable VeloAE to supervise the state of each cell in the feature space instead of just the cell state in steady state.
[0070] Furthermore, the logical structure of the symbolic neural network SymNet in the temporal difference module is as follows: Figure 3 As shown in Figure 2, it can be obtained through data training, which not only has good expressive ability, but also has high transparency and interpretability. Each hidden layer takes the output of the previous layer as input, and increases the order by adding an additional variable, the order-increasing factor, in each hidden layer, whose input is two linear combinations of the previous layer's input. The output of is a linear combination of the outputs of the last hidden layer. The temporal difference module aims to solve the ODE through a neural network from the bottom up to estimate the continuous high-dimensional RNA rate. The input of this module is the cell state x∈R M×d , the output is the first-order derivative of the cell state containing the continuous high-dimensional RNA rate Thus, through The estimated high-dimensional vector field F can be expressed as:
[0071]
[0072] Where Θ is the parameter of SymNet. In addition, since the input dimension in SymNet can be easily changed, this method can also be easily extended to the analysis task of multi-omics data.
[0073] We select temporally adjacent cell pairs to supervise the training and optimization of this module. For cell i, we select its neighbor cell j with the maximum transition probability in the Markov chain as its corresponding future cell.
[0074] d(x i ,x j )=1and r(x i ,x j )>∈
[0075] (Formula 8)
[0076] Formula 8 is the condition that needs to be satisfied for selecting neighbor cells j, and both conditions need to be satisfied at the same time. Among them, the first condition requires that they are connected in the KNN graph, that is, the diffusion kernel d(x i ,x j )=1, and the second condition r(x i ,x j )>∈(the distance from cell i to cell j is greater than ∈). In addition, ∈>0 is the threshold for selecting the number of cell pairs. Here, we can use the implicit direction in the RNA rate calculated by the pre-trained model of VeloAE to provide SymNet with cell pair selection, or we can choose other methods such as scVelo as the cell pair selection.
[0077] According to the forward Euler formula, for a given time scale δ, the time difference loss of this branch is is the difference between the predicted future cell state and the future cell state provided by methods such as VeloAE, as well as a regularization for the sparsity of network parameters,
[0078]
[0079] in, is the time difference loss function. (x,x + ) is the cell pair selection provided by VeloAE and other methods, is the future cell state predicted by SymNet, λ‖Θ‖ 1 is the sparsity loss of network parameters. In order to further inherit the rough directionality provided by methods such as VeloAE and explore and correct wrong directions, when selecting cell pairs, we select the future cell provided by VeloAE with a probability of 90% and randomly select one from the neighboring cells of KNN as the future cell with a probability of 10%.
[0080] The graph representation learning branch aims to learn a low-dimensional representation of RNA rates to avoid the sparsity and noise of the original counts, and to screen out genes that are more in line with the dynamic hypothesis and learn the relationships between genes through dimensionality reduction. VeloAE has proven that it can effectively explain the laws of steady-state cell metastasis. This embodiment follows their main framework design, while replacing the graph convolution module (GCN) of the graph encoder with a graph attention module (GAT). The graph attention module uses an attention mechanism for graph node features, implicitly defines the weights of node information fusion, and is more in line with the mechanism of interaction between cells, so the effect is significantly better than the graph convolution module.
[0081] The input of this module is any cell state matrix containing N cells and M genes during transcription. (For example, the normalized spliced and unspliced RNA abundance matrices S and U). Through graph representation learning, S and U are reduced to a low-dimensional latent space of m dimensions, and the low-dimensional RNA rate V is calculated in the low-dimensional latent space based on the steady-state model. l ,
[0082]
[0083] Where ε(·) is an encoder designed based on the GAT module, Represents a steady-state model for calculating RNA rates through extreme quantile regression. In addition, the original VeloAE design was originally intended for RNA rate modeling of single-cell RNA sequencing data and cannot be applied to multi-omics data. In analysis problems based on multi-omics data, SymNet can be freely extended to multi-omics models, so there will be difficulties in mutual learning caused by the mismatch of VeloAE branch information dimensions. Therefore, this embodiment also makes multi-omics improvements to the VeloAE branch, so that its encoder can support multi-omics dimensionality reduction and expand the steady-state hypothesis of multi-omics.
[0084] The mutual learning module is a variant of knowledge distillation. By training multiple student networks simultaneously, each student network can be optimized collaboratively, learn from each other, and inherit the advantages of other networks in the learning process to jointly solve the problem. Since the dimensions of the two do not match, the Jensen-Shannon divergence is needed to align the high-dimensional RNA rate V estimated by the two branch paths. h and the low-dimensional RNA rate V l The calculated transition probability matrix P h ∈R N×N and P l ∈R N×N The distribution of
[0085]
[0086] Where N is the number of cells, two transition probability matrices P h and P l The purpose of calculating JS divergence is to make the distribution of the two close. This process is to achieve Markov modeling. Based on the mutual learning module in the framework, SymNet can inherit VeloAE
[0087] The VeloAE branches can supervise the state of each cell in the feature space rather than just the cell state at steady state.
[0088] Furthermore, through the mutual learning module, the first transition probability matrix and the second transition probability matrix calculated can be used for Markov modeling as mentioned above to predict and analyze cell trajectories. In addition, since SymNet can expand the original first-order equation into a high-order polynomial, it can also be used to describe multi-lineage systems. For cell i, its RNA rate v i It can be expressed as,
[0089] v i =β i ⊙u i -γ i ⊙s i
[0090] (Formula 12)
[0091] Generalized to multi-lineage systems, using neural networks to estimate kinetic parameters,
[0092] v i =β i (S,U;ω)⊙u i -γ i (S,U;ω)⊙s i
[0093] (Formula 13)
[0094] Where ω is the parameter of the neural network. In our method, we can estimate the high-order dynamic parameters by formula 9,
[0095]
[0096] in It is a high-order polynomial. If our cell state only has u and s, it is equivalent to SymNet in formula 7.
[0097] also,
[0098] β i is the shear rate of celli, γ iis the degradation rate of celli, u i is the uncut expression level of celli, s i is the shear expression of celli, which represents the Hadamard product.
[0099] This embodiment can also solve the coefficients of the polynomial through SymNet to further verify whether the dynamic assumption of the model is established. For the original first-order hypothesis, this embodiment can also screen out genes with higher proportions of first-order coefficients and constant term coefficients from a large number of genes as important genes for regulating the cell differentiation process, and further estimate and analyze cell trajectories through these important genes. Thus, through the proposed framework SymVelo, RNA rates can be calculated in combination with high-dimensional and low-dimensional information, and a continuous dynamic system can be constructed. Among them, the high-dimensional continuous RNA rate portrayed by the SymNet branch has a strong expressive power, and genes can be further screened and hypotheses can be verified through its coefficients. In addition, SymNet can be easily expanded and carried out analysis tasks based on multi-omics data, and can also be trained in batches to cope with large-scale orders of magnitude. The RNA rate calculated by SymVelo and the inferred cell trajectory have a higher accuracy rate, which can simply and efficiently verify the known cell differentiation relationship, infer unknown cell differentiation trajectories, dig intermediate state cells, and analyze the key genes that play a regulatory role in the cell differentiation process, which is of great significance to subsequent related research.
[0100] Next, this example uses two public datasets as examples to explain the performance of SymVelo, including a mouse dentate gyrus dataset and a neuronal scNT-seq dataset.
[0101] Dataset:
[0102] Mouse dentate gyrus dataset: This dataset is derived from an article published in Nature NeuroScience in 2018, which is used to study neurogenesis in the dentate gyrus region of mice of different ages. This example uses the same data processing in VeloAE, and only retains single-cell RNA sequencing data at two time points (12 days and 35 days postpartum). The dataset contains 2,930 cells and 13,913 genes.
[0103] Neuronal scNT-seq dataset: This data is derived from an article published in Nature Methods in 2020. Under continuous neural activation stimulation (stimulating cortical neurons with potassium chloride for 0, 15, 30, 60, and 120 minutes), the transcriptional state changes of excitatory neurons were observed. This dataset contains 3,066 cells and 37,007 genes.
[0104] Evaluation indicators:
[0105] Here we use CBDir and streamline plot to analyze the performance of the model. CBDir was proposed by the authors of VeloAE and is designed to evaluate the correctness of the direction. Streamline plot is widely used in published RNA rate model articles. It visualizes the results of rate estimation and can reveal new biological discoveries.
[0106] Compare models:
[0107] VeloAE is mainly used here as a baseline to reveal the advantages of the SymVelo model architecture.
[0108] Model performance:
[0109] Table 1. CBDir indicators of VeloAE and SymVelo in the dataset
[0110]
[0111] According to the results in Table 1, both branches of SymVelo show higher directional correctness than VeloAE. By updating the graph representation learning module, the directional correctness of the VeloAE branch is improved while inheriting the original advantages. The results of the Streamline plot show that the SymVelo-SymNet branch can use the rough direction provided by the graph representation learning module and make corrections. As shown in the streamline plot of the dentate gyrus data, in the flow direction from Granule immature cell type to Granule mature cell type, the direction of the original VeloAE and SymVelo-VeloAE branches is opposite to the actual one, while the SymVelo-SymNet branch corrects the direction to make it consistent with the actual evolutionary direction. In addition, the streamline plot of SymVelo has a smoother and more continuous flow.
[0112] Further, as Figure 1 The specific implementation of the method shown in the embodiment provides a modeling device based on cell state, such as Figure 4 As shown, the device includes: an acquisition unit 301, a calculation unit 302, a processing unit 303, and a modeling unit 304.
[0113] An acquisition unit 301 is configured to acquire a cell state matrix according to the single-cell omics data;
[0114] A calculation unit 302 is configured to calculate the RNA rate of the first dimension and the RNA rate of the second dimension of the cell state matrix respectively based on the cell state matrix; wherein the first dimension is higher than the second dimension;
[0115] The processing unit 303 is configured to process the RNA rate of the first dimension and the RNA rate of the second dimension through a mutual learning module to obtain a first transition probability matrix corresponding to the RNA rate of the first dimension and a second transition probability matrix corresponding to the RNA rate of the second dimension;
[0116] The modeling unit 304 is configured to perform modeling processing based on the first transition probability matrix and the second transition probability matrix.
[0117] In a specific application scenario, the computing unit 302 is specifically configured to use the cell state matrix as an input of the time difference module to calculate the RNA rate of the first dimension; and use the cell state matrix as an input of the graph representation learning module to calculate the RNA rate of the second dimension.
[0118] In a specific application scenario, the computing unit 302 is further configured to use the cell state matrix as the input of the first hidden layer of the symbolic neural network; use the product of the output of the previous hidden layer and the order increase factor as the input of the next hidden layer, until the output of the kth hidden layer is obtained; wherein the output of the kth hidden layer includes the RNA rate of the first dimension, and k is a positive integer.
[0119] In a specific application scenario, the computing unit 302 is further configured to input the cell state matrix into the graph representation learning module, and perform dimensionality reduction processing on the cell state matrix through the encoder; and calculate the RNA rate of the second dimension in the space after dimensionality reduction.
[0120] In a specific application scenario, the calculation unit 302 is further configured to calculate the RNA rate of the second dimension by using an extreme quantile regression algorithm in the space after dimensionality reduction.
[0121] In a specific application scenario, the processing unit 303 is further configured to adopt a divergence alignment method to perform divergence alignment processing on the RNA rate of the first dimension and the RNA rate of the second dimension to obtain the first transition probability matrix and the second transition probability matrix.
[0122] In a specific application scenario, the modeling unit 304 is further configured to determine modeling parameters based on the first transition probability matrix and the second transition probability matrix; and perform Markov modeling according to the first transition probability matrix, the second transition probability matrix and the modeling parameters.
[0123] It should be noted that for other corresponding descriptions of the functional units involved in the cell state modeling device provided in this embodiment, reference can be made to Figure 1 The corresponding description in will not be repeated here.
[0124] Based on the above Figure 1 The method shown in the embodiment also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned Figure 1 The method shown.
[0125] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.
[0126] Based on the above Figure 1 The method shown, and Figure 4 In order to achieve the above-mentioned purpose, the embodiment of the present application also provides an electronic device, which can be configured on a computer terminal, etc. The device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 The method shown.
[0127] Optionally, the above-mentioned physical device may also include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), etc.
[0128] Those skilled in the art will appreciate that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different arrangements of components.
[0129] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-mentioned physical device, and supports the operation of the information processing program and other software and / or programs. The network communication module is used to realize the communication between the components inside the storage medium, and the communication with other hardware and software in the information processing physical device.
[0130] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or by hardware. The present application constructs a dual-path model for calculating RNA rates that can integrate information of different dimensions, which can have more powerful expression capabilities compared to the related art that only infers cell trajectories by means of a single dimension. It is possible to simply and efficiently verify known cell differentiation relationships, infer unknown cell differentiation trajectories, and have a higher accuracy rate.
[0131] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprises" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0132] The above is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features applied for herein.
Claims
1. A modeling method based on cell state, characterized in that: include: Obtain cell state matrix based on single-cell omics data; Based on the cell state matrix, respectively calculating the RNA rate of the first dimension and the RNA rate of the second dimension of the cell state matrix; wherein the first dimension is higher than the second dimension; Processing the RNA rate of the first dimension and the RNA rate of the second dimension through the mutual learning module to obtain a first transition probability matrix corresponding to the RNA rate of the first dimension and a second transition probability matrix corresponding to the RNA rate of the second dimension; Modeling is performed based on the first transition probability matrix and the second transition probability matrix.
2. The method according to claim 1, characterized in that The step of calculating the RNA rate of the first dimension and the RNA rate of the second dimension of the cell state matrix based on the cell state matrix comprises: Using the cell state matrix as input to the time difference module, the RNA rate in the first dimension is calculated; The cell state matrix is used as the input of the graph representation learning module to calculate the RNA rate of the second dimension.
3. The method according to claim 2, characterized in that The temporal difference module includes a symbolic neural network having k hidden layers; The step of using the cell state matrix as the input of the time difference module to obtain the RNA rate of the first dimension includes: Using the cell state matrix as input to the first hidden layer of the symbolic neural network; The product of the output of the previous hidden layer and the order increase factor is used as the input of the next hidden layer until the output of the kth hidden layer is obtained; The output of the kth hidden layer includes the RNA rate of the first dimension, and k is a positive integer.
4. The method according to claim 2, characterized in that: The graph representation learning module includes an encoder for supporting multi-omics dimensionality reduction; The step of using the cell state matrix as an input of the graph representation learning module to calculate the RNA rate of the second dimension includes: Inputting the cell state matrix into the graph representation learning module, and performing dimensionality reduction processing on the cell state matrix through the encoder; The RNA rate in the second dimension is calculated in the reduced dimension space.
5. The method according to claim 4, characterized in that Calculating the RNA rate of the second dimension in the space after dimensionality reduction includes: In the space after dimensionality reduction, the RNA rate of the second dimension is calculated by the extreme quantile regression algorithm.
6. The method according to claim 1, characterized in that The mutual learning module is used to process the RNA rate of the first dimension and the RNA rate of the second dimension to obtain a first transition probability matrix corresponding to the RNA rate of the first dimension and a second transition probability matrix corresponding to the RNA rate of the second dimension, including: A divergence alignment method is used to perform divergence alignment processing on the RNA rate of the first dimension and the RNA rate of the second dimension to obtain the first transfer probability matrix and the second transfer probability matrix.
7. The method according to any one of claims 1 to 6, characterized in that The modeling process based on the first transition probability matrix and the second transition probability matrix includes: Determining modeling parameters based on the first transition probability matrix and the second transition probability matrix; Markov modeling is performed according to the first transition probability matrix, the second transition probability matrix and the modeling parameters.
8. A cell state-based modeling device, characterized in that: include: An acquisition unit, configured to acquire a cell state matrix according to the single-cell omics data; A calculation unit is configured to calculate the RNA rate of a first dimension and the RNA rate of a second dimension of the cell state matrix respectively based on the cell state matrix; wherein the first dimension is higher than the second dimension; A processing unit is configured to process the RNA rate of the first dimension and the RNA rate of the second dimension through a mutual learning module to obtain a first transition probability matrix corresponding to the RNA rate of the first dimension and a second transition probability matrix corresponding to the RNA rate of the second dimension; A modeling unit is configured to perform modeling processing based on the first transition probability matrix and the second transition probability matrix.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
RNA comprehensive classification deep learning prediction method based on graph representation
CN119920325A
Spatial analysis single cell state modeling method and system based on domain self-adaption and layered fine tuning
CN121983111A
