Skip to content
Agentmart
Submit a tool

knowledge-graph-tools

Drug-discovery knowledge-graph workflow guide for assembling drug-target-disease-pathway relationship graphs from OpenTargets GraphQL, ChEMBL REST, STRING…

Skill by DrugClaw

IndexedApache-2.0★ 87
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/drugclaw-knowledge-graph-tools

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Drug-discovery knowledge-graph workflow guide for assembling drug-target-disease-pathway relationship graphs from OpenTargets GraphQL, ChEMBL REST, STRING PPI, and Reactome pathway APIs, then running hub detection, shortest-path queries, and neighborhood expansion with networkx. Use when the user asks to build, query, or visualize a biomedical knowledge graph connecting drugs, targets, diseases, and pathways from real public databases without making clinical claims.

Use cases: backend, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/knowledge-graph-tools

What's inside

Skill name
knowledge-graph-tools
Description
Drug-discovery knowledge-graph workflow guide for assembling drug-target-disease-pathway relationship graphs from OpenTargets GraphQL, ChEMBL REST, STRING PPI, and Reactome pathway APIs, then running hub detection, shortest-path queries, and neighborhood expansion with networkx. Use when the user asks to build, query, or visualize a biomedical knowledge graph connecting drugs, targets, diseases, and pathways from real public databases without making clinical claims.
License
Apache-2.0
Instructions
164 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • files: referenced but missing: templates/knowledge_graph.py

Files (2)

  • SKILL.md
  • knowledge_graph.py · template/

SKILL.md (first lines)

# Knowledge Graph Tools

Use this skill for building and querying biomedical relationship graphs from public drug-discovery APIs, not for clinical decision-making.

Typical triggers:
- build a knowledge graph seeded from a disease, a drug, or a target list
- find shortest paths from a drug to a disease through intermediate targets and pathways
- identify hub targets that bridge multiple disease areas or drug mechanisms
- expand the neighborhood around a protein to see connected drugs, diseases, and pathways
- merge OpenTargets, ChEMBL, STRING, and Reactome data into one queryable graph

## Working Rules

1. Every node gets a typed label: `drug`, `target`, `disease`, or `pathway`.
2. Every edge records its source database and, where available, an evidence score.
3. Use canonical identifiers: Ensembl for targets, ChEMBL for drugs, EFO for diseases, Reactome stable IDs for pathways.
4. Hub analysis reflects database connectivity, not biological importance; well-studied proteins dominate.
5. Shortest-path hypotheses are topological leads, not validated biology.
6. Do not claim causal or therapeutic conclusions from graph structure alone.

## Environment Check

```bash
which python3 || true
python3 - <<'PY'
mods = ["networkx", "requests"]
for name in mods:
    try:
        __import__(name)
        print(f"{name}: ok")
    except Exception as exc:
        print(f"{name}: missing ({exc})")
PY
```

If networkx or requests is missing, say so immediately. If network access is blocked, only the `query` mode on pre-built GraphML files will work.

## Bundled Assets

- `templates/knowledge_graph.py`

## Build: Disease-Centric Graph

Use `templates/knowledge_graph.py --mode build --seed-type disease` for:
- fetching disease-associated targets from OpenTargets
- fetching known drugs for those targets from OpenTargets
- adding protein-protein interactions from STRING
- adding pathway membership from Reactome
- assembling typed nodes and edges into a single graph

Quick start:

```bash
python3 templates/knowledge_graph.py \
  --mode build \
  --seed-type disease \
  --seed "Crohn's disease" \
  --max-targets 30 \
  --include-string \
  --include-reactome \
  --output kg/crohn_graph.graphml \
  --summary kg/crohn_summary.json
```

Deliverables:
- GraphML file with typed nodes (`entity_type`) and typed edges (`relation`, `source_db`, `score`)
- summary JSON with node/edge counts by type, top hubs, and data sources queried

## Build: Drug-Centric Graph

Use `--seed-type drug` to start from a drug and expand through its targets:

```bash
python3 templates/knowledge_graph.py \
  --mode build \
  --seed-type drug \
  --seed "imatinib" \
  --max-targets 20 \
  --include-string \
  --include-reactome \
  --output kg/imatinib_graph.graphml \
  --summary kg/imatinib_summary.json
```

## Query: Shortest Path

Use `--mode query --query-type shortest-path` on an existing GraphML file:

```bash
python3 templates/knowledge_graph.py \
  --mode query \
  --input kg/crohn_graph.graphml \
  --query-type shortest-path \
  --from-node "CHEMBL941" \
  --to-node "EFO_0000384" \
  --summary kg/path_result.json
```

Deliverables:
- summary JSON with path length, node sequence, and edge relations for each step

## Query: Hub Analysis

Use `--mode query --query-type hubs`:

```bash
python3 templates/knowledge_graph.py \
  --mode query \
  --input kg/crohn_graph.graphml \
  --query-type hubs \
  --top-k 20 \
  --summary kg/hub_targets.json
```

Deliverables:
- summary JSON with top-K nodes ranked by degree and betweenness centrality, with entity type

## Query: Neighborhood Expansion

From DrugClaw/DrugClaw, Apache-2.0.

More from DrugClaw/DrugClaw

Signals

Stars
87
Forks
8
Open issues
1
Last commit (this folder)
Mar 23, 2026 (7 months ago)
Last release
Mar 13, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from DrugClaw

Cite this page

knowledge-graph-tools skill. Agent Mart. https://agentmart.dev/skills/drugclaw-knowledge-graph-tools (last updated 2026-10-24)