Preface¶
DeepSeek Harness (DSH) uses a plugin-based architecture, and its ecosystem is maintained by the community. When building bioinformatics agents, domain-specific design tools are required for particular areas such as gene editing. dsh-bio-graft is part of the dsh-bio family, maintained by moonbowterfly, and focuses on CRISPR/gene-editing design workflows.
Plugin Positioning¶
dsh-bio-graft is a specialized gene-editing design plugin for DSH. Through its graft_* semantic toolset, it provides end-to-end capabilities ranging from sgRNA candidate enumeration, cut-site calculation, and score vector retention to off-target scanning, base-editing design, and validation plan generation.
Core Capabilities¶
The plugin provides 11 semantic tools, with core capabilities as follows:
- NucleaseProfile Registry: Built-in editor geometry evidence grading (
verified/pam_source), distinguishing unverified statuses (e.g., Cas12b/Cas13a). - sgRNA Candidate Enumeration and Scoring: Uses
graft_designto scan PAMs and generate candidate lists. The tool retains the full scoring vector (GC, homopolymers, seed sequence, etc.) rather than generating a single composite score; cut-site calculation supports IUPAC awareness. - Declarative Ranking: Uses
graft_rankto rank candidates using Pareto or Lexicographic ordering, outputtingpolicy_idandpolicy_digest, with rejected candidates accompanied by explicit reasons. - Off-Target Scanning: Invokes Cas-OFFinder via
graft_offtargetfor structured scanning. The tool returnsinterpretation_boundary(a machine-readable boundary declaration); when zero hits are found, it lists common false-negative causes (e.g., genome version mismatch, N gaps). - Base-Editing Design: Uses
graft_base_editto design CBE/ABE, supporting in-window base editing, bystander effects, and codon consequence analysis (synonymous/missense, etc.). - Multi-Strategy Evaluation: Uses
graft_strategyto evaluate multi-guide strategies (e.g., deletion_pair, paired_nickase), calculating predicted deletion intervals and pairwise off-target combinations. - Validation Plan Generation: Uses
graft_validation_planto generate validation metrics including numerator/denominator/assay, with support for plant-specific requirements. - EditPlan Ledger Management: Manages auditable
.editplan.jsonledges viagraft_plan_saveandgraft_plan_load, supporting historical recall.
Installation and Enablement¶
As a DSH plugin, it can be installed with the following command:
dsh plugin --profile web add @dsh-bio/dsh-bio-graft
After installation, the tool registry and Genie settings panel will sync automatically, with no additional configuration required.
Typical Usage¶
The plugin supports the following typical operations:
- Scan and Enumerate: Use
graft_designto scan PAMs and generate candidates. - Rank and Filter: Use
graft_rankto perform declarative ranking of candidates. - Off-Target Detection: Use
graft_offtargetto perform off-target detection. - Base Editing: Use
graft_base_editto design base editing. - Strategy Evaluation: Use
graft_strategyto evaluate multi-guide strategies. - Validation Plan: Use
graft_validation_planto generate a validation plan.
Notes¶
- Runtime Dependencies:
- Requires Python >= 3.10 (the
dsh-bio-genieenvironment can be reused). - Off-target scanning depends on Cas-OFFinder (BSD-3), which must be placed manually or fetched automatically via
graft_backend_status action=ensure. - Requires the OpenCL runtime (included with GPU drivers; additional installation is required for CPU-only runs).
- Requires Python >= 3.10 (the
- Safety Grading: The plugin includes Level 0-3 safety gating, with different design restrictions for human somatic cells (Level 1), clinical decision-making (Level 2), and heritable editing (Level 3).
- License Policy: MIT licensed, with no license-incompatible code bundled (e.g., GPL-3+ FlashFry).
Conclusion¶
dsh-bio-graft provides the DSH ecosystem with a complete gene-editing workflow from design to validation. By retaining scoring vectors and auditable EditPlans, it is suitable for rigorous research and development scenarios that require strict experimental controls.