locus-to-gene-mapper-skill
БесплатноЗапускает вложенные скриптыНе проверенMap GWAS loci to ranked candidate genes using a deterministic multi-skill chain (EFO -> GWAS -> coordinates -> Open Targets L2G/coloc -> eQTL -> burden/coding…
от openai★ 8 494 звезды на GitHubОб этом скилле
Locus-to-Gene Mapper
Generate a reproducible locus-to-gene mapping for one trait (or a seed set of lead variants), with explicit evidence attribution and conservative confidence labels.
This skill is optimized for bioinformaticians who need executable, traceable mapping from variant signals to plausible causal genes.
Required Inputs
Provide at least one anchor source:
trait_query(string), for examplechronic obstructive pulmonary diseaseefo_id(string), for exampleEFO_0000341seed_rsids(list[string]), for example["rs1873625", "rs7903146"]
Optional Inputs
target_gene(string), optional gene of interest for highlighting in outputshow_child_traits(bool), defaulttruephenotype_terms(list[string]), optional additional terms to include when finding anchorsmax_anchor_associations(int), default1200max_loci(int), default25max_genes_per_locus(int), default10max_coloc_rows_per_locus(int), default100max_eqtl_rows_per_variant(int), default200genebass_burden_sets(list[string]), default["pLoF", "missense|LC"]include_clinvar(bool), defaulttrueinclude_gnomad_context(bool), defaulttrueinclude_hpa_tissue_context(bool), defaulttrueinclude_figures(bool), defaultfalsedisable_default_seeds(bool), defaultfalse; iffalse, common traits automatically get built-in seed rsIDsfigure_output_dir(string), default./output/figuresmapping_output_path(string), default./output/locus_to_gene_mapping.jsonsummary_output_path(string), default./output/locus_to_gene_summary.md
Runtime Requirements
- Python
3.11+ requests- Optional for figure generation:
matplotlib,seaborn,pandas
Bundled Script (Deterministic Runner)
- Primary entrypoint:
scripts/map_locus_to_gene.py - This script:
- resolves trait/EFO and anchor variants,
- resolves seed and anchor rsID coordinates directly through NCBI RefSNP/dbSNP placements,
- gathers locus-to-gene evidence through the chained skills,
- writes mapping JSON and summary markdown,
- optionally renders figures when plotting deps are available.
Run:
python locus-to-gene-mapper-skill/scripts/map_locus_to_gene.py \
--input-json /path/to/input.json \
--print-result
Quick start (no input JSON file):
python locus-to-gene-mapper-skill/scripts/map_locus_to_gene.py \
--trait-query "type 2 diabetes" \
--print-result
Trait-only runs default to include_figures=true unless explicitly disabled with --no-include-figures.
Minimal input JSON:
{
"trait_query": "type 2 diabetes"
}
Built-in default seeds (when disable_default_seeds=false):
type 2 diabetes/t2d->rs7903146,rs13266634,rs7756992,rs5219,rs1801282,rs4402960coronary artery disease/cad->rs1333049,rs4977574,rs9349379,rs6725887,rs1746048,rs3184504body mass index/bmi->rs9939609,rs17782313,rs6548238,rs10938397,rs7498665,rs7138803asthma->rs7216389,rs2305480,rs9273349rheumatoid arthritis->rs2476601,rs3761847,rs660895alzheimer disease->rs429358,rs7412,rs6733839,rs11136000,rs3851179ldl cholesterol/total cholesterol->rs7412,rs429358,rs6511720,rs629301,rs12740374,rs11591147
Autonomous Execution Contract (Embedded Behavior)
When a user asks for locus-to-gene mapping and gives only a trait (for example, type 2 diabetes), do the following automatically:
- Run the bundled script with
--trait-query "<user_trait>" --print-result(no manual JSON required). - If it returns
No anchors remained, rerun once with a built-in default seed rsID for that trait (unlessdisable_default_seeds=true). - Read the generated
mapping_output_pathandsummary_output_path. - Return this concise response structure:
Top 5 cross-locus prioritized genesPer-locus top gene (score, confidence)Visualization artifact(figure path(s) or Mermaid fallback block)Warnings and limitations
- For inline image rendering in chat:
- read
inline_image_markdownfrom script result - emit those lines exactly as plain markdown (no code fences)
- if inline rendering still fails, instruct user to upload PNG files into the chat
- read
Do not ask the user to run python manually unless execution is actually blocked.
Skill Chaining Order (Mandatory)
Use these skills in order. Skip only when an earlier step is not needed by provided inputs.
efo-ontology-skill- Resolve
trait_queryto canonical EFO term and synonyms. - Expand descendants when
show_child_traits=true.
- Resolve
gwas-catalog-skill- Discover anchor variants for the trait/EFO scope.
- Pull association/study metadata for locus context.
- Built-in NCBI RefSNP coordinate resolution
- Normalize each anchor rsID to GRCh37/GRCh38 top-level chromosome placements.
- `opent
Установить locus-to-gene-mapper-skill в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл locus-to-gene-mapper-skill?
Map GWAS loci to ranked candidate genes using a deterministic multi-skill chain (EFO -> GWAS -> coordinates -> Open Targets L2G/coloc -> eQTL -> burden/coding context), with reproducible tables and optional figures. Use when a user provides a trait/EFO term and/or lead variants and needs locus-to-gene prioritization for downstream biology decisions.
Как установить скилл locus-to-gene-mapper-skill?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл locus-to-gene-mapper-skill запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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