OpenParable
Skip to content
← Back to skills

Molecular Targets Query

Research
molecular-targets-query

Molecular Targets 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 NCI CCDI Molecular Targets Platform (pediatric oncology) for targets (genes), diseases, drugs, and target-disease associations via its public GraphQL API. Auto-detects entity type from input string.

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/molecular_targets/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/molecular-targets-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.

Molecular Targets Platform Query Skill

Search the CCDI Molecular Targets Platform — an NCI-supported Open Targets instance focused on preclinical pediatric oncology data. Includes FDA Pediatric Molecular Target Lists and additional pediatric cancer datasets.

Entity Auto-Detection

Input PatternDetected AsQuery Used
ENSG00000141510Target (Ensembl gene)target(ensemblId)
EFO_\d+, MONDO_\d+, Orphanet_\d+, HP_\d+, DOID_\d+Disease / Phenotypedisease(efoId)
CHEMBL\d+Drug / moleculedrug(chemblId)
anything elseFree textsearch(queryString)

API

FunctionInputReturns
search(entity, size=10)single entity stringdict (GraphQL data) or None
search_batch(entities)list of stringsdict[str, dict|None] — uses batch GraphQL where possible
get_associations(entity, size=10)Ensembl ID or EFO/MONDO IDassociated diseases (for target) or targets (for disease)
summarize(data, entity)result dict + labelcompact LLM-readable text
to_json(data)result dictlist[dict] for pipeline output

Helper

FunctionPurpose
detect_entity_type(entity)returns 'target', 'disease', 'drug', or 'search'

Usage

See if __name__ == "__main__" block in 16_MolecularTargets.py for runnable examples covering:

  1. Free-text search ("neuroblastoma")
  2. Target lookup by Ensembl ID ("ENSG00000141510" → TP53)
  3. Disease lookup by ontology ID ("MONDO_0005072")
  4. Drug lookup by ChEMBL ID ("CHEMBL941" → imatinib)
  5. Target → disease associations
  6. Disease → target associations
  7. Batch search (mixed entity types)
  8. JSON pipeline output

Data Source

  • Platform: NCI CCDI Molecular Targets Platform
  • URL: https://moleculartargets.ccdi.cancer.gov
  • API endpoint: https://moleculartargets.ccdi.cancer.gov/api/v4/graphql
  • Method: HTTP POST, Content-Type: application/json, no auth required
  • Upstream schema: Open Targets Platform GraphQL v4
  • Focus: Pediatric oncology — FDA Pediatric Molecular Target Lists, preclinical data

Notes

  • The API is optimised for single-entity queries. For bulk analyses consider Open Targets data downloads.
  • Batch functions (search_batch) use the plural GraphQL fields (targets, diseases, drugs) to reduce round-trips where possible; free-text queries fall back to one-at-a-time.
  • get_associations() returns scored target↔disease links ranked by overall evidence score (0–1). Use size to control how many rows are returned.
  • Returns None / [] on HTTP errors — callers handle no-results gracefully.