PO.BCS02.01 · 生物信息与计算
PortrAIgent:用于端到端空间转录组学发现的协同科学家智能体
PortrAIgent: Co-scientist agent for end-to-end spatial transcriptomics discovery
作者与单位 Authors & Affiliations
摘要 Abstract
中文摘要
背景
空间转录组学(ST)技术在组织结构内绘制基因表达图谱,为组织组织方式和细胞相互作用提供了前所未有的洞见。然而,分析这些复杂数据集仍是一个重大瓶颈。当前的工作流程需要专门的、跨领域的专长,并依赖大量的手动干预,这种专长壁垒阻碍了数据向生物学洞见的快速转化。
方法
为应对这一挑战,我们开发了“PortrAIgent”,一个能够自主管理复杂分析工作流程的协同科学家 AI 智能体。该系统运作方式包括:(1) 一个用于推理、规划和代码生成的多模态 LLM;(2) 一个基于 LangGraph 的工作流程管理器,用于控制分析步骤的执行顺序;(3) 专门的计算工具,包括代码执行环境和实时文献检索工具。该智能体的核心特征是其检索增强生成(RAG)系统,它利用 scanpy、squidpy 和 scvi-tools 的代码库,将多样化的信息学工具整合起来,以实现诸如细胞分型、空间分析或数据整合等专门目标。
结果
成功验证了两种工作流程:1) 假设驱动的探索:当用户提出一个生物学假设时,智能体会提出替代假设,通过文献检索对其进行完善,然后将方案传递给“审查智能体”。在遵循这一经过验证的方案后,智能体继续执行。2) 分析驱动的工作流程:对于简单的请求(例如“组间比较”),智能体的规划器会在生成和执行代码之前检查 AnnData 对象的状态,以确定最优的分析函数。我们通过将 PortrAIgent 应用于基于 ST 数据分析 TME 来对其进行演示。通过在具有不同预处理状态的多个 ST 数据集上测试系统,验证了该框架的自主推理能力。智能体持续检测到缺失的步骤(例如归一化、HVG 选择、批次校正),修订其自身方案,并在无需手动干预的情况下重新生成合适的代码。它利用实时文献检索解读所发现模式的生物学意义,并生成一份总结整个发现过程的全面研究报告。
结论
PortrAIgent 为肿瘤学空间生物学中的自动化科学发现提供了一种新颖的方法。除主要案例研究外,该系统还在多种组织背景下进行了测试,在这些测试中它可靠地调整分析方案、纠正缺失的预处理步骤,并生成与专家反馈相当的连贯生物学解读。通过整合基于 RAG 的动态代码生成、自主执行和全面的报告生成,PortrAIgent 简化了复杂的空间数据分析,并降低了理解复杂生物系统的专长壁垒。
查看英文原文 English abstract
Background
Spatial transcriptomics (ST) technology maps gene expression within tissue structures, offering unprecedented insights into tissue organization and cellular interactions. Analyzing these complex datasets, however, remains a significant bottleneck. Current workflows demand specialized, multi-domain expertise and rely on heavy manual intervention, an expertise barrier that hinders the rapid translation of data into biological insights.
Method
To address this challenge, we developed 'PortrAIgent,' a co-scientist AI agent that autonomously manages complex analysis workflows. The system operates by having (1) a multimodal LLM for reasoning, planning, and code generation; (2) a LangGraph-based workflow manager control the execution order of analysis steps; and (3) specialized computational tools, including a code execution environment and a real-time literature retrieval tool. A core feature of the agent is its Retrieval-Augmented Generation (RAG) system, which leverages codebases from scanpy, squidpy, and scvi-tools to integrate diverse informatics tools for specialized objectives like cell typing, spatial profiling, or data integration.
Results
Two workflows were successfully validated: 1) Hypothesis-Driven Exploration: When a user presents a biological hypothesis, the agent proposes alternative hypotheses, refines them via literature search, and then passes the plan to a ‘Reviewer Agent'. Following this validated plan, the agent proceeds to execution. 2) Analysis-Driven Workflow: For simple requests (e.g., "group comparison"), the agent's Planner checks the AnnData object's state to determine the optimal analysis functions before generating and executing the code. We demonstrated PortrAIgent by applying it to analyzing TME by ST data. Autonomous reasoning capability of this framework was validated by testing the system on multiple ST datasets with varying preprocessing states. The agent consistently detected missing steps (e.g., normalization, HVG selection, batch correction), revised its own plan, and regenerated the appropriate code without manual intervention. It interpreted the biological meaning of the discovered patterns using real-time literature search and generated a comprehensive research report summarizing the entire discovery process.
Conclusion
PortrAIgent offers a novel approach to automated scientific discovery in spatial biology for oncology. Beyond the primary case study, the system was tested across multiple tissue contexts, where it reliably adjusted analysis plans, corrected missing preprocessing steps, and generated coherent biological interpretations comparable to expert feedback. By integrating dynamic RAG-based code generation, autonomous execution, and comprehensive report generation, PortrAIgent streamlines complex spatial data analysis and lowers the expertise barrier for understanding complex biological systems.
利益披露 Disclosure
Y. Seong,
Portrai, Inc. Employment.
D. Lee,
Portrai, Inc. Employment.
C. Park,
Portrai, Inc. Employment.
H. Choi,
Portrai, Inc. Stock.
Institute of Radiation Medicine, Medical Research Center, Seoul National University, Seoul, Republic of Korea Employment.
Department of Nuclear Medicine, Seoul National University Hospital, Seoul, Republic of Korea Employment.
Department of Nuclear Medicine, Seoul National University College of Medicine, Seoul, Republic of Korea Employment.