Bioinformatics Retrieval Augmentation Data (BRAD) Digital Assistant

Joshua Pickard, Marc Andrew Choi, Natalie Oliven, Cooper Stansbury, Jillian Cwycyshyn, Nicholas Galioto, Alex A. Gorodetsky, Alvaro Velasquez, Indika RajapaksearXiv 2024 · OpenReview

Abstract

Recent advancements in Large Language Models (LLMs) are transforming biology, computer science, and many other research fields, as well as impacting everyday life. While transformer-based technologies are currently being deployed in biology, no available agentic system has been developed to tackle bioinformatics workflows. We present a prototype Bioinformatics Retrieval Augmented Data (BRAD) digital assistant. BRAD is a chatbot and agentic system that integrates a suite of tools to handle bioinformatics tasks, from code execution to online search. We demonstrate its capabilities through (1) improved question-and-answering with retrieval augmented generation (RAG), (2) the ability to run complex software pipelines, and (3) the ability to organize and distribute tasks in agentic workflows. We use BRAD for automation, performing tasks ranging from gene enrichment and searching the archive to automatic code generation for running biomarker identification pipelines. BRAD is a step toward autonomous, self-driving labs for digital biology.

Introduction

Biological research currently faces a significant "silo" problem. Researchers must navigate a fragmented landscape of millions of unstructured literature papers, structured databases like PubMed or Gene Ontology, and specialized computational tools. While general-purpose Large Language Models (LLMs) like GPT-4 excel at text summarization, they are prone to hallucinations and lack the "hands" required to interact with local files or execute specialized bioinformatics software.

To address these challenges, we developed BRAD (Bioinformatics Retrieval Augmented Digital assistant). BRAD is an agentic AI system designed to bridge the gap between LLMs and biological data. Unlike standard chatbots, BRAD executes scientific tasks by integrating literature retrieval, database searches, and automated software pipeline execution.

System Architecture and Methodology

BRAD is built as a modular Python package leveraging the LangChain framework. Its architecture consists of three primary components:

  1. The Agent Class: Acting as the system's "brain," it manages memory, coordinates between modules, and oversees the output directory.
  2. Tool Modules: These provide standardized interfaces to external resources, including Document Chat (using RAG for PDF analysis), Search Tools (querying arXiv, bioRxiv, and PubMed), and Software Tools (executing Python/R scripts).
  3. Enhanced RAG (ERAG): To improve accuracy, BRAD employs advanced retrieval techniques such as multiquerying, contextual compression, and reranking.
BRAD System Overview and Agentic Workflow

The system is accessible via a Python API, a command-line interface, or a web-based GUI built with Node.js and Flask. This multi-interface approach ensures that both developers and bench scientists can leverage BRAD's capabilities.

Key Insights: From Passive Retrieval to Active Agency

A core innovation of BRAD is the transition from a passive retrieval system to an active agent. In head-to-head comparisons with models like OpenAI’s o1-preview, BRAD demonstrated superior utility in practical lab settings. While o1 could provide a high-level theoretical framework for a task, BRAD actually executed the steps—loading data, running models, and producing structured outputs like ranked biomarker lists.

Furthermore, BRAD's use of RAG provides "verifiable sources." In the GUI, users can trace responses back to specific source documents, significantly mitigating the risk of hallucinations in critical research contexts.

Performance and Automation Results

The system was evaluated using a RAG database of 500 unique documents (18,000 pages) and a 2015 gene expression dataset for biomarker identification.

Computational Performance and Cost Metrics

Key results include:

  • High Fidelity: Using the RAGAs framework, BRAD achieved high scores in "Faithfulness" and "Answer Relevance," particularly with ERAG enhancements.
  • Efficiency: Benchmarking showed that RAG integration does not significantly increase computational overhead. Average LLM response times remained between 1–1.5 seconds, with API costs averaging between $0.0002 and $0.0026 per task.
  • Successful Pipeline Automation: BRAD successfully automated a three-stage biomarker identification pipeline (Data Loading -> Modeling -> Observability), identifying 30 top-ranked genes (e.g., MT-CO1, ACTB) and outputting them in a structured spreadsheet format.

Limitations and Future Directions

While BRAD represents a significant step toward autonomous digital biology, several challenges remain. Generating entirely new, bug-free code via LLMs is still an active research area. Additionally, the Software Tool's effectiveness depends heavily on the quality of documentation for the underlying bioinformatics scripts.

Future work will focus on refining the system's ability to handle noisy datasets, improving the transparency of AI-suggested biomarkers, and fully integrating advanced Python package features into the web-based GUI. BRAD serves as a prototype for the "self-driving labs" of the future, where digital assistants handle the heavy lifting of data integration and pipeline execution.

Summary updated

BibTeX
@misc{pickard2024bioinformatics,
  author = {Joshua Pickard and Marc Andrew Choi and Natalie Oliven and Cooper Stansbury and Jillian Cwycyshyn and Nicholas Galioto and Alex A. Gorodetsky and Alvaro Velasquez and Indika Rajapakse},
  title = {{Bioinformatics Retrieval Augmentation Data (BRAD) Digital Assistant}},
  year = {2024},
  eprint = {2409.02864},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.02864},
}
Figure