swaruplab/operon/causal-genomics-effector-gene-prioritization

Claude Code and agent skill by swaruplab/operon

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Maps GWAS-implicated loci to candidate effector (causal) genes by integrating variant-to-gene (V2G) features via Open Targets L2G (Mountjoy 2021), MAGMA gene-based association (de Leeuw 2015), FUMA SNP2GENE, cS2G combined SNP-to-gene scores (Gazal 2022), Polygenic Priority Scores (PoPS, Weeks 2023), FLAMES, INQUISIT, DEPICT, and enhancer-gene predictors (ABC, ENCODE-rE2G). Use when narrowing a GWAS lead locus to a candidate causal gene, picking between proximity, eQTL-based, and similarity-based prioritizers, integrating multi-evidence streams (fine-mapping, colocalization, ABC enhancer-gene, distance, chromatin), reconciling discordant L2G vs PoPS calls, prioritizing tissue-specific eQTL evidence, or triangulating across at least three independent lines of evidence for a publication-grade effector-gene nomination.

Install

npx vskill@latest install swaruplab/operon/causal-genomics-effector-gene-prioritization

SKILL.md

The same SKILL.md was published earlier as swaruplab/operon/causal-genomics-effector-gene-prioritization.

Version Compatibility

Reference examples tested with: MAGMA 1.10+ (ctglab.nl/software/magma), FUMA web platform v1.6+ (fuma.ctglab.nl), Open Targets Genetics API (REST + GraphQL, June 2024 release), PoPS (head of FinucaneLab/pops, 2024), cS2G pre-computed scores (alkesgroup.broadinstitute.org/cS2G/, 2022), ABC-Enhancer-Gene-Prediction 0.2.2+, ENCODE-rE2G v1.0+ (2024), DEPICT v1 rel194, INQUISIT (Fachal 2020 supplementary), Python 3.9-3.11, R 4.3+, PLINK 1.9 + PLINK 2.0.

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

  • CLI: magma --help to confirm gene-window, gene-annot, and gene-set flag names
  • Python: pip show ot-graphql opentargets-genetics; introspect endpoints at api.genetics.opentargets.org/graphql
  • R: packageVersion('coloc') etc. for upstream evidence integration

If a script throws an error about an argument that has moved (e.g. an Open Targets endpoint renamed during a release) or a model file schema change, introspect the installed tool and adapt rather than retrying. Open Targets Genetics deprecated the standalone Genetics Portal in 2024 in favour of the integrated platform; verify endpoint URLs at the time of use.

Effector Gene Prioritization

"Which gene at this GWAS locus is actually the causal mediator?" -> Integrate fine-mapping, colocalization, chromatin-based enhancer-gene predictions, distance, and gene-similarity priors into a per-locus per-gene confidence score, then require concordance across multiple orthogonal evidence streams before nominating a causal effector. Effector gene prioritization is the bridge between statistical fine-mapping (variant level) and biological hypothesis (gene level); it is the most failure-prone step in GWAS-to-target pipelines because the nearest-gene assumption is wrong roughly 30-50% of the time at well-studied loci.

  • CLI (gene-level association): magma --bfile ref --gene-loc geneloc.txt --pval gwas.tsv ncol=N --out out -> magma --gene-results out.genes.raw --set-annot annot.txt --out out
  • Web (integrative): FUMA SNP2GENE at fuma.ctglab.nl (positional + eQTL + Hi-C + chromatin in one workflow)
  • API (pre-computed L2G): Open Targets Genetics GraphQL studyLocus2GeneTable query (note: Open Targets Genetics was consolidated into the Open Targets Platform in 2024; verify the live endpoint at api.platform.opentargets.org/api/v4/graphql)
  • Python (similarity prior): python pops.py --gene_annot gene_annot.txt --features features --magma_prefix magma_out --out out
  • Lookup (combined SNP-to-gene): cS2G pre-computed gene scores at alkesgroup.broadinstitute.org/cS2G/
  • CLI (enhancer-gene): ABC pipeline or ENCODE-rE2G (cross-reference atac-seq/enhancer-gene-linking)

V2G is not one method but a portfolio. Open Targets L2G aggregates per-locus per-gene features (distance + coloc + chromatin + V2G) trained on curated gold-standard genes; PoPS adds an orthogonal genome-wide polygenic prior from gene-pathway co-membership; MAGMA provides the lightweight gene-level p-value baseline. Strong effector calls emerge from concordance across these orthogonal signal types, not from any single tool.

Algorithmic Taxonomy

ToolModelInputsOutputStrengthFails when
Open Targets L2G (Mountjoy 2021 Nat Genet 53:1527)Gradient-boosting classifier on per-(locus, gene) features (distance, fine-mapping, coloc, chromatin, V2G) trained on curated gold standardsPre-computed per study; queried via APIPer-(study, locus, gene) L2G score 0-1Most validated integrative scorer; built into Open Targets Platform; updated quarterlyTrait must be in OT release; custom traits need re-training; coverage limited to OT-curated GWAS catalog
V2G (Ghoussaini 2021 Nat Genet 53:1530)Open Targets V2G feature aggregator: per-variant eQTL/sQTL/pQTL + chromatin + distanceOT pre-computedPer-(variant, gene) scoreVariant-resolution; complements locus-resolution L2GFeature weights are fixed; cannot tune per-trait
MAGMA (de Leeuw 2015 PLoS Comput Biol 11:e1004219)SNP-to-gene window aggregation + multiple regression on summary statisticsGWAS sumstats + gene annotation + LD reference (PLINK bfile)Gene-level Z, p; gene-set pMature, fast, lightweight; supports gene-set enrichment in same pass; widely citedWindow choice (0+0 vs 35kb+10kb vs 50kb+50kb) shifts top genes; cannot detect distal regulation outside window
FUMA SNP2GENE (Watanabe 2017 Nat Commun 8:1826)Web platform combining positional + eQTL + Hi-C + chromatin annotation + MAGMASumstats upload to fuma.ctglab.nlAnnotated locus + prioritised gene tableOne-click integrative analysis; no local install needed; community standard for GWAS post-hocWeb-only; no API for high-throughput; pre-baked annotations may lag latest reference releases
cS2G (Gazal 2022 Nat Genet 54:827)Weighted aggregation of 10 SNP-to-gene strategies (Closest TSS, ABC, fine-mapped eQTL, etc.) calibrated on heritability enrichmentPer-SNP lookupCombined per-SNP score allocated to genesHeritability-calibrated; pre-computed gene scores for downstream filteringAggregation weights are population-averaged; cell-type-specific signal averaged out; coverage limited to baseline-LF SNP universe
PoPS (Weeks 2023 Nat Genet 55:1267)LASSO regression of per-gene MAGMA Z on genome-wide gene-feature matrix (pathway membership, co-expression, PPI)MAGMA Z + gene-feature matrixPer-gene priority score (PoPS); per-locus relative rankingOrthogonal to distance / proximity; identifies genes with similar pathway / co-expression profile to other GWAS hitsPathway co-membership similarity is similarity-based; can hand-feed bias if features are not curated; complementary to L2G, not redundant
FLAMES / Funmap2 (Lake 2024)Combined per-feature scoring with deep learning + integrative scoringSumstats + featuresPer-gene prioritisationRecent integrative methodLimited validation outside the publication test set; method choice still evolving
INQUISIT (Fachal 2020 Nat Genet 52:56)Three-level scoring for coding, regulatory-proximal, regulatory-distal; trait-specific (breast cancer)Sumstats + cancer-specific annotation panelPer-gene INQUISIT scoreCancer-tuned; integrates expression and chromatin contextOriginally trait-specific (breast cancer); adapting to other diseases requires re-curation
DEPICT (Pers 2015 Nat Commun 6:5890)Empirical Bayes; gene set enrichment + tissue prioritisation + reconstituted gene setsSumstatsPer-gene p; pathway enrichment; tissue priorityOld but still cited; combines three useful outputsReconstituted gene sets are dated (2015 expression panel); largely superseded by L2G + PoPS combination
ABC + ENCODE-rE2GActivity x Contact enhancer-gene model (Fulco 2019) and logistic-regression refinement (ENCODE 2024)ATAC + H3K27ac + Hi-C/Micro-CPer-(enhancer, gene) scoreDirect mechanistic enhancer-gene link in matched cell type; gold-standard for distal regulationRequires matched epigenome data; cell-type-specific; covered in detail in atac-seq/enhancer-gene-linking
sc-eQTL + cell-type-specific TWAS (e.g. Yazar 2022 OneK1K)Per-cell-type eQTL panels + per-cell-type prediction weightssc-eQTL panel + sumstatsCell-type-resolved gene candidatesResolves cell-type-specific causal genes that bulk-tissue TWAS averages outRequires matched single-cell eQTL panel; not yet pre-built for most cell types

Methodology evolves; verify against the current Open Targets release (platform-docs.opentargets.org), the latest PoPS feature matrix at FinucaneLab/pops, and ABC / ENCODE-rE2G releases before locking on a single prioritiser. The L2G + PoPS combination is the current de facto two-method baseline; cS2G is the heritability-calibrated lookup; FUMA is the no-install community standard.

Decision Tree by Scenario

ScenarioRecommended workflowWhy
Open Targets Platform covers the traitQuery L2G via GraphQL + cross-check V2G; sanity-check with PoPSPre-computed, gold-standard-validated; minimal compute
Custom trait, EUR GWAS sumstats onlyMAGMA + manual fine-mapping (SuSiE) + coloc per QTL panelBuild evidence streams from primitives; combine in own integrative scorer
Tissue known (e.g. liver for lipid traits)Tissue-specific eQTL coloc + ABC / ENCODE-rE2G + S-PrediXcan + L2GTissue-targeted evidence reduces false positives from wrong-tissue eQTLs
Tissue unknown a prioriLDSC-SEG (Finucane 2018 Nat Genet 50:621) to prioritise tissue + S-MultiXcan + PoPSIdentify causal tissue before locking on a single eQTL panel
Distal / long-range regulation suspectedABC / ENCODE-rE2G / HiChIP / Cicero overlay; deprioritise distance-only methodsNearest-gene fails ~ 30-50% of the time at well-studied loci
Polygenic background trait (e.g. height, BMI)L2G + PoPS concordancePoPS captures pathway prior absent from L2G features; concordance flags strong candidates
Publication-grade triangulationAll evidence streams; require concordance across >= 3 orthogonal linesHigh-confidence claim defensible to reviewers
Multi-ancestry GWASMAGMA per ancestry + ancestry-specific eQTL coloc + MA-FOCUS for TWASSingle-ancestry weights miscalibrated for other ancestries
Locus with no coding variants, no significant eQTLABC / ENCODE-rE2G in candidate tissue + chromatin annotation; tag as "regulatory of unknown gene"Distance + chromatin may be the only signal; acknowledge low confidence
HLA region (chr6:28477797-33448354 hg19; chr6:28510120-33480577 hg38; extended chr6:25-35 Mb both builds)Exclude or use HLA-imputation; do not run standard V2G; verify build before excludingLong-range LD breaks every gene-by-gene method

Per-Method Failure Modes

Nearest-gene assumption fails (most common pitfall)

Trigger: Assigning the GWAS lead variant to the closest gene without checking long-range regulation.

Mechanism: Approximately 30-50% of well-fine-mapped GWAS variants regulate a gene that is NOT the nearest TSS (Mountjoy 2021; Fulco 2019 Nat Genet 51:1664; Stacey 2019 Nat Commun 10:4502). Distal enhancer-promoter contacts span 50 kb to > 1 Mb; LD around the lead variant often spans only kilobases, so the credible-set centroid may sit closer to a passenger gene than to the true target.

Symptom: Distance-based prioritisation names the nearest gene; subsequent eQTL coloc, ABC, and ENCODE-rE2G converge on a different gene at the same locus. Functional validation (CRISPRi at the variant) confirms the distal gene.

Fix: Use L2G (which includes distance but does not let it dominate), PoPS (which is distance-orthogonal by construction), and ABC / ENCODE-rE2G when matched epigenome data are available. Report all candidate genes at the locus with their evidence-stream contributions; do not collapse to the nearest by default.

eQTL tissue mis-specification

Trigger: Using a single-tissue eQTL panel (e.g. whole blood) when the causal tissue is different (e.g. liver for lipid traits, hypothalamus for energy balance).

Mechanism: Cis-eQTL effect sizes are tissue-specific; eQTLs in the wrong tissue still tag the GWAS signal via LD and produce spurious colocalisations or TWAS hits. The right gene at the wrong tissue is statistically detectable but biologically uninterpretable.

Symptom: Strong colocalisation in a tissue biologically irrelevant to the trait; null in the expected tissue. LDSC-SEG / CELLEX / EWCE prioritisation on the GWAS sumstats independently disagrees with the eQTL tissue.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
99
Repository forks
11
7-day trend score
28

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/swaruplab/operon/causal-genomics-effector-gene-prioritization/badge)](https://verified-skill.com/skills/swaruplab/operon/causal-genomics-effector-gene-prioritization)

Something wrong with this skill or its page? Tell us.