GWAS SNP Interpretation Skill
Overview
Interpret genetic variants (SNPs) from GWAS studies by aggregating evidence from multiple sources to provide comprehensive clinical and biological context.
Use Cases:
- "Interpret rs7903146" (TCF7L2 diabetes variant)
- "What diseases is rs429358 associated with?" (APOE Alzheimer's variant)
- "Clinical significance of rs1801133" (MTHFR variant)
- "Is rs12913832 in any fine-mapped loci?" (Eye color variant)
What It Does
The skill provides a comprehensive interpretation of SNPs by:
- SNP Annotation: Retrieves basic variant information including genomic coordinates, alleles, functional consequence, and mapped genes
- Association Discovery: Finds all GWAS trait/disease associations with statistical significance
- Fine-Mapping Evidence: Identifies credible sets the variant belongs to (fine-mapped causal loci)
- Gene Mapping: Uses Locus-to-Gene (L2G) predictions to identify likely causal genes
- Clinical Summary: Aggregates evidence into actionable clinical significance
Workflow
User Input: rs7903146
↓
[1] SNP Lookup
→ Get location, consequence, MAF
→ gwas_get_snp_by_id
↓
[2] Association Search
→ Find all trait/disease associations
→ gwas_get_associations_for_snp
↓
[3] Fine-Mapping (Optional)
→ Get credible set membership
→ OpenTargets_get_variant_credible_sets
↓
[4] Gene Predictions
→ Extract L2G scores for causal genes
→ (embedded in credible sets)
↓
[5] Clinical Summary
→ Aggregate evidence
→ Identify key traits and genes
↓
Output: Comprehensive Interpretation Report
Data Sources
GWAS Catalog (EMBL-EBI)
- SNP annotations: Functional consequences, mapped genes, population frequencies
- Associations: P-values, effect sizes, study metadata
- Coverage: 350,000+ publications, 670,000+ associations
Open Targets Genetics
- Fine-mapping: Statistical credible sets from SuSiE, FINEMAP methods
- L2G predictions: Machine learning-based gene prioritization
- Colocalization: QTL evidence for causal genes
- Coverage: UK Biobank, FinnGen, and other large cohorts
Input Parameters
Required
rs_id (str): dbSNP rs identifier
- Format: "rs" + number (e.g., "rs7903146")
- Must be valid rsID in GWAS Catalog
Optional
include_credible_sets (bool, default=True): Query fine-mapping data
- True: Complete interpretation (slower, ~10-30s)
- False: Fast associations only (~2-5s)
p_threshold (float, default=5e-8): Genome-wide significance threshold
max_associations (int, default=100): Maximum associations to retrieve
Output Format
Returns SNPInterpretationReport containing:
1. SNP Basic Info
{
'rs_id': 'rs7903146',
'chromosome': '10',
'position': 112998590,
'ref_allele': 'C',
'alt_allele': 'T',
'consequence': 'intron_variant',
'mapped_genes': ['TCF7L2'],
'maf': 0.293
}
2. Trait Associations
[
{
'trait': 'Type 2 diabetes',
'p_value': 1.2e-128,
'beta': '0.28 unit increase',
'study_id': 'GCST010555',
'pubmed_id': '33536258',
'effect_allele': 'T'
},
...
]
3. Credible Sets (Fine-Mapping)
[
{
'study_id': 'GCST90476118',
'trait': 'Renal failure',
'finemapping_method': 'SuSiE-inf',
'p_value': 3.5e-42,
'predicted_genes': [
{'gene': 'TCF7L2', 'score': 0.863}
],
'region': '10:112950000-113050000'
},
...
]
4. Clinical Significance
Genome-wide significant associations with 100 traits/diseases:
- Type 2 diabetes
- Diabetic retinopathy
- HbA1c levels
...
Identified in 20 fine-mapped loci.
Predicted causal genes: TCF7L2
Example Usage
See QUICK_START.md for platform-specific examples.
Tools Used
GWAS Catalog Tools
gwas_get_snp_by_id: Get SNP annotation
gwas_get_associations_for_snp: Get all trait associations
Open Targets Tools
OpenTargets_get_variant_info: Get variant details with population frequencies
OpenTargets_get_variant_credible_sets: Get fine-mapping credible sets with L2G
Interpretation Guide
P-value Significance Levels
- p < 5e-8: Genome-wide significant (strong evidence)
- p < 5e-6: Suggestive (moderate evidence)
- p < 0.05: Nominal (weak evidence)
L2G Score Interpretation
- > 0.5: High confidence causal gene
- 0.1-0.5: Moderate confidence
- < 0.1: Low confidence
Clinical Actionability
- High: Multiple genome-wide significant associations + in credible sets + high L2G scores
- Moderate: Genome-wide significant associations but limited fine-mapping
- Low: Suggestive associations or limited replication
Limitations
- Variant ID Conversion: OpenTargets requires chr_pos_ref_alt format, which may need allele lookup
- Population Specificity: Associations may vary by ancestry
- Effect Sizes: Beta values are study-dependent (different phenotype scales)
- Causality: Associations don't prove causation; fine-mapping improves confidence
- Currency: Data reflects published GWAS; latest studies may not be included
Best Practices
- Use Full Interpretation: Enable
include_credible_sets=True for clinical decisions
- Check Multiple Variants: Look at other variants in the same locus
- Validate Populations: Consider ancestry-specific effect sizes
- Review Publications: Check original studies for context
- Integrate Evidence: Combine with functional data, eQTLs, pQTLs
Technical Notes
Performance
- Fast mode (no credible sets): 2-5 seconds
- Full mode (with credible sets): 10-30 seconds
- Bottleneck: OpenTargets GraphQL API rate limits
Error Handling
- Invalid rs_id: Returns error message
- No associations: Returns empty list with note
- API failures: Graceful degradation (returns partial results)
Related Skills
- Gene Function Analysis: Interpret predicted causal genes
- Disease Ontology Lookup: Understand trait classifications
- PubMed Literature Search: Find original GWAS publications
- Variant Effect Prediction: Functional consequence analysis
References
- GWAS Catalog: https://www.ebi.ac.uk/gwas/
- Open Targets Genetics: https://genetics.opentargets.org/
- GWAS Significance Thresholds: Fadista et al. 2016
- L2G Method: Mountjoy et al. 2021 (Nature Genetics)
Version
- Version: 1.0.0
- Last Updated: 2026-02-13
- ToolUniverse Version: >= 1.0.0
- Tools Required: gwas_get_snp_by_id, gwas_get_associations_for_snp, OpenTargets_get_variant_credible_sets
1---2name: tooluniverse-gwas-snp-interpretation3description: Interpret genetic variants (SNPs) from GWAS studies by aggregating evidence from multiple databases (GWAS Catalog, Open Targets Genetics, ClinVar). Retrieves variant annotations, GWAS trait associations, fine-mapping evidence, locus-to-gene predictions, and clinical significance. Use when asked to interpret a SNP by rsID, find disease associations for a variant, assess clinical significance, or answer questions like "What diseases is rs429358 associated with?" or "Interpret rs7903146".4---5
6# GWAS SNP Interpretation Skill
7
8## Overview
9
10Interpret genetic variants (SNPs) from GWAS studies by aggregating evidence from multiple sources to provide comprehensive clinical and biological context.
11
12**Use Cases:**
13- "Interpret rs7903146" (TCF7L2 diabetes variant)
14- "What diseases is rs429358 associated with?" (APOE Alzheimer's variant)
15- "Clinical significance of rs1801133" (MTHFR variant)
16- "Is rs12913832 in any fine-mapped loci?" (Eye color variant)
17
18## What It Does
19
20The skill provides a comprehensive interpretation of SNPs by:
21
221. **SNP Annotation**: Retrieves basic variant information including genomic coordinates, alleles, functional consequence, and mapped genes
232. **Association Discovery**: Finds all GWAS trait/disease associations with statistical significance
243. **Fine-Mapping Evidence**: Identifies credible sets the variant belongs to (fine-mapped causal loci)
254. **Gene Mapping**: Uses Locus-to-Gene (L2G) predictions to identify likely causal genes
265. **Clinical Summary**: Aggregates evidence into actionable clinical significance
27
28## Workflow
29
30```
31User Input: rs7903146
32 ↓
33[1] SNP Lookup
34 → Get location, consequence, MAF
35 → gwas_get_snp_by_id
36 ↓
37[2] Association Search
38 → Find all trait/disease associations
39 → gwas_get_associations_for_snp
40 ↓
41[3] Fine-Mapping (Optional)
42 → Get credible set membership
43 → OpenTargets_get_variant_credible_sets
44 ↓
45[4] Gene Predictions
46 → Extract L2G scores for causal genes
47 → (embedded in credible sets)
48 ↓
49[5] Clinical Summary
50 → Aggregate evidence
51 → Identify key traits and genes
52 ↓
53Output: Comprehensive Interpretation Report
54```
55
56## Data Sources
57
58### GWAS Catalog (EMBL-EBI)
59- **SNP annotations**: Functional consequences, mapped genes, population frequencies
60- **Associations**: P-values, effect sizes, study metadata
61- **Coverage**: 350,000+ publications, 670,000+ associations
62
63### Open Targets Genetics
64- **Fine-mapping**: Statistical credible sets from SuSiE, FINEMAP methods
65- **L2G predictions**: Machine learning-based gene prioritization
66- **Colocalization**: QTL evidence for causal genes
67- **Coverage**: UK Biobank, FinnGen, and other large cohorts
68
69## Input Parameters
70
71### Required
72- `rs_id` (str): dbSNP rs identifier
73 - Format: "rs" + number (e.g., "rs7903146")
74 - Must be valid rsID in GWAS Catalog
75
76### Optional
77- `include_credible_sets` (bool, default=True): Query fine-mapping data
78 - True: Complete interpretation (slower, ~10-30s)
79 - False: Fast associations only (~2-5s)
80- `p_threshold` (float, default=5e-8): Genome-wide significance threshold
81- `max_associations` (int, default=100): Maximum associations to retrieve
82
83## Output Format
84
85Returns `SNPInterpretationReport` containing:
86
87### 1. SNP Basic Info
88```python
89{
90 'rs_id': 'rs7903146',
91 'chromosome': '10',
92 'position': 112998590,
93 'ref_allele': 'C',
94 'alt_allele': 'T',
95 'consequence': 'intron_variant',
96 'mapped_genes': ['TCF7L2'],
97 'maf': 0.293
98}
99```
100
101### 2. Trait Associations
102```python
103[
104 {
105 'trait': 'Type 2 diabetes',
106 'p_value': 1.2e-128,
107 'beta': '0.28 unit increase',
108 'study_id': 'GCST010555',
109 'pubmed_id': '33536258',
110 'effect_allele': 'T'
111 },
112 ...
113]
114```
115
116### 3. Credible Sets (Fine-Mapping)
117```python
118[
119 {
120 'study_id': 'GCST90476118',
121 'trait': 'Renal failure',
122 'finemapping_method': 'SuSiE-inf',
123 'p_value': 3.5e-42,
124 'predicted_genes': [
125 {'gene': 'TCF7L2', 'score': 0.863}
126 ],
127 'region': '10:112950000-113050000'
128 },
129 ...
130]
131```
132
133### 4. Clinical Significance
134```
135Genome-wide significant associations with 100 traits/diseases:
136 - Type 2 diabetes
137 - Diabetic retinopathy
138 - HbA1c levels
139 ...
140
141Identified in 20 fine-mapped loci.
142Predicted causal genes: TCF7L2
143```
144
145## Example Usage
146
147See `QUICK_START.md` for platform-specific examples.
148
149## Tools Used
150
151### GWAS Catalog Tools
1521. `gwas_get_snp_by_id`: Get SNP annotation
1532. `gwas_get_associations_for_snp`: Get all trait associations
154
155### Open Targets Tools
1563. `OpenTargets_get_variant_info`: Get variant details with population frequencies
1574. `OpenTargets_get_variant_credible_sets`: Get fine-mapping credible sets with L2G
158
159## Interpretation Guide
160
161### P-value Significance Levels
162- **p < 5e-8**: Genome-wide significant (strong evidence)
163- **p < 5e-6**: Suggestive (moderate evidence)
164- **p < 0.05**: Nominal (weak evidence)
165
166### L2G Score Interpretation
167- **> 0.5**: High confidence causal gene
168- **0.1-0.5**: Moderate confidence
169- **< 0.1**: Low confidence
170
171### Clinical Actionability
1721. **High**: Multiple genome-wide significant associations + in credible sets + high L2G scores
1732. **Moderate**: Genome-wide significant associations but limited fine-mapping
1743. **Low**: Suggestive associations or limited replication
175
176## Limitations
177
1781. **Variant ID Conversion**: OpenTargets requires chr_pos_ref_alt format, which may need allele lookup
1792. **Population Specificity**: Associations may vary by ancestry
1803. **Effect Sizes**: Beta values are study-dependent (different phenotype scales)
1814. **Causality**: Associations don't prove causation; fine-mapping improves confidence
1825. **Currency**: Data reflects published GWAS; latest studies may not be included
183
184## Best Practices
185
1861. **Use Full Interpretation**: Enable `include_credible_sets=True` for clinical decisions
1872. **Check Multiple Variants**: Look at other variants in the same locus
1883. **Validate Populations**: Consider ancestry-specific effect sizes
1894. **Review Publications**: Check original studies for context
1905. **Integrate Evidence**: Combine with functional data, eQTLs, pQTLs
191
192## Technical Notes
193
194### Performance
195- **Fast mode** (no credible sets): 2-5 seconds
196- **Full mode** (with credible sets): 10-30 seconds
197- **Bottleneck**: OpenTargets GraphQL API rate limits
198
199### Error Handling
200- Invalid rs_id: Returns error message
201- No associations: Returns empty list with note
202- API failures: Graceful degradation (returns partial results)
203
204## Related Skills
205
206- **Gene Function Analysis**: Interpret predicted causal genes
207- **Disease Ontology Lookup**: Understand trait classifications
208- **PubMed Literature Search**: Find original GWAS publications
209- **Variant Effect Prediction**: Functional consequence analysis
210
211## References
212
2131. GWAS Catalog: https://www.ebi.ac.uk/gwas/
2142. Open Targets Genetics: https://genetics.opentargets.org/
2153. GWAS Significance Thresholds: Fadista et al. 2016
2164. L2G Method: Mountjoy et al. 2021 (Nature Genetics)
217
218## Version
219
220- **Version**: 1.0.0
221- **Last Updated**: 2026-02-13
222- **ToolUniverse Version**: >= 1.0.0
223- **Tools Required**: gwas_get_snp_by_id, gwas_get_associations_for_snp, OpenTargets_get_variant_credible_sets