🧬 AI Gene Review

AI-assisted tool for reviewing and curating gene annotations

Overview

The AI Gene Review tool helps researchers and curators review existing Gene Ontology (GO) annotations using strict, defined criteria. It provides a structured workflow for validating annotations using AI-driven analysis combined with literature research and bioinformatics evidence.

Key Goals: Review existing GO annotations, synthesize high-quality annotations from multiple evidence sources, fetch and organize gene data, validate annotation files, and manage references and supporting literature.

Key Features

🧬

Multi-organism Support

Human, mouse, worm, and other model organisms with unified annotation workflow

📚

Literature Integration

Automatic PubMed citation fetching and caching with reference management

✅

Schema Validation

LinkML-based validation for consistency and structured data integrity

🛡️

Anti-Hallucination Validation

ID/label tuple checksums prevent AI fabrication of ontological terms

🔄

Batch Processing

Handle multiple genes efficiently with comprehensive reporting

📊

Structured Reviews

YAML-based gene annotation reviews with detailed provenance tracking

🔍

Evidence Tracking

Detailed provenance and supporting text for all annotation decisions

⚠️

Misannotation Detection

Computational analysis to identify potentially misannotated genes

Quick Start

Installation

  1. Install uv for dependency management
  2. Clone and install dependencies:
git clone https://github.com/cmungall/ai-gene-review.git
cd ai-gene-review
uv sync --group dev

Basic Usage

Fetch gene data:

uv run ai-gene-review fetch-gene human TP53

Validate a gene review file:

uv run ai-gene-review validate genes/human/TP53/TP53-ai-review.yaml

Generate validation reports with TSV output:

just validate-all  # Creates reports/validation-all.tsv

Fetch publications for a gene:

uv run ai-gene-review fetch-gene-pmids genes/human/TP53/TP53-ai-review.yaml

Generate statistics report:

just stats          # Generate HTML report
just stats-open     # Generate and open in browser

Workflow Overview

1

Fetch Gene Data

Download UniProt records and GO annotations

2

Literature Research

Gather supporting publications and evidence

3

Create Review

Structure annotations using the YAML schema

4

Validate

Check against LinkML schema and best practices

5

Iterate

Refine annotations based on validation results

Anti-Hallucination Validation

Novel Approach: The AI Gene Review system implements a robust anti-hallucination validation mechanism using ID/label tuple checksums to prevent AI systems from fabricating or misusing ontological terms.

How It Works

Every ontology term requires both an id (semantic identifier) and label (human-readable name):

term:
  id: GO:0005515      # Ontology identifier
  label: protein binding  # Canonical label

Validation Process

The TermValidator performs multi-layer validation:

  1. Format Validation: Ensures IDs follow proper CURIE patterns
  2. Existence Validation: Verifies terms exist in authoritative ontologies
  3. Label Matching: Cross-references provided labels against canonical labels
  4. Branch Validation: Ensures GO terms are in correct ontological branches
  5. Obsolescence Checking: Flags outdated terms

Why This Prevents Hallucination

Supported Ontologies

The validator supports 10+ major ontologies including GO, HP, MONDO, CL, UBERON, CHEBI, PR, SO, PATO, and NCBITaxon.

Misannotation Analysis

Computational Detection: New framework inspired by research showing 78% of enzyme annotations may be incorrect. Identifies potentially misannotated genes using sequence similarity and domain architecture analysis.

Analysis Framework

Located in analysis/misannotation/ with dedicated tools:

Quick Test Commands:

cd analysis/misannotation

# Quick test with single gene (fast)
just test-quick human TP53

# Full analysis with BLAST (slower)
just analyze-sequence human
just analyze-domains human
just analyze-full human

# Generate summary report
just summarize-risk

Risk Assessment

Output Formats

Resources & Links

Gene Review Structure

Each gene review follows a structured YAML format containing:

Example Data

The repository includes example gene reviews for:

Developer Tools

Available commands using just command runner:

just --list           # Show all available commands
just test             # Run tests, type checking, and linting
just format           # Run code formatting checks
just install          # Install project dependencies
just validate-all     # Validate all genes with TSV output

Case Study: PedH Lanthanide-Dependent Alcohol Dehydrogenase

Key Discoveries from AI-Assisted Review:

  1. Lanthanide vs Calcium Dependency: Corrected misannotation from "calcium ion binding" to lanthanide dependency
  2. Cellular Localization Precision: Identified as soluble periplasmic enzyme, not membrane-associated
  3. Dual Functional Roles: Both metabolic enzyme and regulatory sensor
  4. Missing GO Terms: Revealed gaps in ontology coverage