arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.20122cs.SE
收藏

从提示到流程:用于生物信息学科学工作流开发的大语言模型

From Prompt to Pipeline: Large Language Models for Scientific Workflow Development in Bioinformatics

Khairul Alam, Banani Roy

AI总结:

本研究评估了 GPT-4o、Gemini 2.5 Flash 和 DeepSeek-V3 在 Galaxy 与 Nextflow 平台上生成生物信息学工作流的能力,发现分层提示策略可显著提升输出质量,并证明大语言模型能有效降低工作流开发门槛。

摘要:

科学工作流系统(如 Galaxy 和 Nextflow)对于可扩展、可复现和自动化的生物信息学分析至关重要。然而,由于工具/模块选择的复杂性、基础设施要求以及有限的编程专业知识,许多领域科学家在开发和理解科学工作流方面仍面临挑战。本研究探讨了当前最先进的大语言模型(如 GPT-4o、Gemini 2.5 Flash 和 DeepSeek-V3)是否能够辅助生成准确、完整且可用的生物信息学工作流。我们评估了一组具有代表性的工作流,涵盖 RNA-seq、SNP 分析和 DNA 甲基化等任务,并同时覆盖 Galaxy(图形化)和 Nextflow(基于脚本)两种平台。为模拟真实使用场景,我们采用分层提示策略:每个工作流首先仅使用纯指令提示生成;如果输出不完整或不正确,则升级为基于角色的提示,并在必要时最终采用思维链提示。生成的工作流依据来自 Galaxy Training Network 和 nf-core 的社区维护基准进行评估,评估标准包括正确性、完整性、工具适用性和可执行性。结果表明,大语言模型在工作流开发中展现出强大潜力。Gemini 2.5 Flash 在 Galaxy 中生成了最准确且用户友好的工作流,而 DeepSeek-V3 在 Nextflow 流程生成方面表现突出。GPT-4o 在结构化提示下表现良好。提示策略显著影响输出质量,基于角色的提示和思维链提示能够提升正确性和完整性。总体而言,大语言模型可以降低工作流开发中的认知和技术障碍,使科学工作流系统对新手和专家用户都更加易用。本研究凸显了大语言模型的实用价值,并为其融入真实世界生物信息学工作流设计提供了可操作的见解。

英文摘要:

Scientific Workflow Systems such as Galaxy and Nextflow are essential for scalable, reproducible, and automated bioinformatics analyses. However, developing and understanding scientific workflows remains challenging for many domain scientists due to the complexity of tool/module selection, infrastructure requirements, and limited programming expertise. This study explores whether state-of-the-art Large Language Models such as GPT-4o, Gemini 2.5 Flash, and DeepSeek-V3 can assist in generating accurate, complete, and usable bioinformatics workflows. We evaluate a set of representative workflows covering tasks such as RNA-seq, SNP analysis, and DNA methylation across both Galaxy (graphical) and Nextflow (script-based) platforms. To simulate realistic usage, we adopt a tiered prompting strategy: each workflow is first generated using an instruction-only prompt; if the output is incomplete or incorrect, we escalate to a role-based prompt, and finally to chain-of-thought prompting if needed. The generated workflows are evaluated against community-curated baselines from the Galaxy Training Network and nf-core, using criteria including correctness, completeness, tool appropriateness, and executability. Results show that LLMs exhibit strong potential in workflow development. Gemini 2.5 Flash produced the most accurate and user-friendly workflows in Galaxy, while DeepSeek-V3 excelled in Nextflow pipeline generation. GPT-4o performed nicely with structured prompts. Prompting strategy significantly influenced output quality, with role-based and chain-of-thought prompts enhancing correctness and completeness. Overall, LLMs can reduce the cognitive and technical barriers to workflow development, making SWSs more accessible to novice and expert users. This work highlights the practical utility of LLMs and provides actionable insights for integrating them into real-world bioinformatics workflow design.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑