bio-causal-genomics-colocalization-analysis
Test whether two or more traits share a causal variant at a locus using Bayesian colocalization (coloc.abf, coloc.susie, HyPrColoc, moloc, eCAVIAR, SMR/HEIDI, PWCoCo, SharePro). Use when integrating GWAS with eQTL/sQTL/pQTL/mQTL, distinguishing shared causal variants from LD-driven coincidence, handling allelic heterogeneity, choosing between single-causal vs multi-causal methods, picking PP.H4 thresholds, running sensitivity over p12, or harmonising summary statistics for colocalization.
npx skills add BioTender-max/awesome-bio-agent-skills --skill colocalization-analysis --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
The skill teaches how to test whether two or more traits share a causal variant at a locus using Bayesian colocalization methods. It covers methods including coloc.abf, coloc.susie, HyPrColoc, moloc, eCAVIAR, SMR/HEIDI, PWCoCo, and SharePro_coloc, and outlines when to apply each approach to integrate GWAS with QTL or molecular QTL data. It provides guidance on computing posterior probabilities for five hypotheses (H0, H1, H2, H3, H4) to distinguish true causal overlap from LD-driven coincidence, and emphasizes running sensitivity analyses over p12 priors and PP.H4 thresholds.
How it works
- It enumerates multiple methods and their inputs/outputs, showing concrete commands and workflows: coloc.abf using dataset1 and dataset2 with p12, coloc.susie via per-credible-sets, HyPrColoc with effect.est and effect.se matrices, SMR with HEIDI via CLI, eCAVIAR for CLPP per SNP, and PWCoCo following GCTA-COJO conditioning.
- It presents an algorithmic taxonomy table detailing model assumptions, inputs, outputs, strengths, and failure modes for each method.
- It includes a decision tree by scenario recommending methods (e.g., coloc.abf for single-causal loci, coloc.susie or PWCoCo when allelic heterogeneity is suspected, HyPrColoc for many-trait clustering, moloc or HyPrColoc for multi-omics or multi-trait setups).
- It outlines per-method failure modes (e.g., LD-reference mismatch for coloc.susie, trans-eQTL priors for coloc.abf, MHC/HLA-region caveats, lead-SNP window bias, underpowered eQTL data) and provides fixes or workarounds.
- It provides a PP.H4 threshold framework and guidance to report PP.H3 alongside PP.H4, along with a reminder to run coloc::sensitivity and report the p12 range where PP.H4 remains above thresholds.
- It cautions on reference panel choices (GTEx v8 vs v10, eQTLGen), and notes operational adjustments like lowering p12 for trans-eQTL pairs and avoiding single-causal assumptions in long-range LD regions.
When to use it
- When testing whether GWAS signals colocalize with eQTL, sQTL, pQTL, or mQTL signals across one or more traits.
- When distinguishing shared causal variants from LD-driven coincidence, especially with allelic heterogeneity or multiple independent signals.
- When choosing between single-causal vs multi-causal methods, or when harmonising summary statistics for colocalization.
- When performing sensitivity analyses over prior assumptions (p12) and thresholds for PP.H4.
What it can touch
- Tools and commands explicitly named: coloc (R package), coloc.abf, coloc.susie, HyPrColoc, SMR, HEIDI, eCAVIAR, PWCoCo, GCTA-COJO, and related CLI/R commands as shown in the examples.
- It references specific version checks and commands to verify installed versions (packageVersion('coloc'), smr --version, pwcoco --help, sharepro_coloc.py --help).
- It recognizes data inputs like beta+varbeta, p+MAF, z-scores, LD matrices, and per-trait summary stats, as required by the listed methods.
Caveats
- It notes limitations such as single-causal assumptions in coloc.abf failing with multiple signals, LD-reference mismatches, trans-eQTL priors being too liberal with default p12, and the need to treat MHC/HLA regions with specialized approaches (HLA-coloc or MHC exclusion).
- It warns about computational and interpretive challenges for high-dimensional multi-trait analyses (moloc scaling, AH handling in HyPrColoc).
- It emphasizes the need to anchor version compatibility (coloc 5.2.3+, susieR 0.12.35+, hyprcoloc 1.0+, SMR 1.3.1+, eCAVIAR 2.2+, PWCoCo 1.0+, moloc 0.1+, SharePro_coloc 7.0+).
- It advises careful window definition, avoiding lead SNP-centered biases, and ensuring adequate eQTL/MQTL sample sizes (with underpowered eQTL highlighted as a limitation).
## 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
- Version Compatibility
- Algorithmic Taxonomy
- Decision Tree by Scenario
- Per-Method Failure Modes
- coloc.abf -- PP.H3 inflation under multiple causal variants
- coloc.susie -- LD reference mismatch
- coloc default p12 too liberal for trans-eQTL
- MHC / HLA + chr 8 inversion -- single-causal assumption breaks
- Lead-SNP swap and window bias
- Underpowered eQTL (N < 200)
- Reference QTL panel choice
- PP.H4 Threshold Framework
- Default Priors and the p12 Sensitivity Question
- p12 Sensitivity Grid
eCAVIAR -l ld_gwas.ld -l ld_eqtl.ld \ plink2 phased r (signed Pearson); square matrix output plink2 --pfile 1KG_EUR \ SMR is a command-line tool. Pre-format GWAS into .ma (SNP A1 A2 freq beta se p N). eQTL data as BESD (binary eQTL summary data); pre-built BESD available from eQTLGen / GTEx. smr --bfile 1KG_EUR_chr6 \ Output smr_result.smr: probe (gene) | top SNP | p_SMR | p_HEIDI | nsnp_HEIDI
What does the bio-causal-genomics-colocalization-analysis skill do?
Test whether two or more traits share a causal variant at a locus using Bayesian colocalization (coloc.abf, coloc.susie, HyPrColoc, moloc, eCAVIAR, SMR/HEIDI, PWCoCo, SharePro). Use when integrating GWAS with eQTL/sQTL/pQTL/mQTL, distinguishing shared causal variants from LD-driven coincidence, handling allelic heterogeneity, choosing between single-causal vs multi-causal methods, picking PP.H4 thresholds, running sensitivity over p12, or harmonising summary statistics for colocalization.
How do I install it?
Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill colocalization-analysis --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From BioTender-max/awesome-bio-agent-skills, a repository with 135 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
