epa-ctx-api
БесплатноБез исполняемых скриптовНе проверенQuery EPA's CompTox Chemicals Dashboard APIs (CTX) for ToxCast and Tox21 assay metadata — what each assay endpoint measures. Use when looking up an assay…
от monarch-initiative★ 77 звёзд на GitHubОб этом скилле
EPA CTX APIs: ToxCast assay metadata
An assay endpoint is one measurement ToxCast makes: a named readout, in a named system, aimed at a named molecular target. This skill covers how to read EPA's descriptions of those endpoints.
Scope: assay metadata only. Chemical results — which chemicals were active in
which assay, at what potency — are deliberately not covered here, and dismech has
made no decision about whether they belong in the knowledge base. That question
is issue #12682. Do not fetch, cache or cite a hit-call on the strength of this
skill, and do not treat ToxCast as a citable reference source: there is no
TOXCAST: reference prefix and nothing under references_cache/.
EPA CTX API URL
The live base URL, taken from EPA's own client
(USEPA/ctx-python, src/ctxpy/base.py):
https://comptox.epa.gov/ctx-api/
That host answers. Every data path returns 401 without a key and 200 with
one.
EPA's own CTX API landing page, and dismech issue #12682, both still link
api-ccte.epa.gov, which no longer resolves. Use the base URL above.
The key
A free individual key is requested by emailing [email protected] with your
name, email and organization. It is sent by hand, so allow a day or two.
Pass it as a header on every request. There is no query-parameter form.
curl -s -H "accept: application/json" -H "x-api-key: $CTX_API_KEY" \
"https://comptox.epa.gov/ctx-api/bioactivity/assay/search/by-aeid/1816"
In this repository the key lives in CTX_API_KEY, exported from ~/.zshenv
so every shell and every just recipe inherits it. Never write the key into a
file under the repository.
In this repository
just toxcast-refresh # cache all endpoint annotations under data/toxcast/
just toxcast-refresh --summary # describe what is already cached
just toxcast-refresh --force # refetch
just toxcast-coverage # endpoints whose gene target a pathograph node names
The cache is gitignored; data/toxcast/MANIFEST.yaml is committed and records
the retrieval date. Read it in code through
dismech.toxcast_assays.default_annotations(), which returns parsed
AssayEndpoint objects. That module is deliberately not a
StructuredSource: it emits no references_cache/ files because nothing it
caches is citable evidence.
just toxcast-coverage joins the cached annotations to kb/ by gene and counts
the result by node, by gene and by disease. What it counts are candidates, never
mappings; projects/TOXCAST.md says why.
Endpoint map
The authoritative list is EPA's own OpenAPI spec, not this table:
https://comptox.epa.gov/ctx-api/docs/bioactivity.json # 30 bioactivity paths
https://comptox.epa.gov/ctx-api/docs/bioactivity.html # the same, rendered
The narrative companion is EPA's CTX APIs User Guide on figshare, CC0. Read the spec before assuming a lookup is unavailable.
Below are the paths that serve assay metadata. The spec's other paths return chemical results and are out of scope here.
| Path | Returns |
|---|---|
bioactivity/assay/ |
All ~1,570 endpoint annotations, one object each with roughly 52 fields. Several megabytes; fetch once and cache. |
bioactivity/assay/search/by-aeid/{aeid} |
One endpoint's annotation. The per-claim lookup. |
bioactivity/assay/count |
The endpoint total, as a bare number. |
bioactivity/assay/search/by-gene/{geneSymbol} |
Every endpoint for a gene. ESR1 returns 36. |
bioactivity/assay/search/by-endpoint/?endpoint=<name> |
An aeid from an endpoint name. The query parameter is endpoint; omitting it, or calling it name, returns 400. |
bioactivity/aop/search/by-toxcast-aeid/{aeid} |
AOP-Wiki Key Event and AOP numbers, with live aopwiki.org links. Endpoint 2 maps to Key Event 1394 and AOP 220. Roughly one endpoint in seven has a record, so expect an empty list. |
bioactivity/aop/search/by-event-number/{n} |
The same, keyed on a Key Event. |
bioactivity/aop/search/by-entrez-gene-id/{id} |
The same, keyed on an Entrez gene. |
There is no version endpoint: the spec has no such path, and
bioactivity/version returns 404. So the invitroDB release cannot be read from
any of the paths above, which is why the manifest records a retrieval date.
Reading an annotation
Seven field groups define an endpoint's biological attributes, and each constrains something different:
| Field | Example | What it constrains |
|---|---|---|
gene[] |
ESR1, estrogen receptor 1, Entrez 2099, UniProt P03372 |
the molecular target |
intendedTargetType / Sub |
protein / receptor | what kind of thing the target is |
intendedTargetFamily / Sub |
nuclear receptor / steroidal | the target's class |
biologicalProcessTarget |
regulation of transcription factor activity | the process being read |
| `organism |
Установить epa-ctx-api в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл epa-ctx-api?
Query EPA's CompTox Chemicals Dashboard APIs (CTX) for ToxCast and Tox21 assay metadata — what each assay endpoint measures. Use when looking up an assay endpoint's intended gene target, target family or biological process; when checking which assays exist for a gene; when deciding whether an assay endpoint could correspond to a mechanism; or when refreshing the cached annotations. Covers the live API host, the key, the endpoints that serve assay descriptions, and the ways the gene-target field misleads.
Как установить скилл epa-ctx-api?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл epa-ctx-api запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic