Nearest gene is often wrong. Use L2G (locus-to-gene) scores from Open Targets which integrate eQTL, chromatin interaction, and distance data. L2G > 0.5 is a strong prediction; positional mapping alone should not be used to claim a causal gene. A single GWAS study with p < 5e-8 is suggestive — replication across independent cohorts is required for high confidence. GWAS hits are associations in the studied population; effect sizes and even the implicated gene can differ across ancestries due
Works with
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versiontooluniverse-gwas-trait-to-geneExecute the skills CLI command in your project's root directory to begin installation:
Fetches tooluniverse-gwas-trait-to-gene from mims-harvard/tooluniverse and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate tooluniverse-gwas-trait-to-gene. Access via /tooluniverse-gwas-trait-to-gene in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
0
total installs
0
this week
1.2K
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
1.2K
stars
Nearest gene is often wrong. Use L2G (locus-to-gene) scores from Open Targets which integrate eQTL, chromatin interaction, and distance data. L2G > 0.5 is a strong prediction; positional mapping alone should not be used to claim a causal gene. A single GWAS study with p < 5e-8 is suggestive — replication across independent cohorts is required for high confidence. GWAS hits are associations in the studied population; effect sizes and even the implicated gene can differ across ancestries due to differing LD patterns. Treat gene lists from GWAS as ranked candidates for validation, not confirmed causal genes.
LOOK UP DON'T GUESS: never assume trait-to-gene mappings or L2G scores — always call gwas_search_associations and OpenTargets_get_study_credible_sets to retrieve current data; associations are updated as new GWAS are published.
Discover genes associated with diseases and traits using genome-wide association studies (GWAS)
This skill enables systematic discovery of genes linked to diseases/traits by analyzing GWAS data from two major resources:
Clinical Research
Drug Target Discovery
Functional Genomics
1. Trait Search → Search GWAS Catalog by disease/trait name
↓
2. SNP Aggregation → Collect genome-wide significant SNPs (p < 5e-8)
↓
3. Gene Mapping → Extract mapped genes from associations
↓
4. Evidence Ranking → Score by p-value, replication, fine-mapping
↓
5. Annotation (Optional) → Add L2G predictions from Open Targets
Genome-wide Significance
Gene Mapping Methods
Evidence Confidence Levels
gwas_get_associations_for_trait - Get all associations for a trait (sorted by p-value). NOTE: This tool is BROKEN -- use gwas_search_associations(query=trait) as a working alternativegwas_search_snps - Search SNPs by gene mappinggwas_get_snp_by_id - Get SNP details (MAF, consequence, location)gwas_get_study_by_id - Get study metadatagwas_search_associations - Search associations with filters (RECOMMENDED for trait lookups)gwas_search_studies - Search studies by trait/cohortgwas_get_associations_for_snp - Get all associations for a SNPgwas_get_variants_for_trait - Get variants for a trait. Supports p_value_threshold parameter for server-side filtering (see notes below)gwas_get_studies_for_trait - Get studies for a traitgwas_get_snps_for_gene - Get SNPs mapped to a gene. Parameter is gene_symbol (NOT mapped_gene)gwas_get_associations_for_study - Get associations from a studyOpenTargets_search_gwas_studies_by_disease - Search studies by disease ontologyOpenTargets_get_study_credible_sets - Get fine-mapped loci for a studyOpenTargets_get_variant_credible_sets - Get credible sets for a variantOpenTargets_get_variant_info - Get variant annotation (frequencies, consequences)OpenTargets_get_gwas_study - Get study metadataOpenTargets_get_credible_set_detail - Get detailed credible set informationRequired
trait - Disease/trait name (e.g., "type 2 diabetes", "coronary artery disease")Optional
p_value_threshold - Significance threshold (default: 5e-8)min_evidence_count - Minimum number of studies (default: 1)max_results - Maximum genes to return (default: 100)use_fine_mapping - Include L2G predictions (default: true)disease_ontology_id - Disease ontology ID for Open Targets (e.g., "MONDO_0005148"){
"genes": [
{
"symbol": str, # Gene symbol (e.g., "TCF7L2")
"min_p_value": float, # Most significant p-value
"evidence_count": int, # Number of independent studies
"snps": [str], # Associated SNP rs IDs
"studies": [str], # GWAS study accessions
"l2g_score": float | null, # Locus-to-gene score (0-1)
"credible_sets": int, # Number of credible sets
"confidence_level": str # "High", "Medium", or "Low"
}
],
"summary": {
"trait": str,
"total_associations": int,
"significant_genes": int,
"data_sources": ["GWAS Catalog", "Open Targets"]
}
}
Type 2 Diabetes
TCF7L2: p=1.2e-98, 15 studies, L2G=0.82 → High confidence
KCNJ11: p=3.4e-67, 12 studies, L2G=0.76 → High confidence
PPARG: p=2.1e-45, 8 studies, L2G=0.71 → High confidence
FTO: p=5.6e-42, 10 studies, L2G=0.68 → High confidence
IRS1: p=8.9e-38, 6 studies, L2G=0.54 → High confidence
Alzheimer's Disease
APOE: p=1.0e-450, 25 studies, L2G=0.95 → High confidence
BIN1: p=2.3e-89, 18 studies, L2G=0.88 → High confidence
CLU: p=4.5e-67, 16 studies, L2G=0.82 → High confidence
ABCA7: p=6.7e-54, 14 studies, L2G=0.79 → High confidence
CR1: p=8.9e-52, 13 studies, L2G=0.75 → High confidence
1. Use Disease Ontology IDs for Precision
# Instead of:
discover_gwas_genes("diabetes") # Ambiguous
# Use:
discover_gwas_genes(
"type 2 diabetes",
disease_ontology_id="MONDO_0005148" # Specific
)
2. Filter by Evidence Strength
# For drug targets, require strong evidence:
discover_gwas_genes(
"coronary artery disease",
p_value_threshold=5e-10, # Stricter than GWAS threshold
min_evidence_count=3, # Multiple independent studies
use_fine_mapping=True # Include L2G predictions
)
3. Interpret Results Carefully
gwas_get_variants_for_trait -- p-value FilteringThis tool now accepts an optional p_value_threshold parameter for server-side
p-value filtering. When provided, the GWAS Catalog API filters variants to only
return those below the specified threshold.
# Server-side filtering (preferred -- reduces data transfer)
result = tu.tools.gwas_get_variants_for_trait(
trait="type 2 diabetes",
p_value_threshold=5e-8
)
Client-side fallback: When the API returns unfiltered results (some trait queries ignore the threshold parameter), the tool also applies client-side p-value filtering. This means you may see fewer results than expected if the API returned pre-filtered data and the client filter applies again. Always check the actual p-values in the returned data.
gwas_get_associations_for_trait -- BROKENThis tool returns errors for most queries. Use gwas_search_associations(query=<trait>)
as a reliable alternative. The response format is {data: [{...}], metadata: {...}}.
gwas_get_snps_for_gene -- Parameter RenameThe parameter was renamed from mapped_gene to gene_symbol for clarity. Use:
result = tu.tools.gwas_get_snps_for_gene(gene_symbol="TCF7L2")
When ToolUniverse tools return limited results or you need the full GWAS Catalog:
import requests, pandas as pd
# Download full GWAS Catalog (all associations, ~37MB TSV)
url = "https://www.ebi.ac.uk/gwas/api/search/downloads/alternative"
df = pd.read_csv(url, sep="\t")
# Filter locally by trait or gene
hits = df[df["DISEASE/TRAIT"].str.contains("type 2 diabetes", case=False, na=False)]
gene_hits = df[df["MAPPED_GENE"].str.contains("TCF7L2", na=False)]
# Per-study associations via REST
study_id = "GCST001234"
assocs = requests.get(f"https://www.ebi.ac.uk/gwas/rest/api/studies/{study_id}/associations").json()
# Summary statistics (when available)
# Check study page for fullPvalueSet=true, then download from linked FTP
See tooluniverse-data-wrangling skill for pagination, bulk download, and format parsing patterns.
Gene Mapping Uncertainty
Population Bias
Sample Size Dependence
Validation Bug
validate=False parameter if neededGWAS Catalog
Open Targets Genetics
If you use this skill in research, please cite:
Buniello A, et al. (2019) The NHGRI-EBI GWAS Catalog of published genome-wide
association studies. Nucleic Acids Research, 47(D1):D1005-D1012.
Mountjoy E, et al. (2021) An open approach to systematically prioritize causal
variants and genes at all published human GWAS trait-associated loci.
Nature Genetics, 53:1527-1533.
For issues with:
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
davila7/claude-code-templates
intellectronica/agent-skills
am-will/codex-skills
sickn33/antigravity-awesome-skills
myzy-ai/dokie-ai-ppt
sickn33/antigravity-awesome-skills
Registry listing for tooluniverse-gwas-trait-to-gene matched our evaluation — installs cleanly and behaves as described in the markdown.
tooluniverse-gwas-trait-to-gene reduced setup friction for our internal harness; good balance of opinion and flexibility.
tooluniverse-gwas-trait-to-gene has been reliable in day-to-day use. Documentation quality is above average for community skills.
tooluniverse-gwas-trait-to-gene reduced setup friction for our internal harness; good balance of opinion and flexibility.
Useful defaults in tooluniverse-gwas-trait-to-gene — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
I recommend tooluniverse-gwas-trait-to-gene for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
tooluniverse-gwas-trait-to-gene is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
Registry listing for tooluniverse-gwas-trait-to-gene matched our evaluation — installs cleanly and behaves as described in the markdown.
Useful defaults in tooluniverse-gwas-trait-to-gene — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
I recommend tooluniverse-gwas-trait-to-gene for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
showing 1-10 of 68