dsh-bio-galatea: Implementing Protein Sequence Design and Structure Validation within DSH

Preface

When performing protein design (such as binders, enzymes, or nanobodies) in DSH, a common practice is for the agent to interface separately with ProteinMPNN, ESMFold, interface analysis, and clustering scripts, while also requiring manual maintenance of the Python environment and model paths. This results in a scattered workflow with unclear boundaries. Furthermore, it is easy to conflate whether heavy computational steps require external services within the narrative that “everything can be done locally.”

dsh-bio-galatea (npm package name @dsh-bio/dsh-bio-galatea, GitHub: moonbowterfly/dsh-bio-galatea) belongs to the dsh-bio-genie ecosystem. It consolidates sequence design, single-chain folding validation, interface screening, diversity selection, and multi-round campaign scheduling into 19 semantic tools that can be called directly by agents within dsh. The README clearly delineates local capability boundaries, pointing heavy computational steps like co-folding to external services without pretending to offer full local coverage. The maintainer is moonbowterfly, and the community directory categorizes it under Model Inference.

What is this

In the README, Galatea corresponds to the creation process of “from structure to sequence”: equipping dsh / dsh-bio-genie with a locally available protein design toolbox—covering sequence design, single-chain folding validation, interface screening, and diversity selection—featuring zero-touch self-bootstrapping via a private venv and adaptive operation on CPU or low-VRAM GPUs.

The current npm version is 0.1.5 (MIT License); the Node engine requirement is ^22.19 || >=24.

Core Features

The following summarizes the capabilities listed in the README, without exceeding the scope of the provided material.

Design and Folding

  • galatea_mpnn: Sequence design based on ProteinMPNN / SolubleMPNN / LigandMPNN (typically seconds to minutes on CPU).
  • galatea_fold: Single-chain structure prediction (ESMFold, CPU/GPU; approximately minutes per sequence on CPU).
  • galatea_redesign: Regional redesign based on interface, anchor, or backbone region constraints (see README for strategies like CORE / BOUNDARY / SURFACE).
  • galatea_refold: ESMFold monomer refolding, used to check binder monomer folding quality after detaching from the target.

Screening and Quality Control

  • galatea_interface: Complex interface analysis (contacts, hydrogen bonds, salt bridges, buried area, pLDDT, etc.; inputs co-folding products).
  • galatea_score: Sequence physicochemical scoring (pI, net charge, GRAVY, hydrophobic moment, aggregation proxies, etc.).
  • galatea_inspect: Structure QC (clashes, pLDDT distribution).

Diversity and Ranking

  • galatea_cluster: Candidate clustering to produce a diverse representative set.
  • galatea_rank / galatea_rank_aggregate: Multi-predictor equal-weight consensus ranking and multi-batch rank aggregation (typed calls have explicit constraints on score_contract, see README table description).

Contact and Campaign Scheduling

  • galatea_contact_consensus: Multi-model interface residue/pair frequencies, anchors (design control signals, not involved in ranking).
  • galatea_contact_cluster: Target-side footprint clustering and pose/contact cluster metrics.
  • galatea_portfolio: Deterministic portfolio selection based on eligibility, target coverage, diversity quotas, and risk caps; outputs an auditable quartet of CSV/JSON.
  • galatea_budget: Cross-target budget scheduling (floor / exploit / reserve three-tier integer quotas).
  • galatea_coverage: Campaign coverage audit with optional deterministic rescue plans.

Ledger and Multi-round Iteration

  • galatea_ingest: Ingests local PDB/CIF, CSV/JSON/JSONL, or inline candidates into a unified JSONL ledger.
  • galatea_loop: Multi-round design campaign ledger, parent selection, and next-round planning (does not perform generation).

Environment and Bootstrapping

  • galatea_status: Runtime status (components, devices, interpreters), takes seconds.
  • galatea_setup: Idempotent bootstrapping (action="env" | "mpnn" | "esmfold" | "all"); all includes ESMFold weight download (~2.5GB, taking minutes to tens of minutes).

The first call to any computation tool may return PYTHON_PROBE_PENDING first; please retry later. If torch is missing, it returns PYTHON_TORCH_MISSING with installation instructions. You can still use galatea_status / galatea_setup(action="env") for diagnostics.

Installation and Activation

The plugin is published as an npm package, pure ESM, with no build step. Installation commands must use the original text from the README; do not arbitrarily concatenate github:owner/repo as the only method (the desktop plugin page can accept github:moonbowterfly/dsh-bio-galatea as another entry point).

Web / Existing Global dsh CLI (0.1.x):

dsh plugin --profile web add @dsh-bio/dsh-bio-galatea

No Global CLI:

npx -y @deepseek-ai/dsh plugin --profile web add @dsh-bio/dsh-bio-galatea

dsh Desktop (0.2.0+, Recommended by README):

  1. Start the desktop app once to initialize the desktop profile, then completely exit the application.
  2. Use the desktop’s bundled CLI (Windows default path example):
& "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add @dsh-bio/dsh-bio-galatea
  1. Reopen the desktop app; alternatively, enter github:moonbowterfly/dsh-bio-galatea in the desktop “Plugins” page to install without exiting. After installation, run galatea_status once to confirm components and environment.

The README records: As of 2026-10-01 on Desktop 0.2.0-rc.2, all 19 tools were fully registered and galatea_status executed successfully; the engine is compatible with both 0.1.x and 0.2.0+.

Model Directory (Optional)

Large models are stored in ~/.dsh/dsh-bio-galatea/models by default (including ESMFold ~2.5GB and MPNN weights). Resolution priority:

GALATEA_MODELS_DIR (Environment Variable, Highest) > modelsDir in config.json > Default Directory.

  • Desktop: Settings → BioGenie → Protein Design → Model Directory → Save and Apply (writes to ~/.dsh/dsh-bio-galatea/config.json).
  • Or environment variable GALATEA_MODELS_DIR.
  • Or manually edit config.json, e.g.: { "modelsDir": "F:/Models/AI_models" }.

Pointing to a directory containing existing esmfold/ and mpnn/ allows weight reuse; empty directories will trigger a download on the next galatea_setup. No dsh restart is required after modification; the next galatea tool call will resolve paths according to the new configuration.

Typical Usage

The quick start sequence provided in the README is as follows, reproducible in agent or dsh tool calls.

  1. Environment Check: galatea_status — Check MPNN / ESMFold / analysis dependencies and GPU/CPU.
  2. One-click Ready: galatea_setup(action="all") — Idempotent, can be run repeatedly.
  3. Design and Validation Chain (Combine as needed):
    • Design sequence for structure: galatea_mpnn
    • Single-chain folding validation: galatea_fold
    • Complex interface: galatea_interface
    • Physicochemical filtering: galatea_score
    • Structure check: galatea_inspect
    • Diversity representatives: galatea_cluster
    • Multi-round ledger: galatea_loop(action="log|next|status")
    • Contact consensus / clustering: galatea_contact_consensus, galatea_contact_cluster
    • Portfolio and budget: galatea_portfolio, galatea_budget, galatea_coverage
    • Regional redesign / refolding rescue: galatea_redesign, galatea_refold

A dsh restart is required after manually specifying or modifying GALATEA_PYTHON; successful Python dependency installation via galatea_setup will trigger automatic interpreter re-detection.

Use Cases and Notes

Who it is for: Developers already performing protein inverse folding and lightweight structure validation within DSH or dsh-bio-genie hosts; those who want agents to use fixed tool names for MPNN design, ESMFold single-chain folding, interface metrics, and campaign-level portfolio/budget/coverage, rather than piecing together shell scripts every time.

Capability Boundaries: Single-chain ESMFold and the MPNN family of tools are designed for local use; for steps like complex co-folding that the README does not claim full local coverage for, external services or specialized pipelines should be planned, and results handed off to galatea_interface for post-processing.

Security and Compliance: DSH plugins run with the permissions of the current dsh process, accessing the local file system, potentially downloading GB-level models, and executing plugin-bundled Python code. Please read the GitHub Repository source code and MIT License before installation, and enable only in trusted environments. The community plugin directory SkillHub Entry is an independent site and has no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-bio-galatea consolidates scattered tools in the protein design pipeline into 19 galatea_* tools. Combined with bootstrapping installation and a portable model directory, it allows DSH agents to complete the backbone steps of “Structure → Sequence → Folding Validation → Interface and Campaign Scheduling” within local boundaries.

  • Directory Page: https://www.skillhub.cn/plugins/moonbowterfly/dsh-bio-galatea
  • GitHub: https://github.com/moonbowterfly/dsh-bio-galatea
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye