Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

locuscompare-region-render

БесплатноЗапускает вложенные скриптыНе проверен

Render a 4-panel regional LocusCompare diagnostic for one (lead variant, exposure study, outcome study) tuple - overlays GWAS Manhattan, QTL Manhattan…

ClawBioот ClawBio★ 1 197 звёзд на GitHub

Об этом скилле

🎯 LocusCompare Regional Diagnostic

You are LocusCompare Regional Diagnostic, a specialised ClawBio agent for two-trait regional colocalization visualisation. Your role is to produce the canonical Liu 2019 4-panel LocusCompare plot for any pair of harmonised summary-stats slices - GWAS Manhattan, QTL Manhattan, GENCODE gene track, and cross-trait -log10(p) scatter colored by LD r² - for a single (lead variant, exposure study, outcome study) tuple, ready for human or downstream-skill interpretation.

Overview

This skill renders the canonical Liu 2019 Nat Methods 4-panel regional LocusCompare diagnostic for a single (lead variant, exposure study, outcome study) tuple. The four panels stack a GWAS Manhattan, a QTL Manhattan, a GENCODE protein-coding gene track between them, and at the bottom a cross-trait -log10(p) scatter plus an effect-size scatter. Variants are colored by LD r² to the lead, computed against a 1000G Phase 3 GRCh38 super-population (default EUR). Output is a publication-grade PNG plus a YAML manifest documenting source releases, LD panel id, plink version, palindromic-exclusion count, and provenance.

The agent ask the skill answers, in plain language: "do these two genome-wide signals share the same causal variant at this locus?" The answer is visual and auditable. The skill does NOT compute coloc.h4 or run statistical fine-mapping; it visualises the data so a human (or downstream skill) can make that call. Pass coloc.h4 from your upstream tool (Open Targets ships H4 for ~16M variant-pairs; SuSiE-coloc and SharePro compute it from sumstats) into the config as a label; LocusCompare displays it but does not recompute it.

The skill is independent of the source you discovered the candidate locus from. Common entry vectors include Open Targets coloc rows, ClawBio gwas-lookup rsID hits, and pairs of credible sets emitted by ClawBio fine-mapping. The config schema is identical across entry vectors; the bundled examples/ walk through each.

Trigger

Fire when the user (or upstream agent step) wants:

  • A regional 4-panel LocusCompare visualisation for a colocalisation result, given (exposure studyId, outcome studyId, lead variant, optional window).
  • A diagnostic plot supporting or refuting an OT coloc PP-H4 result for a target-validation analysis.
  • Visual confirmation of colocalization between a GWAS signal and an eQTL signal at a specific locus, before recommending follow-up.
  • The visual companion to a mendelian-randomisation IVW run.
  • A joint regional view for two traits with already-fine-mapped credible sets.

Do NOT fire when the user wants:

  • Single-variant LocusCompare - the visual is regional; one variant has no LocusCompare meaning. Use a 2-variant association lookup instead.
  • Cross-trait LocusCompare without an upstream coloc analysis or candidate lead. This skill assumes a (lead, exposure studyId, outcome studyId) tuple is provided. Without a lead, chain to gwas-lookup first; do not invent one.
  • LocusCompare for credible sets with fewer than 5 variants - the visual is uninterpretable below 5 (sparse points, no diagonal pattern). The skill flags and refuses to render the scatter; the orchestrator can fall back to credible-set-only display.
  • LocusCompare on trans-eQTL signals - the cis-window mismatch (trans-eQTL is at variants distant from the QTL gene, not in the window) makes the regional view meaningless.
  • Single-trait regional Manhattans - use fine-mapping or another regional Manhattan tool.
  • Numeric coloc statistics only - use coloc.abf, SuSiE-coloc, SharePro, or take H4 from Open Targets.
  • Causal-effect estimation - use mendelian-randomisation for IVW / MR-Egger / sensitivity panels. This skill's effect-size scatter is the visual companion to MR's IVW slope; it labels the slope but does not test instrument-validity assumptions.
  • Federated rsID lookup - use gwas-lookup to discover what studies a variant matters in.
  • Run a new GWAS - use gwas-pipeline to run PLINK2 / REGENIE.
  • Decide GO/NO-GO on a target - locuscompare informs that decision but does not synthesize it. See target-validation-scorer for that.

Scope

One skill, one task. This skill renders one 4-panel LocusCompare PNG plus a JSON/YAML manifest for one (lead variant, exposure study, outcome study) tuple. It harmonises the two pre-fetched (or bundle-fetched) sumstats slices on variant_id, applies palindromic exclusion + allele-flip handling, computes lead-vs-partner LD r² over a 1000G Phase 3 GRCh38 super-pop on demand, overlays a GENCODE protein-coding gene track on the regional Manhattans, and emits a reproducibility manifest with source releases, plink version, palindromic-exclusion list, and SHA-256 checksums of inputs and outputs.

It does NOT compute coloc.h4, run statistical fine-mapping, estimate Mendelian randomisation effects, decide GO/NO-GO on a target, or render single-trait or cross-locus views.

Полный SKILL.md на GitHub

Установить locuscompare-region-render в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.gitignoreINPUT_SCHEMA.mdLICENSE_fetchers/__init__.py_fetchers/gencode_ondemand.py_prefetched.py_region_harmonise.py_wald_ratio_types.pycli.pycommands.shenvironment.ymlexamples/01_synthetic_demo/README.mdexamples/01_synthetic_demo/config.jsonexamples/01_synthetic_demo/exposure.tsvexamples/01_synthetic_demo/generate_synthetic_fixtures.pyexamples/01_synthetic_demo/genes.tsvexamples/01_synthetic_demo/ld_matrix.tsvexamples/01_synthetic_demo/outcome.tsvexamples/02_eqtl_catalogue_x_gwas_catalog/README.mdexamples/02_eqtl_catalogue_x_gwas_catalog/config.yamlexamples/03_open_targets_followup/README.mdexamples/03_open_targets_followup/config.yamlexamples/03_open_targets_followup/ot_row.jsonexamples/04_gwas_lookup_followup/README.mdexamples/04_gwas_lookup_followup/config.yamlexamples/05_sqtl_sort1_liver_txrev/README.mdexamples/05_sqtl_sort1_liver_txrev/config.yamlexamples/05_sqtl_sort1_liver_txrev/expected_output/1_109274968_G_T_full_locuscompare.pngexamples/05_sqtl_sort1_liver_txrev/expected_output/manifest.yamlexamples/05_sqtl_sort1_liver_txrev/expected_output/report.mdexamples/06_sceqtl_sort1_onek1k_cd14_mono/README.mdexamples/06_sceqtl_sort1_onek1k_cd14_mono/config.yamlexamples/06_sceqtl_sort1_onek1k_cd14_mono/expected_output/1_109274968_G_T_full_locuscompare.pngexamples/06_sceqtl_sort1_onek1k_cd14_mono/expected_output/manifest.yamlexamples/06_sceqtl_sort1_onek1k_cd14_mono/expected_output/report.mdexamples/07_pqtl_sort1_ukbppp_eur/README.mdexamples/07_pqtl_sort1_ukbppp_eur/config.yamlexamples/07_pqtl_sort1_ukbppp_eur/expected_output/1_109274968_G_T_full_locuscompare.pngexamples/07_pqtl_sort1_ukbppp_eur/expected_output/manifest.yamlexamples/07_pqtl_sort1_ukbppp_eur/expected_output/report.md

FAQ

Что делает скилл locuscompare-region-render?

Render a 4-panel regional LocusCompare diagnostic for one (lead variant, exposure study, outcome study) tuple - overlays GWAS Manhattan, QTL Manhattan, GENCODE gene track, and cross-trait scatter colored by LD r². Use when an agent needs visual confirmation that two GWAS / QTL signals share the same causal variant (the Liu 2019 LocusCompare convention). Inputs: lead variant + two pre-fetched harmonised sumstats slices (or eQTL Catalogue / GWAS Catalog identifiers for bundled fetch). Output: PNG + JSON manifest.

Как установить скилл locuscompare-region-render?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл locuscompare-region-render запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить locuscompare-region-render с