ukb-topmed-phewas-skill
Fetch compact UKB-TOPMed PheWAS summaries for single variants by accepting rsID, GRCh37, or GRCh38 input and resolving to the required GRCh38 query. Use when a user wants concise UKB-TOPMed association results for one variant
- License 许可
- AGPL-3.0
- 所属仓库
- wxdwu/new-api
- 最近更新
- 2026-10-05
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- ukb-topmed-phewas-skill
- description
- Fetch compact UKB-TOPMed PheWAS summaries for single variants by accepting rsID, GRCh37, or GRCh38 input and resolving to the required GRCh38 query. Use when a user wants concise UKB-TOPMed association results for one variant
02 资源文件 3
- 参考文档agents/openai.yaml107 B
- 脚本scripts/ukb_topmed_phewas.py7.4 KB
- 脚本scripts/variant_resolution.py11.9 KB
03 SKILL.md 正文
Operating rules
- Use
scripts/ukb_topmed_phewas.pyfor all UKB-TOPMed PheWAS lookups. - Accept exactly one of
rsid,grch37,grch38, orvariant; resolve to the canonical GRCh38chr:pos-ref-altquery before calling UKB-TOPMed. - The script accepts
max_results; start withmax_results=10and only increase it if the first slice is insufficient. - Re-run the lookup in long conversations instead of relying on older tool output.
- Treat displayed
...in tool previews as UI truncation, not literal request content. - If the user needs the full association payload, set
save_raw=trueand reportraw_output_pathinstead of pasting large arrays into chat.
Execution behavior
- Return concise markdown summaries from the script JSON by default.
- Return the JSON verbatim only if the user explicitly asks for machine-readable output.
- Surface the canonical queried variant, total association count, and whether the results were truncated.
- Increase
max_resultsgradually instead of asking for large association dumps in one call.
Input
- Read one JSON object from stdin, or a single JSON string containing the variant.
- Required input: exactly one of
rsid,grch37,grch38, orvariant - Optional fields:
max_results,save_raw,raw_output_path,timeout_sec - Common patterns:
{"grch38":"10:112998590-C-T","max_results":10}{"grch37":"10:114758349-C-T","max_results":10}{"rsid":"rs7903146","max_results":10}{"variant":"10:112998590:C:T","max_results":25,"save_raw":true}
Output
- Success returns
ok,source,input,query_variant,max_results_applied,association_count,association_count_total,truncated,associations,variant,variant_url,raw_output_path, andwarnings. - Use
raw_output_pathwhensave_raw=true. - Failure returns
ok=falsewitherror.codeanderror.message.
Execution
echo '{"grch38":"10:112998590-C-T","max_results":10}' | python scripts/ukb_topmed_phewas.py
References
- No additional runtime references are required; keep the import package limited to this file and
scripts/ukb_topmed_phewas.py.
04 同仓库更多 Skills
Zotero
Use Zotero Desktop from Codex to enable/probe the local API, search a local Zotero library, list items/collections/tags, export BibTeX, insert citation keys into LaTeX or Markdown drafts, read indexed full text when requested, and import BibTeX/RIS records into Zotero through the connector server. Use when the user mentions Zotero, citations, references.bib, BibTeX export, local Zotero API, localhost:23119, or adding citations from a Zotero library.
zoom-apps-sdk
Use when using Apps SDK.
setup-zoom-websockets
Use when building Zoom WebSockets.
setup-zoom-webhooks
Use when building Zoom webhooks.
zoom-virtual-agent-web
Zoom Virtual Agent SDK for web embeds. Use for campaign or entry ID chat launch, event-driven controls, user context updates, and CSP-safe deployment.
zoom-virtual-agent-ios
Zoom Virtual Agent iOS integration via WKWebView. Use for Swift/Objective-C script injection, message handlers, support_handoff relay, and URL routing policies.