Skip to main content
QUICK REVIEW

[Paper Review] How much can ChatGPT really help Computational Biologists in Programming?

Chowdhury Rafeed Rahman, Limsoon Wong|arXiv (Cornell University)|Sep 17, 2023
Artificial Intelligence in Healthcare and EducationMedicine3 citations
TL;DR

This paper evaluates ChatGPT's utility for computational biologists in programming tasks such as code generation, debugging, refactoring, and pipeline development. It demonstrates that while ChatGPT significantly accelerates coding workflows and improves productivity, it introduces risks like hallucinated details, incorrect technical claims, and overconfidence in flawed code, necessitating expert validation and critical oversight in bioinformatics workflows.

ABSTRACT

ChatGPT, a recently developed product by openAI, is successfully leaving its mark as a multi-purpose natural language based chatbot. In this paper, we are more interested in analyzing its potential in the field of computational biology. A major share of work done by computational biologists these days involve coding up bioinformatics algorithms, analyzing data, creating pipelining scripts and even machine learning modeling and feature extraction. This paper focuses on the potential influence (both positive and negative) of ChatGPT in the mentioned aspects with illustrative examples from different perspectives. Compared to other fields of computer science, computational biology has - (1) less coding resources, (2) more sensitivity and bias issues (deals with medical data) and (3) more necessity of coding assistance (people from diverse background come to this field). Keeping such issues in mind, we cover use cases such as code writing, reviewing, debugging, converting, refactoring and pipelining using ChatGPT from the perspective of computational biologists in this paper.

Motivation & Objective

  • To assess the practical utility of ChatGPT for computational biologists in writing, reviewing, and debugging bioinformatics code.
  • To identify the limitations and risks of relying on large language models like ChatGPT in computational biology, especially regarding factual accuracy and code correctness.
  • To provide real-world examples and guidelines for responsible use of generative AI in bioinformatics workflows.
  • To compare ChatGPT’s performance with established tools like Codex and GitHub Copilot in context-specific biological programming tasks.
  • To emphasize the necessity of human oversight due to hallucinations, outdated knowledge, and potential biases in medical and genomic data handling.

Proposed method

  • Conducted interactive experiments with ChatGPT using real bioinformatics use cases, including code generation, debugging, and data pipeline construction.
  • Evaluated responses on technical accuracy by comparing them against established bioinformatics tools (e.g., Samtools, Pysam, PSI-BLAST) and known biological principles.
  • Tested ChatGPT’s ability to explain complex concepts (e.g., BAM file flags, VAF calling, PCA vs robust PCA) and generate working code in Python and Bash.
  • Assessed the model’s performance on sensitive tasks involving clinical data, such as clonal hematopoiesis in cfDNA, and its tendency to fabricate references or statistics.
  • Analyzed code quality by examining documentation, error handling, and architectural choices (e.g., use of subprocess in Python vs shell scripts).
  • Collected and analyzed 41 interaction transcripts (Records S1–S41) to systematically evaluate response reliability, consistency, and error patterns.
Figure 1: Overview of ChatGPT contributing in computational biology programming workflow
Figure 1: Overview of ChatGPT contributing in computational biology programming workflow

Experimental results

Research questions

  • RQ1To what extent can ChatGPT generate correct and efficient bioinformatics code for tasks like BAM file processing, variant calling, and data visualization?
  • RQ2How reliable are ChatGPT’s technical explanations for complex bioinformatics concepts such as BLAST, PCA, and VAF calling?
  • RQ3What are the primary risks of using ChatGPT in computational biology, particularly regarding hallucinated facts, incorrect references, or flawed logic?
  • RQ4How does ChatGPT’s performance compare to specialized coding assistants like Codex or GitHub Copilot in bioinformatics-specific scenarios?
  • RQ5In what ways can computational biologists best integrate ChatGPT into their programming workflows without compromising data integrity or reproducibility?

Key findings

  • ChatGPT accurately described core bioinformatics tools like Samtools and Pysam, providing correct use cases and distinctions between them.
  • The model frequently hallucinated details—such as claiming clonal hematopoiesis causes leukemia syndromes—demonstrating a significant risk in clinical and genomic contexts.
  • ChatGPT avoided providing specific statistics or references, instead suggesting keywords to search, and could not access current databases or research papers directly.
  • It often generated code using Python and subprocess modules even when shell scripts would be more appropriate, indicating a lack of context-awareness in system-level scripting.
  • While ChatGPT produced well-documented code with comments, this sometimes led to misplaced confidence in incorrect logic, highlighting the danger of superficial correctness.
  • The model’s knowledge base is fixed to data up to September 2021, making it unsuitable for questions about recent developments such as the latest version of PSI-BLAST or current WGS pricing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.