locus-to-gene-mapper-skill

Map GWAS loci to ranked candidate genes using multi-source genomic evidence.

5.3k|765|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/openai/plugins --skill locus-to-gene-mapper-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: locus-to-gene-mapper-skill
Source: https://github.com/openai/plugins/tree/main/plugins/life-science-research/skills/locus-to-gene-mapper-skill
Command: npx skills add https://github.com/openai/plugins --skill locus-to-gene-mapper-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, matplotlib, seaborn, pandas, and includes scripts (resource) components.

What problem does it solve?

Bioinformaticians studying GWAS results need to determine which genes are most likely causal at each associated locus, a task that normally requires manually querying many databases (EFO, GWAS Catalog, Open Targets, GTEx, Genebass, ClinVar, gnomAD, HPA) and reconciling inconsistent evidence. This Skill automates that entire locus-to-gene prioritization pipeline with deterministic scoring and reproducible outputs.

Core Features & Use Cases

  • Deterministic multi-source evidence chain: Resolves a trait or seed rsIDs through EFO ontology, GWAS Catalog anchors, NCBI RefSNP coordinates, Open Targets L2G/colocalisation, GTEx eQTLs, Genebass burden tests, ClinVar, gnomAD constraint, and HPA tissue context.
  • Transparent scoring and confidence labels: Computes a weighted overall score (L2G 0.40, coloc 0.25, eQTL 0.15, burden 0.10, coding 0.10) with High/Medium/Low/VeryLow confidence labels and explicit rationale and limitations per gene.
  • Reproducible outputs: Writes a structured JSON mapping file, a markdown summary with a fixed section order, and optional figures (heatmaps, score decomposition, tissue dotplots) with Mermaid fallback.
  • Use Case: Given the trait "type 2 diabetes", automatically retrieve anchor variants, prioritize candidate genes such as TCF7L2 across loci, and receive a ranked cross-locus gene table with evidence attribution.

Quick Start

Ask the assistant to map loci to genes for a trait, for example: run locus-to-gene mapping for type 2 diabetes and show the top prioritized genes.

Frequently Asked Questions about locus-to-gene-mapper-skill

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I map GWAS loci to candidate genes for a trait?

Run the bundled script with a trait query, for example python scripts/map_locus_to_gene.py --trait-query "type 2 diabetes" --print-result. It resolves the trait to an EFO term, pulls GWAS anchor variants, gathers L2G, colocalisation, eQTL, and burden evidence, then writes a JSON mapping and markdown summary.

What data sources does locus-to-gene prioritization use?

The pipeline queries EFO/OLS for trait resolution, GWAS Catalog for associations, NCBI RefSNP for GRCh37/GRCh38 coordinates, Open Targets for L2G and colocalisation, GTEx for eQTLs, Genebass for rare-variant burden, plus ClinVar, gnomAD, and Human Protein Atlas context.

Can I run locus-to-gene mapping with my own lead variants instead of a trait?

Yes. Provide seed_rsids in the input JSON, such as ["rs7903146", "rs13266634"], and the pipeline resolves their coordinates via NCBI RefSNP and gathers evidence per locus. You can also combine seed variants with a trait query.

How is the candidate gene score calculated?

The overall score is a weighted sum: 0.40 times max L2G, 0.25 times max colocalisation h4, 0.15 times eQTL tissue support, 0.10 times burden evidence, and 0.10 times coding support. Scores map to High, Medium, Low, or VeryLow confidence labels.

What are the limitations of GWAS locus-to-gene mapping?

Association evidence alone cannot prove causality, and the skill explicitly avoids claiming definitive causal genes. Missing evidence is recorded as a limitation and lowers confidence rather than being imputed, and unresolved GRCh38 coordinates mark the run as degraded.

What Python dependencies are required to run the mapping script?

The script requires Python 3.11 or later and the requests package for API calls. Figure generation is optional and additionally needs matplotlib, seaborn, and pandas; without them the pipeline falls back to Mermaid diagrams in the markdown summary.