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 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
- Install uv for dependency management
- 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
Fetch Gene Data
Download UniProt records and GO annotations
Literature Research
Gather supporting publications and evidence
Create Review
Structure annotations using the YAML schema
Validate
Check against LinkML schema and best practices
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:
- Format Validation: Ensures IDs follow proper CURIE patterns
- Existence Validation: Verifies terms exist in authoritative ontologies
- Label Matching: Cross-references provided labels against canonical labels
- Branch Validation: Ensures GO terms are in correct ontological branches
- Obsolescence Checking: Flags outdated terms
Why This Prevents Hallucination
- ✅ Dual Verification: Both ID and label must be correct and consistent
- ✅ External Truth Source: Validates against authoritative ontologies
- ✅ Real-time Checking: Uses live API calls to catch fabricated terms
- ✅ Semantic Consistency: Ensures terms make sense in context
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
- HIGH Risk: <25% sequence identity with characterized proteins
- MEDIUM Risk: 25-50% sequence identity
- LOW Risk: >50% sequence identity with consistent domains
Output Formats
- JSON reports: Detailed analysis per gene
- TSV summaries: Easy filtering and analysis
- Risk categorization: HIGH/MEDIUM/LOW classifications
Resources & Links
Gene Review Structure
Each gene review follows a structured YAML format containing:
- Gene metadata: UniProt ID, gene symbol, taxon information
- Description: Comprehensive summary of gene function
- References: Literature and bioinformatics sources
- Existing annotations: Review of current GO annotations with actions
- Core functions: Curated essential gene functions
Example Data
The repository includes example gene reviews for:
- Human: BRCA1, CFAP300, RBFOX3, TP53
- Mouse: Various examples
- Worm: lrx-1
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:
- Lanthanide vs Calcium Dependency: Corrected misannotation from "calcium ion binding" to lanthanide dependency
- Cellular Localization Precision: Identified as soluble periplasmic enzyme, not membrane-associated
- Dual Functional Roles: Both metabolic enzyme and regulatory sensor
- Missing GO Terms: Revealed gaps in ontology coverage