ukb-topmed-phewas-skill
Сводки UKB-TOPMed PheWAS по варианту
Получает краткие результаты ассоциаций UKB-TOPMed PheWAS для одного варианта: принимает rsID, GRCh37 или GRCh38 и приводит запрос к нужной сборке GRCh38.
Установка
npx skills add https://github.com/openai/plugins/tree/5fd93af4cd0c623e020d0cc7e9ce178b4ac1f70f/plugins/life-science-research/skills/ukb-topmed-phewas-skillСтавит скилл в текущий проект, CLI спросит, для каких агентов. С флагом -g - для всех проектов. Нужен Node.js.
Установи скилл «ukb-topmed-phewas-skill» из https://github.com/openai/plugins/tree/5fd93af4cd0c623e020d0cc7e9ce178b4ac1f70f/plugins/life-science-research/skills/ukb-topmed-phewas-skill: скопируй эту папку целиком в .claude/skills/ukb-topmed-phewas-skill (для Codex - в .agents/skills/ukb-topmed-phewas-skill). Потом прочитай SKILL.md и коротко скажи, в каких задачах будешь его применять.
Вставьте в Claude Code или Codex, открытый в папке проекта.
Скачайте папку скилла с GitHub и положите её целиком в .claude/skills/ukb-topmed-phewas-skill/ - для Codex в .agents/skills/ukb-topmed-phewas-skill/. Для всех проектов - та же папка в домашнем каталоге.
Описание автора
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.