Single-cell RNA sequencing (scRNA-seq) is a powerful technique that allows scientists to study individual cells and their gene activity. This method has revolutionized our understanding of cell states and how different cells behave in various environments. However, when researchers conduct experiments in different batches or settings, it can be challenging to combine the data from these batches. Often, traditional methods overlook important relationships between cells and genes, leading to incomplete or misleading results.

To address this issue, researchers at the China University of Geosciences have developed a new approach called scHetG, which stands for structure-preserved single-cell RNA sequencing data integration using heterogeneous graph neural networks. This innovative method allows for a more accurate integration of scRNA-seq data from multiple experiments by taking into account the structure and relationships between cells and genes.

What is scHetG?

The scHetG method builds a “heterogeneous graph,” which is a visual representation that captures the interactions between different batches of cells and their genes. In this graph, each cell and gene is represented as a node (or point), and the connections between them show how they interact or relate to one another. By doing this, scHetG can better understand the complexities of how cells express genes differently depending on their environment or type.

Moreover, scHetG utilizes a technique called “contrastive learning.” This helps the model learn to distinguish between different types of cells and genes while maintaining their relationships. As a result, scHetG can produce what are called “embeddings” for both cells and genes. These embeddings are like fingerprints that represent the unique characteristics of each cell and gene, preserving important structural information.

Overview of scHetG

Overview of scHetG. (A) scHetG takes the set of count matrices $X$ as input, constructs a heterogeneous graph consisting of multi-batch of cell nodes and gene nodes, and then initializes node embeddings. The encoder updates the cell and gene node embeddings to produce refined embeddings $\boldsymbol{E}$ (cell embeddings $\boldsymbol{E}_{c}=\left ( \boldsymbol{e}_{c_{1},1}, \boldsymbol{e}_{c_{1},2}, \cdots , \boldsymbol{e}_{c_{B},n_{B}} \right )$ and gene embeddings $\boldsymbol{E}_{g}=\left ( \boldsymbol{e}_{g,1}, \boldsymbol{e}_{g,2}, \cdots , \boldsymbol{e}_{g,m} \right )$)suitable for downstream analysis, and the ZINB distribution-based decoder combines batch one-hot embeddings $\boldsymbol{V}$ to reconstruct the graph. (B) Network structure of the encoder. For randomly initialized cell and gene node embeddings ($\boldsymbol{e}_{c_{b},i}^{(0)}$ and $\boldsymbol{e}_{g,j}^{(0)}$), the network passes, aggregates and updates the neighbourhood information for cell and gene nodes in the heterogeneous graph, respectively. In this subgraph, ${\text{Aggregate}}_{g}$ and ${\text{Aggregate}}_{c}$ represent the aggregation information on gene neighbours and cell neighbours, respectively. The final node embeddings ($\boldsymbol{e}_{c_{b},i}$ and $\boldsymbol{e}_{g,j}$) are obtained as the weighted average of the embeddings in previous layers. (C) Selection of anchor-positive pairs and anchor-negative pairs. Anchor–positive pairs primarily consist of MNN pairs identified through CCA between any two batches, while anchor-negative pairs are cells randomly sampled from the different pre-clusters within the same batch. (D) Contrastive learning. Constraining the cell node embeddings obtained by encoder such that anchor-positive attracts and anchor-negative repels.

(A) scHetG takes the set of count matrices X as input, constructs a heterogeneous graph consisting of multi-batch of cell nodes and gene nodes, and then initializes node embeddings. The encoder updates the cell and gene node embeddings to produce refined embeddings E (cell embeddings Ec=(ec1,1,ec1,2,⋯,ecB,nB) and gene embeddings Eg=(eg,1,eg,2,⋯,eg,m)⁠)suitable for downstream analysis, and the ZINB distribution-based decoder combines batch one-hot embeddings V to reconstruct the graph. (B) Network structure of the encoder. For randomly initialized cell and gene node embeddings (⁠ecb,i(0) and eg,j(0)⁠), the network passes, aggregates and updates the neighbourhood information for cell and gene nodes in the heterogeneous graph, respectively. In this subgraph, Aggregateg and Aggregatec represent the aggregation information on gene neighbours and cell neighbours, respectively. The final node embeddings (⁠ecb,i and eg,j⁠) are obtained as the weighted average of the embeddings in previous layers. (C) Selection of anchor-positive pairs and anchor-negative pairs. Anchor–positive pairs primarily consist of MNN pairs identified through CCA between any two batches, while anchor-negative pairs are cells randomly sampled from the different pre-clusters within the same batch. (D) Contrastive learning. Constraining the cell node embeddings obtained by encoder such that anchor-positive attracts and anchor-negative repels.

Why is scHetG Important?

A comprehensive assessment of scHetG across various species, tissues, and experimental scales has shown that it effectively reduces “batch effects.” Batch effects occur when data from different experiments vary due to technical differences rather than biological differences, which can obscure the true biological signals researchers want to study. By minimizing these effects while still retaining the structural relationships between cells and genes, scHetG enhances the accuracy and reliability of scRNA-seq data.

Additionally, this method allows researchers to identify batch-specific cell types and understand how different genes co-express within those specific cell types. This is crucial for gaining deeper insights into cellular functions and behaviors in various biological contexts.

Conclusion

In summary, the development of the scHetG method represents a significant advancement in the field of single-cell RNA sequencing. By integrating data from different experimental batches while preserving important structural information, scHetG allows for a more comprehensive characterization of cell states. This innovation not only improves the accuracy of cell and gene analysis but also paves the way for more detailed studies in various biological fields, ultimately leading to better understanding and treatments of diseases.

Availability – scHetG was implemented as a Python package and released on https://github.com/zxunn/scHetG_master.git.

Zhang X, Qian K, Li H. (2024) Structure-preserved integration of scRNA-seq data using heterogeneous graph neural network. Brief Bioinform 25(6):bbae538. [article]

Single-cell RNA sequencing (scRNA-seq) is a powerful technique that allows scientists to study individual cells and their gene activity. This method has revolutionized our understanding of cell states and how different cells behave in various environments. However, when researchers conduct experiments in different batches or settings, it can be challenging to combine the data from these batches. Often, traditional methods overlook important relationships between cells and genes, leading to incomplete or misleading results.

To address this issue, researchers at the China University of Geosciences have developed a new approach called scHetG, which stands for structure-preserved single-cell RNA sequencing data integration using heterogeneous graph neural networks. This innovative method allows for a more accurate integration of scRNA-seq data from multiple experiments by taking into account the structure and relationships between cells and genes.

What is scHetG?

The scHetG method builds a “heterogeneous graph,” which is a visual representation that captures the interactions between different batches of cells and their genes. In this graph, each cell and gene is represented as a node (or point), and the connections between them show how they interact or relate to one another. By doing this, scHetG can better understand the complexities of how cells express genes differently depending on their environment or type.

Moreover, scHetG utilizes a technique called “contrastive learning.” This helps the model learn to distinguish between different types of cells and genes while maintaining their relationships. As a result, scHetG can produce what are called “embeddings” for both cells and genes. These embeddings are like fingerprints that represent the unique characteristics of each cell and gene, preserving important structural information.

Overview of scHetG

Overview of scHetG. (A) scHetG takes the set of count matrices $X$ as input, constructs a heterogeneous graph consisting of multi-batch of cell nodes and gene nodes, and then initializes node embeddings. The encoder updates the cell and gene node embeddings to produce refined embeddings $\boldsymbol{E}$ (cell embeddings $\boldsymbol{E}_{c}=\left ( \boldsymbol{e}_{c_{1},1}, \boldsymbol{e}_{c_{1},2}, \cdots , \boldsymbol{e}_{c_{B},n_{B}} \right )$ and gene embeddings $\boldsymbol{E}_{g}=\left ( \boldsymbol{e}_{g,1}, \boldsymbol{e}_{g,2}, \cdots , \boldsymbol{e}_{g,m} \right )$)suitable for downstream analysis, and the ZINB distribution-based decoder combines batch one-hot embeddings $\boldsymbol{V}$ to reconstruct the graph. (B) Network structure of the encoder. For randomly initialized cell and gene node embeddings ($\boldsymbol{e}_{c_{b},i}^{(0)}$ and $\boldsymbol{e}_{g,j}^{(0)}$), the network passes, aggregates and updates the neighbourhood information for cell and gene nodes in the heterogeneous graph, respectively. In this subgraph, ${\text{Aggregate}}_{g}$ and ${\text{Aggregate}}_{c}$ represent the aggregation information on gene neighbours and cell neighbours, respectively. The final node embeddings ($\boldsymbol{e}_{c_{b},i}$ and $\boldsymbol{e}_{g,j}$) are obtained as the weighted average of the embeddings in previous layers. (C) Selection of anchor-positive pairs and anchor-negative pairs. Anchor–positive pairs primarily consist of MNN pairs identified through CCA between any two batches, while anchor-negative pairs are cells randomly sampled from the different pre-clusters within the same batch. (D) Contrastive learning. Constraining the cell node embeddings obtained by encoder such that anchor-positive attracts and anchor-negative repels.

(A) scHetG takes the set of count matrices X as input, constructs a heterogeneous graph consisting of multi-batch of cell nodes and gene nodes, and then initializes node embeddings. The encoder updates the cell and gene node embeddings to produce refined embeddings E (cell embeddings Ec=(ec1,1,ec1,2,⋯,ecB,nB) and gene embeddings Eg=(eg,1,eg,2,⋯,eg,m)⁠)suitable for downstream analysis, and the ZINB distribution-based decoder combines batch one-hot embeddings V to reconstruct the graph. (B) Network structure of the encoder. For randomly initialized cell and gene node embeddings (⁠ecb,i(0) and eg,j(0)⁠), the network passes, aggregates and updates the neighbourhood information for cell and gene nodes in the heterogeneous graph, respectively. In this subgraph, Aggregateg and Aggregatec represent the aggregation information on gene neighbours and cell neighbours, respectively. The final node embeddings (⁠ecb,i and eg,j⁠) are obtained as the weighted average of the embeddings in previous layers. (C) Selection of anchor-positive pairs and anchor-negative pairs. Anchor–positive pairs primarily consist of MNN pairs identified through CCA between any two batches, while anchor-negative pairs are cells randomly sampled from the different pre-clusters within the same batch. (D) Contrastive learning. Constraining the cell node embeddings obtained by encoder such that anchor-positive attracts and anchor-negative repels.

Why is scHetG Important?

A comprehensive assessment of scHetG across various species, tissues, and experimental scales has shown that it effectively reduces “batch effects.” Batch effects occur when data from different experiments vary due to technical differences rather than biological differences, which can obscure the true biological signals researchers want to study. By minimizing these effects while still retaining the structural relationships between cells and genes, scHetG enhances the accuracy and reliability of scRNA-seq data.

Additionally, this method allows researchers to identify batch-specific cell types and understand how different genes co-express within those specific cell types. This is crucial for gaining deeper insights into cellular functions and behaviors in various biological contexts.

Conclusion

In summary, the development of the scHetG method represents a significant advancement in the field of single-cell RNA sequencing. By integrating data from different experimental batches while preserving important structural information, scHetG allows for a more comprehensive characterization of cell states. This innovation not only improves the accuracy of cell and gene analysis but also paves the way for more detailed studies in various biological fields, ultimately leading to better understanding and treatments of diseases.

Availability – scHetG was implemented as a Python package and released on https://github.com/zxunn/scHetG_master.git.

Zhang X, Qian K, Li H. (2024) Structure-preserved integration of scRNA-seq data using heterogeneous graph neural network. Brief Bioinform 25(6):bbae538. [article]

Submit a Post to the Blog

SUBMIT CONTENT

Subscribe to the RNA-Seq Blog

RNA-Seq Products & Services