Salient

scTGCL: A Transformer-Based Graph Contrastive Learning Approach for Efficiently Clustering Single-Cell RNA-seq Data

Khan, M. S. A., Kabir, M. H., Faisal, M. M.
10.64898/2026.03.28.714542 · was preprinted
method development code ↗ benchmarked
Surfaced because: open code, benchmarked against baselines.
relevance 0.45 openness 0.50 novelty 0.37

Abstract

Motivation: Single-cell RNA sequencing (scRNA-seq) enables characterization of cellular heterogeneity at unprecedented resolution. However, accurate clustering of scRNA-seq data remains challenging due to high dimensionality, dropout-induced sparsity, and technical noise. Existing contrastive learning methods usually create augmented views by perturbing gene expression values, so the uncertainty in cell-cell relationships caused by dropout events is not properly modeled. Results: We propose scTGCL, a novel Transformer-based graph contrastive learning framework that learns robust and discriminative cell representations directly from gene expression data. scTGCL employs multi-head self-attention to adaptively construct weighted cell-cell graphs and a Transformer encoder to generate cell embeddings from them, capturing diverse biological relationships. For contrastive augmentation, we apply feature-level gene masking together with attention masking that randomly drops edges of the learned attention matrices, enabling the model to withstand dropout events and technical noise. A symmetric contrastive loss maximizes agreement between original and augmented representations, while joint optimization with reconstruction and imputation losses preserves biological interpretability. Extensive experiments on twenty real and simulated scRNA-seq datasets demonstrate that scTGCL achieves the highest average performance among nine state-of-the-art baseline methods in clustering accuracy, normalized mutual information, and adjusted Rand index, while also achieving superior imputation performance and substantially lower runtime on large-scale datasets. Furthermore, biological analysis confirms that the learned clusters align with known cell types and yield biologically interpretable pathway enrichment, validating the utility of scTGCL for downstream cell annotation and marker gene discovery. Availability and Implementation: The source code and test data are freely available at GitHub (https://github.com/ShoaibAbdullahKhan/scTGCL)

Lifecycle

Discussion

No qualifying discussion yet.