Snakemaker:利用生成式人工智能将临时性分析无缝转化为可持续的Snakemake工作流
Snakemaker: Seamlessly transforming ad-hoc analyses into sustainable Snakemake workflows with generative AI
AI总结:
Snakemaker利用生成式AI将终端中的临时性代码和单体Notebook自动转换为遵循最佳实践的Snakemake工作流,并支持自然语言控制,从而提升生物信息学研究的计算可重复性与可持续性。
摘要:
可重复性和可持续性在生物信息学软件开发中面临重大挑战,快速演变的工具和复杂的工作流往往导致流水线寿命短暂或难以适配。本文介绍了Snakemaker,一种利用生成式人工智能帮助研究人员构建可持续数据分析流水线的工具,其方式是将非结构化代码转换为定义良好的Snakemake工作流。Snakemaker以非侵入方式跟踪研究人员在终端中执行的工作,分析执行模式,并生成可集成到现有流水线中的Snakemake工作流。Snakemaker还支持将单体式Ipython Notebook转换为模块化Snakemake流水线,将Notebook的全局状态解析为规则之间基于文件的离散交互。集成的聊天助手通过自然语言指令为用户提供细粒度控制。Snakemaker通过遵循最佳实践(包括Conda环境跟踪、通用规则生成和循环展开)生成高质量的Snakemake工作流。通过降低原型代码与生产级代码之间的门槛,Snakemaker弥补了生物信息学研究中计算可重复性的一个关键空白。
英文摘要:
Reproducibility and sustainability present significant challenges in bioinformatics software development, where rapidly evolving tools and complex workflows often result in short-lived or difficult-to-adapt pipelines. This paper introduces Snakemaker, a tool that leverages generative AI to facilitate researchers build sustainable data analysis pipelines by converting unstructured code into well-defined Snakemake workflows. Snakemaker non-invasively tracks the work performed in the terminal by the researcher, analyzes execution patterns, and generates Snakemake workflows that can be integrated into existing pipelines. Snakemaker also supports the transformation of monolithic Ipython Notebooks into modular Snakemake pipelines, resolving the global state of the notebook into discrete, file-based interactions between rules. An integrated chat assistant provides users with fine-grained control through natural language instructions. Snakemaker generates high-quality Snakemake workflows by adhering to the best practices, including Conda environment tracking, generic rule generation and loop unrolling. By lowering the barrier between prototype and production-quality code, Snakemaker addresses a critical gap in computational reproducibility for bioinformatics research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。