𧬠AI-Powered Pathogen-Host Interaction Curation System
A comprehensive framework for automating PHI-base and PHI-Canto curation workflows using Large Language Models and intelligent automation tools.
π New colleague? Start with docs/STORAGE-CONFIGURATION.md β it explains where the pipeline reads/writes literature files and how to point it at your own location (via the
PHI_LITERATURE_ROOTenvironment variable).π Want to try it with zero local setup? Follow docs/DEMO-CODESPACES.md to curate an open-access article entirely in a GitHub Codespace.
PHI-Weaver streamlines the complex process of curating pathogen-host interaction data from scientific literature. It integrates Claude Code, automated PDF processing, database tracking, and quality assurance tools to accelerate high-quality curation for the PHI-base database.
β
Complete Automation Pipeline - End-to-end workflow from PDF intake to curation completion
β
LLM-Powered Analysis - Claude integration for intelligent entity extraction and annotation
β
Professional PDF Processing - Academic formatting with figure/table caption extraction
β
Database Integration - SQLite tracking for progress analytics and session management
β
Timeline System - Development tracking with incremental updates
β
External Storage Architecture - Scalable content management with performance optimization
β
Quality Assurance Tools - Validation workflows and error detection
β
Training Materials - Comprehensive onboarding and quick reference guides
phi-weaver/
βββ 00-Inbox/ # Incoming tasks and project coordination
βββ 02-Projects/ # Project-specific curation work
βββ 04-Literature/ # Literature stubs (content lives in external storage)
βββ 05-Protocols/ # Standard operating procedures
βββ 06-Training/ # Curator onboarding and quick references
βββ 07-Standards/ # Genetic nomenclature and ontology guides
βββ 08-Wiki/ # Curation protocols, registries, templates
βββ 11-CLAUDE-AI/ # Automation tools and session management
β βββ curation_pipeline.py # Master automation script
β βββ pdf-convert-skill/ # PDF processing system
β βββ db/ # SQLite tracking database + helper scripts
β βββ SESSION-LOGS/ # Development history and context
β βββ *.py # Timeline tracking and automation tools
βββ content-links/ # References to external literature storage
βββ archive/ # Historical / superseded documents
βββ docs/ # Storage config, Codespaces demo, PDF-converter usage
βββ CLAUDE.md # System configuration and guidelines
βββ README.md # This file
- Python 3.8+ with pip
- Claude Code CLI (installation guide)
- Git for version control
- WSL/Linux environment recommended for full functionality
- Clone the repository:
git clone https://github.com/PHI-base/phi-weaver.git
cd phi-weaver- Install Python dependencies:
pip install -r requirements.txt # PyMuPDF for PDF conversion; sqlite3 is built into Python- Set up Claude Code:
# WSL users may need permission bypass
claude --dangerously-skip-permissions- Initialize the tracking database (optional):
# Creates 11-CLAUDE-AI/db/phi_canto_tracking.db with demo data
python3 11-CLAUDE-AI/db/phi_canto_sqlite.py# Process a new PDF through the complete pipeline
python3 11-CLAUDE-AI/curation_pipeline.py auto-process ~/Downloads/paper.pdf
# Start an interactive curation session
python3 11-CLAUDE-AI/db/session_logger.py quick "Project Name" "Summary"
# Generate development timeline
python3 11-CLAUDE-AI/vault-ops/update_timeline_incremental.py# Convert PDF with academic formatting
python3 11-CLAUDE-AI/pdf-convert-skill/pdf-convert.py paper.pdf
# Process for curation with file organization
python3 11-CLAUDE-AI/convert-for-curation.py paper.pdf# Quick session logging
python3 11-CLAUDE-AI/db/session_logger.py quick 'Fusarium effectors' 'Added FgTPP1 analysis' 3 5 2.0
# View recent progress
python3 11-CLAUDE-AI/db/daily_curation.py progress
# Check productivity analytics
python3 11-CLAUDE-AI/db/daily_curation.py gaps# Update development timeline (preserves manual edits)
python3 11-CLAUDE-AI/vault-ops/update_timeline_incremental.py
# Full regeneration when needed
python3 11-CLAUDE-AI/vault-ops/generate_dev_timeline.pyLiterature β Document Processing β Entity Recognition β Ontology Mapping β
Relationship Analysis β Validation & Learning β Database Output β PHI-base
Module 1: Document Processing
- PDF to markdown conversion with figure extraction
- Caption and table extraction for academic papers
- Quality validation and formatting
Module 2: Entity Recognition
- LLM-powered gene/protein identification
- Organism and strain classification
- Experimental method detection
Module 3: Ontology Mapping
- UniProtKB accession lookup and validation
- PHIPO/GO term suggestion and mapping
- Quality assurance with confidence scoring
Module 4: Relationship Analysis
- Protein interaction detection
- Genotype-phenotype association mapping
- Cross-pathway analysis capabilities
Module 5: Validation & Learning
- Memory system for curator feedback
- Progress tracking and analytics
- Quality metrics and improvement suggestions
Module 6: Database Output
- PHI-Canto ready annotation records
- Structured data export capabilities
- Integration with external storage systems
The framework uses external storage for scalable content management:
- Development Vault (this repository): Tools, documentation, automation
- Literature Storage (external): Active work, completed curations, media files
- Content Links: References connecting development tools to literature content
Edit CLAUDE.md for system-specific configuration:
- Session startup protocol: Automatic context loading
- Database integration settings: SQLite configuration
- Permission and capabilities: Research access authorization
- External storage paths: Literature storage configuration
export CURATION_ROOT="/path/to/curation/workspace"
export LITERATURE_STORAGE="/path/to/external/literature"
export PHI_CANTO_DB="/path/to/phi_canto_tracking.db"The system uses SQLite for tracking:
- Articles: Literature pipeline status (queued β curated β published)
- Proteins: Gene IDs, functions, UniProtKB links, species relationships
- Sessions: Daily curation work with metrics and timestamps
- Progress: Analytics on productivity and data completeness
- Complete System Guide - Comprehensive framework documentation
- Automation Guide - Workflow automation usage
- Timeline System Guide - Development tracking
- PHI-Canto Curation Protocol
- Curator Onboarding
- Quick References: Genotype creation, phenotype annotation, UniProtKB lookup, ontology terms
- PDF Conversion System
- Tracking Database (SQLite) - schema, scripts, and example queries
- Session Logs - Development history and context
We welcome contributions to improve PHI-Weaver!
- Read the session logs in
11-CLAUDE-AI/SESSION-LOGS/INDEX.mdfor context - Check the development timeline for current priorities
- Review the architecture documentation in
CLAUDE.md
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-improvement) - Use the session logging system to track your work
- Update the timeline with development progress
- Commit your changes (
git commit -m 'Add amazing improvement') - Push to your branch (
git push origin feature/amazing-improvement) - Open a Pull Request
- π¬ Module Enhancement: Improve entity recognition, ontology mapping
- π€ LLM Integration: Enhanced agent workflows, memory systems
- π Analytics: Advanced progress tracking, quality metrics
- π API Integration: Direct PHI-Canto submission, external database connections
- π Documentation: User guides, video tutorials, training materials
- π§ͺ Testing: Automated testing frameworks, validation systems
- Issues: Report bugs or request features via GitHub Issues
- Discussions: Join community discussions for usage questions
- Documentation: Check
CLAUDE.mdand guides in11-CLAUDE-AI/
- Maintainer: martin2urban
- Research Domain: Pathogen-Host Interactions, PHI-base, PHI-Canto
- LLM Integration: Claude Code, Agent Networks, Automation Workflows
This project is licensed under the MIT License - see the LICENSE file for details.
- PHI-base Team - Database infrastructure and curation standards
- PHI-Canto Platform - Community curation system
- Claude AI/Anthropic - LLM integration and automation capabilities
- Research Community - Domain expertise and collaborative curation efforts
Current Version: Development Framework
Development Timeline: 26 days (Apr 11 - May 7, 2026)
Major Milestones: 5 infrastructure additions
Session Logs: 12 development sessions tracked
Automation Level: Complete pipeline with external storage integration
Built for accelerating scientific curation through intelligent automation π