dsh-bio-human-microbiome-function-mining: A Workflow for Mining Target Enzyme Functions in the Human Microbiome

Preface

Building bioinformatics Agents inside DeepSeek Harness (DSH) is rarely about whether you can write prompts; the real difficulty lies in the length of the pipeline: how to normalize the target enzyme, how to screen candidate proteins, how to align structural evidence with EC annotations, and how to finally produce a verifiable experiment checklist. If every step is stitched together through ad-hoc conversations, path placeholders, tool versions, and intermediate TSVs easily fall out of sync.

Below is the human-microbiome-function-mining plugin published by maintainer Liuyixin-lily (GitHub repository Liuyixin-lily/dsh-bio-human-microbiome-function-mining, npm package name @dsh-bio/human-microbiome-function-mining). It turns “target enzyme / EC / substrate-product reaction → candidate proteins → evidence chain → ranking → experiment design” into an installable DSH workflow package: with 9 built-in skills, scripts, and schemas, but no hosted services, no bundled external tools such as DIAMOND, and no compute provisioning. The community catalog page is available at SkillHub plugin page (an independent site, with no official affiliation with DeepSeek / Hifin).

What is this

human-microbiome-function-mining is a plugin deliverable that can be installed into DSH or compatible Agent harnesses (version 0.1.0, MIT license). The core inputs are target enzyme sequences, EC numbers, or substrate-product relationships; outputs include a candidate protein evidence table, a ranked table with overall_rank, and falsifiable experimental hypotheses along with a summary of experiment design.

The plugin provides skills, scripts, schemas, and references/ rules. DIAMOND, CD-HIT, US-align, DEER, FedKEA, Bakta, SignalP, and literature databases remain to be prepared by the user locally or on their own servers; the Agent only executes locally when the paths are reachable and the user permits it, otherwise it writes out exact commands and consumes the result files returned by the user.

Core features

Division of labor among the nine skills

  1. functional-dark-matter-discover: the main pipeline, chaining candidate discovery and experiment design.
  2. build-target-function-card: standardizes the target input and generates target_function_card.json.
  3. screen-sequence-candidates: runs DIAMOND sequence screening after CD-HIT deduplication (100% by default for single-genome single-strain, 95% by default for multi-genome pan-proteomes).
  4. structure-prediction: prepares structure/<protein_sequence_id>.pdb with the priority PDB → AlphaFold DB (mean pLDDT ≥ 60) → homology modeling → de novo when structures are missing.
  5. screen-structure-candidates: US-align structural evidence; DEER fallback only when a genome has no qualifying US-align result and the user agrees; the structural route is enabled only when sequence + annotation do not jointly confirm the target function.
  6. literature-evidence: literature audit; when MCP literature tools are available it may use academic retrieval workflows, otherwise it provides search terms or accepts user-verified citations, and fabricating PMIDs/DOIs is forbidden.
  7. genome-search / genome-download / genome-annotation: select GCF/GCA from NCBI, download genomes, and annotate with Bakta — to be used standalone when the user has no candidate .faa / .gbff yet.

Pipeline overview

Given the skill division above, the main path can be summarized as:

target enzyme / EC / substrate-product
  -> target_function_card.json
  -> preflight (.faa / .ffn / .gbff / structural routes)
  -> optional genome-search / download / annotation
  -> CD-HIT -> DIAMOND -> parse existing annotations
  -> fast path: sequence hit and annotation match -> SEQUENCE_ANNOTATION_CONFIRMED, skip structural steps
  -> otherwise structure prediction -> US-align -> conditional DEER
  -> optional SignalP, FedKEA, literature evidence
  -> merge tables -> score_candidates -> experiment hypotheses and design

If a DIAMOND hit exists and .faa/.gbff annotations already match the target function, the candidate is labeled SEQUENCE_ANNOTATION_CONFIRMED, US-align is skipped (no TM value; during ranking it falls into the “no TM” group but with the highest priority).

Ranking strategy

By default scripts/score_candidates.py generates scored_candidates_full.tsv, and externally the overall_rank column is authoritative. The default is --rank-by structure: rows with a TM-score come first sorted by TM descending; rows without TM come afterward, with tie-breaks on fields such as priority_order. For convergent/ moonlighting enzyme targets, this prevents candidates with literally identical EC annotations from overshadowing structurally more convincing true positives. Use --rank-by priority for the legacy hierarchical ranking.

The priority_rule hierarchy (for traceability) is, in order: SEQUENCE_ANNOTATION_CONFIRMED → USALIGN_TARGET_EC → DEER_FEDKEA_CONFIRMED → … → ANNOTATION_ONLY (nine tiers in total; see the repository README for details).

Installation and activation

The plugin is installed as a DSH npm/bundle. The commands given in the official documentation are as follows (choose either source; replace paths with your actual local paths):

# local directory
npx -y @deepseek-ai/dsh plugin --profile web add ./human_microbiome_function_mining

# tarball built from this repository
npx -y @deepseek-ai/dsh plugin --profile web add ./human_microbiome_function_mining.tar.gz

# after publishing or mirroring
npx -y @deepseek-ai/dsh plugin --profile web add @dsh-bio/human-microbiome-function-mining
npx -y @deepseek-ai/dsh plugin --profile web add github:Liuyixin-lily/dsh-bio-human-microbiome-function-mining

postinstall installs the Agent preset into ~/.dsh/.agent-presets/human-microbiome-function-mining, and the preset selector shows a “Human Microbiome Function Mining Expert” persona. After starting a new Agent session, confirm that the skill functional-dark-matter-discover is loaded.

package.json requires Node ^22.19 || >=24. It is recommended to read the repository source code and the MIT license before installing; the plugin runs with the permissions of the current dsh process, so do not directly add untrusted packages without review.

Typical usage

1. Self-test without external tools

First verify the scripts and schemas inside the plugin directory, without relying on DIAMOND / US-align etc.:

cd human_microbiome_function_mining
python3 scripts/example_test.py

The expected trailing output is example test passed.

2. Prepare the project configuration

Copy the minimal example and adjust the paths for your data:

cp human_microbiome_function_mining/config.minimal.example.json project.json

project.json needs to specify (see config.example.json and QUICKSTART for the full field list):

  • the target enzyme FASTA, target structure PDB, or EC/reaction information;
  • the candidate protein set .faa, optionally .gbff, .fna, and a structure directory;
  • executable paths for DIAMOND, CD-HIT, US-align; optional DEER, FedKEA, Bakta, SignalP;
  • whether auto_run_local and other execution intents are set.

3. Preflight and run the pipeline

The workflow starts with a preflight that confirms whether the data and tools are reachable from the current terminal:

python3 scripts/preflight_inputs.py --project project.json --require-tools

The report marks each path as ok / placeholder / missing / invalid. After it passes, you can either have the Agent run the full pipeline per the skills, or call the wrapped scripts step by step, e.g.:

python3 human_microbiome_function_mining/scripts/preflight_inputs.py --project project.json
python3 human_microbiome_function_mining/scripts/run_diamond.py --project project.json
python3 human_microbiome_function_mining/scripts/run_usalign.py --project project.json

An example of DEER as the second gate when the merged table contains no qualifying candidates:

python3 human_microbiome_function_mining/scripts/run_deer.py \
  --project project.json \
  --combined-candidates outputs/task/combined_candidates.tsv

4. Merge, scoring, and deliverables

python3 human_microbiome_function_mining/scripts/merge_candidates.py \
  --structural outputs/alignments/run_full_085/structural_candidates.tsv \
  --project project.json \
  --output outputs/task/combined_candidates_full.tsv

python3 human_microbiome_function_mining/scripts/score_candidates.py \
  --input outputs/task/combined_candidates_full.tsv \
  --output outputs/task/scored_candidates_full.tsv \
  --target-ec 3.1.4.12

python3 human_microbiome_function_mining/scripts/summarize_candidates.py \
  --scored outputs/task/scored_candidates_full.tsv \
  --gene-evidence outputs/task/candidate_sequences/candidate_gene_evidence.tsv \
  --literature outputs/task/literature_evidence.tsv \
  --project project.json \
  --outdir outputs/task/summary

The main deliverables include scored_candidates_full.tsv, combined_candidates_full.tsv, the candidate sequence FASTA, and the high-confidence candidates plus experimental_hypotheses.tsv under summary/ (see QUICKSTART.md for the full list).

Use cases and caveats

Who it is for: research or engineering teams that already have or plan to prepare human-related microbiome genomic/proteomic data, want to reverse-search candidate proteins from a target enzyme function, and need sequence, structure, annotation, FedKEA, and literature evidence unified into a single table with structure-similarity-first ranking by default.

Tool boundaries: the plugin will not silently install DIAMOND, CD-HIT, US-align, DEER, FedKEA, or Bakta; when paths are still /path/to/... placeholders or on remote hosts, you should explicitly provide user@host and absolute paths. When unreachable, it only generates commands and does not fabricate tool outputs; it will not programmatically call the FedKEA web service.

Data preparation: if you only have a taxon or accession list and no .faa yet, you can load the three sub-skills genome-search / genome-download / genome-annotation first.

Category: on SkillHub this plugin is classified as a workflow.

For first-time use it is recommended to read the repository’s QUICKSTART.md through and through; the path list is in references/input_paths.md.

Closing

human-microbiome-function-mining decomposes enzyme function mining on the human microbiome into a reusable DSH workflow: standardized target cards, sequence and structural evidence, optional genome preparation and literature audit, and a deterministic TM-priority ranking that lands on experimental hypotheses. Installation and details are governed by the GitHub repository: Liuyixin-lily/dsh-bio-human-microbiome-function-mining; catalog index: SkillHub plugin page.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye