bio-causal-genomics-colocalization-analysis

bio-causal-genomics-colocalization-analysis is a skill for Claude Code, Codex from PKU-YuanGroup/OpenAI4S. It costs 132 tokens per session (10,228 once invoked), scanned A, a copy of bio-causal-genomics-colocalization-analysis, MIT.

A statistical analysis that tests whether genetic signals for two traits point to the same causal variant in a genomic region. It can compare disease studies with gene-expression or protein-level studies.

In plain words
What is it for?
Use it to compare GWAS with eQTL, sQTL, pQTL, or mQTL results, evaluate shared-cause hypotheses, and run sensitivity checks.
Why use it?
It helps tell true shared genetic causes apart from nearby variants that are correlated but have separate effects.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to compare GWAS with eQTL, sQTL, pQTL, or mQTL results, evaluate shared-cause hypotheses, and run sensitivity checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pku-yuangroup/openai4s/bio-causal-genomics-colocalization-analysis
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.

Any agent
npx skills add PKU-YuanGroup/OpenAI4S --skill bio-causal-genomics-colocalization-analysis
Clone the repo
git clone --depth 1 https://github.com/PKU-YuanGroup/OpenAI4S

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bio-causal-genomics-colocalization-analysis

README.md
[![agentmods](https://agentmods.dev/badge/skills/pku-yuangroup/openai4s/bio-causal-genomics-colocalization-analysis/github.svg)](https://agentmods.dev/skills/pku-yuangroup/openai4s/bio-causal-genomics-colocalization-analysis)
Your own site
<a href="https://agentmods.dev/skills/pku-yuangroup/openai4s/bio-causal-genomics-colocalization-analysis"><img src="https://agentmods.dev/badge/skills/pku-yuangroup/openai4s/bio-causal-genomics-colocalization-analysis/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bio-causal-genomics-colocalization-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/pku-yuangroup/openai4s/bio-causal-genomics-colocalization-analysis"><img src="https://agentmods.dev/badge/skills/pku-yuangroup/openai4s/bio-causal-genomics-colocalization-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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,228 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 98% copy Near-identical to another mod 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.1 $0.00132 $0.10228
Opus 5 $0.00066 $0.05114
Sonnet 5 $0.00026 $0.02046
Haiku 4.5 $0.00013 $0.01023

Measured 13d ago against content hash c3cfaae31c1b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 13d ago.

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

This is a copy

98% identical to bio-causal-genomics-colocalization-analysis — 12 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/bioskills/bio-causal-genomics-colocalization-analysis/SKILL.md · 468 lines

How it starts

The opening of the file, as written. The whole thing — 468 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 · 468 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. 13d ago First seen · 468 lines · 132 tokens per session scan A c3cfaae31c1b

Subscribe to this mod's changes

bio-causal-genomics-colocalization-analysis is a skill published in the GitHub repository PKU-YuanGroup/OpenAI4S (407 stars, last pushed yesterday), licensed MIT. It adds 132 tokens to every session and 10,228 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. It is 98% identical to bio-causal-genomics-colocalization-analysis, differing in 12 lines, and is treated as a copy.

Related

Other skills, from other repositories

boltz-structure-prediction

Boltz-1 / Boltz-2 structure prediction for proteins, complexes, and ligand-aware validation. Use this skill when: (1) Predicting protein complex structures, (2) Validating designed binders, (3) Need open-source alternative to AF2, (4) Predicting protein-ligand complexes, (5) Using local GPU resources. For QC…

zongtingwei/Bioclaw_Skills_Hub · 121 tokens

imaging-data-commons

Query and download public cancer imaging data from NCI Imaging Data Commons using idc-index. Use for accessing large-scale radiology (CT, MR, PET) and pathology datasets for AI training or research. No authentication required. Query by metadata, visualize in browser, check licenses.

synthetic-sciences/openscience · 62 tokens

flow-cytometry-analysis

Complete flow cytometry analysis pipeline. FCS file handling, compensation, manual/automated gating, immunophenotyping, CFSE proliferation analysis, cell cycle analysis (Dean-Jett-Fox), and apoptosis assays. Extends flowio with analytical workflows. For raw FCS parsing only use flowio.

synthetic-sciences/openscience · 67 tokens

scientific-critical-thinking

Evaluate scientific claims and evidence quality. Use for assessing experimental design validity, identifying biases and confounders, applying evidence grading frameworks (GRADE, Cochrane Risk of Bias), or teaching critical analysis. Best for understanding evidence quality, identifying flaws. For formal peer review…

xintaofei/codeg · 63 tokens

cellxgene-census

Query the CELLxGENE Census (61M+ cells) programmatically. Use when you need expression data across tissues, diseases, or cell types from the largest curated single-cell atlas. Best for population-scale queries, reference atlas comparisons. For analyzing your own data use scanpy or scvi-tools.

synthetic-sciences/openscience · 67 tokens

glycobiology

Glycosylation site prediction and glycobiology analysis. N-glycosylation motif finding, O-glycosylation hotspot prediction, glycan structure resources. Lightweight, pure Python. For protein function queries use uniprot-database; for structure analysis use alphafold-database.

synthetic-sciences/openscience · 67 tokens