# TarKG

> TarKG is an Agent Skill for research published in the BioTender-max/awesome-bio-agent-skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Query canonical TarKG drug-target triplets. Use when the user asks about drug-target interactions, relation labels, disease/pathway context, or quick lookups for drugs/targets in TarKG.

- Skill name: `TarKG`
- Category: [Research](https://www.openparable.com/skill/research/1)
- Source: https://github.com/BioTender-max/awesome-bio-agent-skills/blob/HEAD/skills/drugclaw/tarkg/SKILL.md
- Repository: BioTender-max/awesome-bio-agent-skills (115 GitHub stars when collected)

## SKILL.md

# TarKG Query Skill

Query the canonical packaged TarKG TSV output.

## Data

- Path: `resources_metadata/dti/TarKG/tarkg.tsv`
- Columns: `drug`, `target`, `relation`, `disease`, `pathway`

## API

| Function | Input | Returns |
|---|---|---|
| `load_tarkg(path)` | TSV path | `list[dict]` |
| `query_entity(entity, rows, limit)` | single entity string | `dict` |
| `query_entities(entities, path, limit)` | list of entity strings | `list[dict]` |

`query_entity` returns keys used by `retrieve.py`: `matched`, `node_info`,
`outgoing_edges`, `incoming_edges`, `candidates`.

## Usage

Run `example.py` directly for demo queries against the canonical TSV.

---

Source: https://www.openparable.com/skill/research/tarkg (OpenParable). Cite the canonical URL above.
