Abstract
Traditional Gene Set Analysis (GSA) is a cornerstone of genomic research, yet it frequently produces generic results that lack experimental specificity and are biased by highly connected "hub genes." This paper introduces cGSA (Contextualized Gene Set Analysis), a novel framework that integrates protein-protein interaction networks with Large Language Models (LLMs) to provide context-aware biological insights. By clustering genes into functional communities and filtering enrichment results through LLM-driven reasoning, cGSA achieves a 30% improvement in accuracy over traditional methods and significantly reduces the manual burden on researchers.
Introduction
In modern genomics, the identification of Differentially Expressed Genes (DEGs) is only the first step toward biological discovery. To interpret these lists, researchers rely on Gene Set Analysis (GSA) to map genes to known biological pathways. However, traditional GSA methodologies suffer from two primary limitations:
- Context Blindness: Standard tools ignore the specific experimental conditions (e.g., tissue type, disease state, or treatment). Consequently, a study on melanoma might return generic pathways like "cell cycle" or "metabolic processes" that, while statistically significant, obscure the specific mechanisms of interest.
- The "Hub Gene" Bias: Certain genes, such as the tumor suppressor TP53, are involved in a vast number of pathways. These "celebrity" genes can dominate enrichment scores, leading to redundant results that mask more nuanced, study-specific signals.
To address these challenges, we present cGSA, an AI-driven framework designed to inject biological structure and experimental context into the enrichment process.
Methodology
The cGSA pipeline consists of four integrated steps designed to refine raw gene lists into prioritized biological narratives:
1. Gene Network Clustering
Rather than treating a DEG list as a monolithic set, cGSA utilizes the STRING database (protein-protein interactions) and the EdMot algorithm to partition genes into functional "communities." This structural approach ensures that smaller, specific gene clusters are not drowned out by large, non-specific groups dominated by hub genes.
2. Gene Cluster Enrichment
Each identified cluster undergoes statistical enrichment analysis via the Enrichr API. This step identifies candidate pathways that are statistically overrepresented within each functional community.
3. Context-Aware Pathway Screening
This stage introduces the Large Language Model (e.g., GPT-4o) as a biological reasoning agent. The LLM evaluates candidate pathways against user-provided experimental context (e.g., "T-cells in a breast cancer microenvironment"). Pathways that are irrelevant to the specific study context are filtered out, effectively removing biological "noise."
4. Pathway Summarization and Scoring
The LLM selects the most representative pathway for each cluster and generates a concise biological narrative. Furthermore, it assigns a Relevance Score (0-10), allowing researchers to prioritize findings based on their alignment with the research objectives.
Experimental Setup and Datasets
The performance of cGSA was evaluated using several high-fidelity datasets:
- PMDEGs Benchmark: A newly curated dataset of 102 DEG sets from 31 peer-reviewed articles (2022–2024). This benchmark includes explicit research objectives and "ground truth" pathways validated by the original study authors.
- Case Studies: Real-world applications focusing on melanoma resistance to immune checkpoint blockade and cell-cell communication in breast cancer microenvironments.
- Robustness Testing: Synthetic datasets with 50% and 100% "noisy" genes were used to evaluate the LLM’s ability to maintain accuracy under sub-optimal data conditions.
Key Insights and Results
Superior Accuracy and Efficiency
cGSA achieved a harmonic mean (combining accuracy and hit ratio) of 0.878, representing a 30% improvement over traditional GSA methods. Notably, it also outperformed raw LLM applications (such as Llama 3.1 or GPT-4o without the cGSA framework) by 33-37%, demonstrating that the combination of network clustering and structured prompting is essential for performance.
Reduction of Information Overload
Traditional tools like g:Profiler often return hundreds of pathways (sometimes nearly 700) for a single gene set, requiring extensive manual filtering. cGSA narrows these results down to an average of 14 highly relevant pathways, drastically reducing the time required for expert review.
Expert Validation and Discovery
In blinded evaluations, human biologists agreed with cGSA’s pathway selections 90% of the time. In a breast cancer case study, cGSA successfully identified a specific signaling axis between FKBP5 in T-cells and HCAR2 in myeloid cells—a nuanced insight into immunotherapy mechanisms that standard tools failed to highlight.
Robustness to User Input
Ablation studies confirmed that the system is robust to varying levels of detail in user prompts. Whether provided with a single keyword or a detailed professional statement, the LLM-driven screening remained consistent, making the tool accessible to researchers at various stages of their study.
Limitations and Future Work
While cGSA represents a significant leap forward, it is not without limitations. As an LLM-based tool, there remains a residual risk of "hallucinations," though the framework's reliance on established databases like STRING and Enrichr serves as a critical safeguard. Currently, the system is optimized for human and mouse data; expanding the underlying knowledge base to include other model organisms is a priority for future development. Additionally, the tool's efficacy is inherently tied to the quality of the underlying pathway databases.
Conclusion
cGSA transforms Gene Set Analysis from a purely statistical exercise into a context-aware biological interpretation. By leveraging the reasoning capabilities of LLMs alongside the structural insights of protein interaction networks, cGSA provides researchers with a more accurate, prioritized, and relevant understanding of their genomic data.
The cGSA tool is available for public use at: https://www.ncbi.nlm.nih.gov/CBBresearch/Lu/Demo/cGSA/
Summary updated