Command Palette

Search for a command to run...

Назад к скиллам
скилл № 27781

bio-causal-genomics-fine-mapping

Resolves GWAS associations to candidate causal variants and credible sets via SuSiE, susie_rss, FINEMAP, CAVIAR, DAP-G, PAINTOR, PolyFun, SuSiEx, MultiSuSiE…

БесплатноЗапускает вложенные скрипты
BioTender-maxот BioTender-max★ 235 звёзд на GitHub

Установить bio-causal-genomics-fine-mapping в Claude Code и Claude Desktop

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

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

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

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

Version Compatibility

Reference examples tested with: susieR 0.12.27+, coloc 5.2.3+, FINEMAP 1.4.2+, PolyFun (head of omerwe/polyfun 2024), PAINTOR V3.0, SuSiEx (head of getian107/SuSiEx), DAP-G (head of xqwen/dap), pyfocus 0.8+, R 4.3+, PLINK 1.9 / 2.0.

Before using code patterns, verify installed versions match. If versions differ:

  • R: packageVersion('susieR') then ?susie_rss to confirm argument names (e.g., prior_weights vs prior_variance semantics)
  • CLI: finemap --help, SuSiEx --help, PAINTOR --help, dap-g --help to confirm flags
  • Python: polyfun.py --help

If a call throws an error about an argument that no longer exists, introspect the installed function and adapt rather than retrying.

Fine-Mapping

"Narrow my GWAS locus to the variants likely to be causal" -> Fit a sparse Bayesian regression that propagates LD into posterior inclusion probabilities (PIPs) and credible sets, then validate that credible sets correspond to physically reasonable haplotypes given the LD reference.

  • R (summary statistics + LD): susieR::susie_rss(z, R, n, L=10) + estimate_s_rss LD diagnostic
  • R (individual-level genotypes): susieR::susie(X, y, L=10)
  • CLI (shotgun stochastic search): finemap --sss --in-files master.z --n-causal-snps 5 --sss-tol 0.001
  • CLI (cross-ancestry joint): SuSiEx --sst_file=eur.sst,eas.sst --n_gwas=N1,N2 --ref_file=eur.bim,eas.bim --ld_file=eur_ld,eas_ld --pop=EUR,EAS --chr_col=1,1 --snp_col=2,2 --bp_col=3,3 --a1_col=4,4 --a2_col=5,5 --eff_col=6,6 --se_col=7,7 --pval_col=8,8 --chr=<chr> --bp=<start,end> --out_dir=<dir> --out_name=<name> (column-number flags and --ld_file are required; see SuSiEx --help)
  • Python (functional priors): polyfun.py --compute-h2-L2 -> per-SNP priors -> susie_rss with prior_weights=
  • Python (TWAS fine-mapping): focus finemap on gene-level Z-scores

Fine-mapping is a Bayesian model selection problem; LD is not noise but structured prior information. Most failure modes trace back to one of three issues: (a) LD reference mismatched to the GWAS sample; (b) the sparse-effects prior being wrong for the locus (polygenic background); or (c) too small an L cap. The estimate_s_rss() lambda and kriging_rss() per-SNP diagnostic catch (a) before downstream credible sets are reported.

Algorithmic Taxonomy

Tool Model Input Strength Fails when
SuSiE / susie_rss (Wang 2020 JRSSB 82:1273; Zou 2022 PLoS Genet) Iterative Bayesian sum-of-single-effects (IBSS), variational Individual-level (X, y) or (z, R, n) Fast; native PIP + credible sets; pluggable priors; default in modern pipelines Reference LD mismatched to GWAS sample; locus dominated by polygenic background; >L true effects
SuSiE-inf / FINEMAP-inf (Cui 2024 Nat Genet 56:162) SuSiE + infinitesimal random-effect component (z, R, n) Calibrated credible sets when locus is non-sparse (polygenic shoulder around a sparse causal); recommended for biobank-scale GWAS Very small loci with truly sparse architecture (over-conservative); slower convergence
FINEMAP (Benner 2016 Bioinformatics 32:1493) Shotgun stochastic search over causal configurations .z + .ld + .master files Exact Bayes factors at small k; widely cited Slow at L > 5; binary install only (christianbenner.com); same LD-mismatch fragility as SuSiE
CAVIAR / CAVIARBF (Hormozdiari 2014 Genetics 198:497) Exhaustive enumeration up to k causals (z, R) Exact posterior at small k Combinatorial explosion beyond k=6; legacy method largely superseded by SuSiE
DAP-G (Wen 2016 AJHG 98:1114) Deterministic posterior approximation with adaptive scan SBAMS format; TORUS for enrichment priors Fast at QTL scale (whole-transcriptome); pairs with TORUS hierarchical priors SBAMS format is awkward; less ubiquitous tooling
PAINTOR (Kichaev 2014 PLoS Genet 10:e1004722) EM with binary functional annotations (z, R, A) per locus Locus-level functional priors; multi-trait variant Single-trait mode often matched by PolyFun + SuSiE; slower than SuSiE
PolyFun + SuSiE/FINEMAP (Weissbrod 2020 Nat Genet 52:1355) Stratified LDSC genome-wide -> per-SNP prior_weights GWAS sumstats + pre-baked baseline-LF Most powerful single-trait functional prior; PIPs sharpen 1.5-3x Requires matched-ancestry baseline-LF; runs in two stages
SuSiEx (Yuan 2024 Nat Genet 56:1841) Joint cross-ancestry SuSiE; shared causal, population-specific LD Per-pop sumstats + per-pop LD reference Smaller credible sets than per-ancestry meta or marginal fine-mapping; principled when causal variants are shared Trans-ethnic heterogeneity violated (population-specific causals); ancestry must be cleanly assigned
MultiSuSiE (Tashman 2024 medRxiv / 2025 Nat Genet) Cross-ancestry SuSiE variant; flexible heterogeneity Per-pop sumstats + per-pop LD Similar to SuSiEx; alternative implementation Same as SuSiEx; newer, less battle-
Полный SKILL.md на GitHub

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

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

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

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

  • examples/finemap_pipeline.sh
  • examples/pip_visualization.R
  • examples/susie_finemapping.R
  • examples/susie_rss_finemap.R
  • examples/susiex_multiancestry.sh
  • usage-guide.md

FAQ

Что делает скилл bio-causal-genomics-fine-mapping?

Resolves GWAS associations to candidate causal variants and credible sets via SuSiE, susie_rss, FINEMAP, CAVIAR, DAP-G, PAINTOR, PolyFun, SuSiEx, MultiSuSiE, and FOCUS. Use when narrowing a GWAS lead SNP to a 95 percent credible set, choosing between in-sample and reference LD, calibrating non-sparse loci with SuSiE-inf or FINEMAP-inf, integrating functional priors via PolyFun, fine-mapping across ancestries with SuSiEx, diagnosing LD mismatch via estimate_s_rss and kriging_rss, handling HLA or long-range LD, or feeding credible sets into coloc.susie for colocalization.

Как установить скилл bio-causal-genomics-fine-mapping?

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

Скилл bio-causal-genomics-fine-mapping запускает скрипты?

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

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

Сравнить bio-causal-genomics-fine-mapping с