OpenParable
Skip to content
← Back to skills

Stitch Query

Research
stitch-query

Stitch Query 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 the STITCH chemical-protein interaction database. Use whenever the user asks about chemical-protein interactions, drug-target binding, compound action modes, or wants to look up any entity (chemical name, STITCH CID, STRING protein ID) in STITCH.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/BioTender-max/awesome-bio-agent-skills/blob/HEAD/skills/drugclaw/stitch/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/stitch-query, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

STITCH Query Skill

Search STITCH for chemical–protein interactions via REST API. Auto-detects input type:

Input PatternDetected AsExample
CIDm00002244 / CIDs00002244STITCH chemical IDdirect lookup
9606.ENSP00000352121STRING protein IDdirect lookup
anything elsefree textresolved via /resolve first

API

FunctionInputReturns
resolve(name, species)chemical / protein namelist[dict] with stringId, preferredName
resolve_batch(names, species)list of nameslist[dict] (via /resolveList)
get_interactors(id, species, limit, required_score)single IDlist[dict] with partner IDs + scores
get_actions(id, species, limit, required_score)single IDlist[dict] with mode (activation/inhibition/binding…)
get_interactions(ids, species, required_score)list of IDslist[dict] pairwise interactions among inputs
search(entity, species, limit, required_score)single entity (any type)dict with resolved_id, interactors, actions
search_batch(entities, species, limit, required_score)list or comma-separated stringdict[str, dict]
summarize(result, entity)search() result + labelcompact text
to_json(result)any resultJSON string

Key Fields

Interactors — stringId_A, stringId_B, preferredName_A, preferredName_B, score, nscore, fscore, pscore, ascore, escore, dscore, tscore

Actions — stringId_A, stringId_B, preferredName_A, preferredName_B, mode (activation / inhibition / binding / catalysis / reaction / expression / ptmod), action, is_directional, a_is_acting, score

Score Channels

AbbrevMeaning
nscoreneighborhood (genomic context)
fscoregene fusion
pscorephylogenetic co-occurrence
ascoreco-expression
escoreexperimental evidence
dscorecurated database evidence
tscoretext mining
scorecombined score (0–1000; 400=medium, 700=high, 900=highest)

Usage

See if __name__ == "__main__" block in 45_STITCH.py for runnable examples covering: free-text name, STITCH CID, batch search, and JSON output.

Data Source

  • Provider: STITCH / STRING Consortium (EMBL, CPR, SIB, KU)
  • Primary URL: http://stitch.embl.de/api
  • Fallback URL: https://string-db.org/api (STITCH data merged into STRING 12+)
  • Auth: None (public API; rate-limited — avoid parallel bulk requests)
  • Species: Default 9606 (Homo sapiens); pass NCBI taxonomy ID for other organisms