Skip to content
AndyZhuangPublic

About

Claw-like Agent for bioinformatics

Resources

Contributing

Stars

22 stars

Watchers

0 watching

Forks

Latest commit

 

History

21 Commits

Folders and files

Repository files navigation

🧬 OpenLife

OpenLife

The Best Bioinformatics AI Agent
🧬 Built on ZeroClaw. Local-first. Privacy-focused.

CI Release MIT License Rust 1.75+


What is OpenLife?

OpenLife is a high-performance bioinformatics AI agent built on ZeroClaw (Rust). It combines the efficiency and low resource usage of ZeroClaw with a specialized bioinformatics skill system.

┌─────────────────────────────────────────────────────────────┐
│                        OpenLife                              │
├─────────────────────────────────────────────────────────────┤
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────────┐ │
│  │   CLI/API    │  │   Gateway    │  │    Daemon        │ │
│  └──────┬───────┘  └──────┬───────┘  └────────┬─────────┘ │
│         │                 │                    │           │
│  ┌──────▼─────────────────▼────────────────────▼─────────┐ │
│  │                    Agent Core                          │ │
│  │  ┌─────────────┐  ┌─────────────┐  ┌────────────────┐  │ │
│  │  │ Orchestrator│  │ Bio-Skills │  │ ZeroClaw Tools │  │ │
│  │  └─────────────┘  └─────────────┘  └────────────────┘  │ │
│  └─────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────┘

Why OpenLife?

Feature OpenLife Others
Runtime ZeroClaw (Rust) OpenClaw (Python)
Performance High Medium
Binary Size ~10MB N/A
Startup <100ms ~2s
Memory Usage Low High

Features

🧬 Bioinformatics Skills

OpenLife routes your queries to specialized bioinformatics skills:

Category Skill Description
Pharmacogenomics pharmgx-reporter 31 SNPs, 12 genes, 51 drugs, CPIC guidelines
Nutrigenomics nutrigx-advisor Personalized nutrition from genetic data
Diversity & Equity equity-scorer HEIM diversity scoring, FST, PCA
Variant Annotation vcf-annotator VEP, ClinVar, gnomAD
Literature lit-synthesizer PubMed/bioRxiv synthesis
Single-Cell scrna-orchestrator Scanpy automation
Sequence Analysis seq-wrangler FASTQ, alignment, BAM, trimming
Ancestry ancestry-pca Population structure, PCA
Metagenomics metagenomics 16S, shotgun profiling
Semantic Analysis semantic-sim Research gaps, NTDs
Protein Structure struct-predictor AlphaFold, PDB
Reproducibility repro-enforcer

🧪 LabClaw Integration (225+ Skills)

OpenLife includes all skills from LabClaw, a comprehensive skill library for biomedical AI workflows:

Category Skills Focus
Biology 80 Genomics, proteomics, single-cell, multi-omics, databases
Pharmacy 36 Cheminformatics, molecular ML, docking, drug discovery
Medicine 20 Clinical trials, precision medicine, oncology
General 54 Statistics, machine learning, visualization, writing
Literature 30 PubMed, academic search, citations, patents
Vision 5 Hand tracking, 3D pose, segmentation

To use LabClaw skills, install them:

openlife bio install skills/labclaw/bio
openlife bio install skills/labclaw/pharma
openlife bio install skills/labclaw/med
openlife bio install skills/labclaw/general
openlife bio install skills/labclaw/literature
openlife bio install skills/labclaw/vision

🗄️ Database Access Skills

Specialized skills for querying major bioinformatics databases:

Database Skill Description
GWAS Catalog gwas-database SNP-trait associations, p-values
ClinVar clinvar-database Variant pathogenicity
PubMed pubmed-database Literature search
ChEMBL chembl-database Drug/compound data
COSMIC cosmic-database Cancer mutations
UniProt uniprot-database Protein sequences
Ensembl ensembl-database Genome data
STRING string-database Protein interactions
KEGG kegg-database Pathway analysis

🔧 ZeroClaw Features

When you use OpenLife, you also get all ZeroClaw features:

  • Interactive AI Agent - Chat with AI using natural language
  • Daemon Mode - Run as a long-running service
  • Channel Integrations - Telegram, Discord, Slack, WhatsApp, etc.
  • Cron Scheduling - Automated tasks
  • Memory - SQLite, markdown, or vector-based memory
  • Security - Local-first, privacy-focused

Installation

Quick Install (Recommended)

# 1. Install ZeroClaw (required)
cargo install zeroclaw

# 2. Clone and build OpenLife
git clone https://github.com/openlife-ai/openlife.git
cd openlife
cargo build --release

# 3. Add to PATH (choose one):

# Option A: Copy to /usr/local/bin (requires sudo)
sudo cp target/release/openlife /usr/local/bin/

# Option B: Add to ~/.local/bin (recommended)
mkdir -p ~/.local/bin
export PATH="$HOME/.local/bin:$PATH"
cp target/release/openlife ~/.local/bin/

# Option C: Use cargo install
cargo install --path .

Verify Installation

openlife --help
openlife bio list

First Time Setup

# Initialize OpenLife workspace
openlife onboard --force

# Start Web Gateway (optional)
openlife gateway

Quick Start

1. Initialize

openlife onboard

2. Run Bioinformatics Analysis

# List available skills
openlife bio list

# Run a skill directly
openlife bio run pharmgx-reporter --input data.txt --output report/

# Natural language query (auto-routes to skill)
openlife bio query "What drugs should I avoid based on my CYP2D6 gene?"

# Install a skill from path
openlife bio install /path/to/skill

3. Use the AI Agent

# Interactive mode
openlife agent

# Single query
openlife agent -m "Analyze my genetic ancestry from this VCF file"

CLI Reference

Bioinformatics Commands

openlife bio list              # List all available skills
openlife bio info <skill>     # Show skill information
openlife bio run <skill> --input <file> --output <dir>  # Run a skill
openlife bio install <path>    # Install a skill
openlife bio query "<query>" --input <file> --output <dir>  # Natural language query

ZeroClaw Commands

openlife onboard              # Initialize workspace
openlife agent               # Start AI agent
openlife daemon              # Start daemon
openlife status              # Show system status
openlife doctor              # Run diagnostics
openlife channel              # Manage channels
openlife cron                # Manage scheduled tasks
openlife estop               # Emergency stop
openlife gateway              # Start Web Gateway (Dashboard)

Creating a Skill

A skill is a directory with SKILL.toml and a Python script:

# SKILL.toml
[skill]
name = "my-skill"
version = "0.1.0"
description = "My bioinformatics skill"
author = "Your Name"
tags = ["bioinformatics"]

[skill.inputs]
[[skill.inputs.param]]
name = "input"
type = "file"
description = "Input file"

[skill.outputs]
[[skill.outputs.param]]
name = "output"
type = "directory"
description = "Output directory"
# my_skill.py
#!/usr/bin/env python3
import argparse

def main():
    parser = argparse.ArgumentParser()
    parser.add_argument("--input")
    parser.add_argument("--output")
    args = parser.parse_args()
    
    # Your analysis here
    print("Skill executed!")

if __name__ == "__main__":
    main()

Architecture

OpenLife is built on ZeroClaw's trait-driven architecture:

  • Bio-Orchestrator: Routes queries to the right skill
  • Skill Loader: Loads and manages bioinformatics skills
  • Report Generator: Creates reproducible markdown reports
  • ZeroClaw Core: Provides agent, tools, memory, and security

Safety & Privacy

  1. Genetic data never leaves your machine - All processing is local
  2. Always include the disclaimer in reports:

    "OpenLife is a research and educational tool. It is not a medical device and does not provide clinical diagnoses. Consult a healthcare professional before making any medical decisions."

  3. Use SKILL.md methodology only - Never hallucinate bioinformatics parameters

Contributing

License

MIT License - see LICENSE for details.

Links


Built with 🦀 by the OpenLife Team

About

Claw-like Agent for bioinformatics

Resources

Contributing

Stars

22 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages