bio-causal-genomics-colocalization-analysis

A workflow for testing whether two or more traits are driven by the same DNA variant at a genomic region. It is commonly used to compare a GWAS result with molecular traits such as gene expression or protein levels.

In plain words
What is it for?
Use it to compare GWAS with eQTL, sQTL, pQTL, or mQTL results and assess whether their signals overlap at the same locus.
Why use it?
Nearby variants can look associated with multiple traits simply because they are inherited together. Bayesian colocalization estimates whether the evidence better supports one shared causal variant or separate variants.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/gptomics/bioskills/colocalization-analysis
Any agent
npx skills add GPTomics/bioSkills --skill colocalization-analysis
Clone the repo
git clone --depth 1 https://github.com/GPTomics/bioSkills

Made for: Claude Code, Codex.

Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,152 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00132 $0.10152
Opus 5 $0.00066 $0.05076
Sonnet 5 $0.00026 $0.02030
Haiku 4.5 $0.00013 $0.01015

Measured yesterday against content hash b6e1a61f434a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

bio-causal-genomics-colocalization-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

causal-genomics/colocalization-analysis/SKILL.md · 460 lines

How it starts

The opening of the file, as written. The whole thing — 460 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Version Compatibility

Reference examples tested with: coloc 5.2.3+, susieR 0.12.35+, hyprcoloc 1.0+ (GitHub jrs95/hyprcoloc), SMR 1.3.1+ (CLI, cnsgenomics.com), eCAVIAR 2.2+ (compiled from caviar/eCAVIAR repo), PWCoCo 1.0+ (jwr-git/pwcoco), moloc 0.1+ (clagiamba/moloc), SharePro_coloc 7.0+ (zhwm/SharePro_coloc), R >= 4.1.

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

  • R: packageVersion('coloc'); check ?coloc.abf, ?coloc.susie, ?runsusie
  • CLI: smr --version, pwcoco --help, sharepro_coloc.py --help

If code throws AttributeError, NULL list elements, or Error in coloc.abf: dataset must have..., introspect the installed package signature and adapt the example rather than retrying.

Colocalization Analysis

"Test whether my GWAS signal and an eQTL share the same causal variant" -> Compute Bayesian posterior probabilities over five hypotheses (H0 neither, H1 trait-1-only, H2 trait-2-only, H3 distinct causal variants, H4 shared causal variant) to discriminate true causal overlap from LD-driven coincidence, then run sensitivity analysis over the p12 prior.

  • R (single-causal, fastest): coloc::coloc.abf(dataset1, dataset2, p12=5e-6) -> coloc::sensitivity(res, 'H4 > 0.75')
  • R (multi-causal, needs LD): runsusie(d1) -> runsusie(d2) -> coloc.susie(s1, s2) -> per-credible-set PP
  • R (many traits, single-causal cluster): hyprcoloc::hyprcoloc(effect.est = betas_mat, effect.se = ses_mat, trait.names = ..., snp.id = ...) -> trait clusters
  • CLI (causality vs linkage): smr --bfile ref --gwas-summary g.ma --beqtl-summary eqtl.besd --out smr -> SMR p + HEIDI p
  • CLI (allelic heterogeneity): eCAVIAR eCAVIAR -l ld1 -l ld2 -z z1 -z z2 -o out -c 2 -> CLPP per SNP
  • CLI (conditional): PWCoCo conditions on each independent signal via GCTA-COJO then runs pairwise coloc.abf

Algorithmic Taxonomy

Method Model Inputs Output Strength Fails when
coloc.abf (Giambartolomei 2014) Single causal variant per locus; Bayesian ABF beta+varbeta or p+MAF; sample sizes; type/s/sdY PP.H0-H4 Fast (~1s/locus), no LD required, mature, widely-cited 2+ causal variants in moderate LD -> PP.H3 inflates spuriously; assumes a single causal per trait
coloc.susie (Wallace 2021) Multi-causal via SuSiE; per-credible-set pairwise coloc Summary stats + ancestry-matched LD matrix PP.H4 per (CS1, CS2) pair Handles allelic heterogeneity; principled CS framework Sensitive to LD-mismatch; sample-size-LD mismatch -> spurious credible sets; needs in-sample or matched LD
SMR + HEIDI (Zhu 2016) Tests pleiotropy (one variant -> both traits) vs linkage (two variants in LD) GWAS .ma; eQTL .besd; LD reference (plink bfile) SMR p (significance) + HEIDI p (null = shared causal) Distinguishes shared-causal from linkage at a top SNP; standard for eQTLGen / GTEx integration Fails to discriminate when LD between causal SNPs > 0.7 (HEIDI loses power); HEIDI requires >= 10 SNPs near top
eCAVIAR / CLPP (Hormozdiari 2016) Fine-mapping-aware; computes Colocalization Posterior Probability per SNP Z-scores; LD matrices per trait CLPP per SNP; per-locus sum Handles allelic heterogeneity natively; per-SNP resolution Computationally heavy at -c > 3 causal variants; CLPP thresholds debated (0.01 vs 0.1)
PWCoCo (Robinson 2022) Pairwise conditional via GCTA-COJO conditioning Summary stats + individual-level LD bfile Per-conditional-signal coloc.abf results Cleanly handles AH at top GWAS hit + secondary signals Needs individual-level reference; sensitive to COJO collinearity threshold
moloc (Giambartolomei 2018) Multi-trait extension of coloc.abf (3-5 traits) Per-trait summary stats 15 (3-trait) / 31 (4-trait) / 63 (5-trait) hypothesis PPs First principled multi-omic coloc Hypothesis count = 2^k - 1 explodes; >= 6 traits computationally infeasible; minimally updated since 2019
HyPrColoc (Foley 2021) Many-trait cluster-based; iterative branch-and-bound under single-causal Beta + SE matrices SNPs x traits Trait clusters sharing a causal variant Scales to 50+ traits; identifies cluster substructure Inherits single-causal assumption from coloc.abf; clusters can fragment under AH
SharePro_coloc (Zhang 2024) Variational effect-group joint model Beta + SE; LD per ancestry Effect-group level PP Handles multiple causal signals jointly; faster than coloc.susie at scale Newer (2024); benchmarks evolving; trickier installation
Pullin & Wallace 2025 variant-specific priors Function-aware p12 (e.g. up-weight coding/promoter SNPs) Same as coloc.abf + per-SNP prior weights PP.H0-H4 with non-uniform prior Improves discovery when functional annotation is informative Annotation choice is a methodological lever; report sensitivity

Read the full file on GitHub · 460 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 460 lines · 132 tokens per session scan A b6e1a61f434a

Subscribe to this mod's changes

bio-causal-genomics-colocalization-analysis is a skill published in the GitHub repository GPTomics/bioSkills (1,198 stars, last pushed 16d ago), licensed MIT. It adds 132 tokens to every session and 10,152 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

experimental-design

Design experiments and studies BEFORE data is collected — choosing a design, randomizing, blocking, and laying out treatment combinations so results are interpretable. Use whenever someone is planning a study, asks how to assign subjects/samples to groups, mentions randomization, blocking, stratification, controls…

K-Dense-AI/scientific-agent-skills · 200 tokens

arboreto

Infer gene regulatory networks (GRNs) from gene expression data using scalable algorithms (GRNBoost2, GENIE3). Use when analyzing transcriptomics data (bulk RNA-seq, single-cell RNA-seq) to identify transcription factor-target gene relationships and regulatory interactions. Supports distributed computation for…

K-Dense-AI/scientific-agent-skills · 66 tokens

flux-analyzer

Analyse FBA flux distributions to extract biological insights. Covers gene essentiality, phenotypic phase planes, flux sampling, pathway-level aggregation, secretion product prediction, and production of publication- quality figures.

aiming-lab/AutoResearchClaw · 44 tokens

ligandmpnn

Inverse-fold a backbone with ligand, nucleic-acid, and metal context using LigandMPNN (Dauparas et al. 2023, github.com/dauparas/LigandMPNN). Reach for this skill to redesign the residues lining a binding pocket around a bound small molecule or cofactor, to design metal-coordinating sites where the geometry must be…

aipoch/open-science · 100 tokens

happiness-skill

当用户问「怎么才能更幸福/为什么得到了还不满足/怎么减少焦虑」时调用。 核心理念: 幸福是缺憾感清空的默认状态, 是可训练的技能; 欲望是与自己的契约(得到前不快乐), 同时只留一个重大欲望; 活在当下。 不适用于: 临床抑郁等需要专业治疗的场景(本书方法不能替代医疗)。 Triggers: 幸福/不快乐/欲望/焦虑/知足/活在当下/happiness/desire/anxiety.

kangarooking/cangjie-skill · 136 tokens

evo2

Score, embed, and generate DNA sequences with Evo 2, a long-context genomic foundation model. Use this skill when: (1) Computing per-nucleotide or per-sequence likelihoods for variant effect scoring, (2) Embedding genomic windows for downstream classification, (3) Generating DNA conditioned on a prefix, (4) Scoring…

aipoch/open-science · 83 tokens