Tooluniverse gwas snp interpretation

From Zaoqu-Liu/ScienceClaw · View interactive version

Tooluniverse gwas snp interpretation is an AI agent skill from the GitHub repository Zaoqu-Liu/ScienceClaw. 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 i

How to use this skill

Skill file

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:

What It Does

The skill provides a comprehensive interpretation of SNPs by:

  1. SNP Annotation: Retrieves basic variant information including genomic coordinates, alleles, functional consequence, and mapped genes
  2. Association Discovery: Finds all GWAS trait/disease associations with statistical significance
  3. Fine-Mapping Evidence: Identifies credible sets the variant belongs to (fine-mapped causal loci)
  4. Gene Mapping: Uses Locus-to-Gene (L2G) predictions to identify likely causal genes
  5. 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)

Open Targets Genetics

Input Parameters

Required

Optional

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

  1. gwas_get_snp_by_id: Get SNP annotation
  2. gwas_get_associations_for_snp: Get all trait associations

Open Targets Tools

  1. OpenTargets_get_variant_info: Get variant details with population frequencies
  2. OpenTargets_get_variant_credible_sets: Get fine-mapping credible sets with L2G

Interpretation Guide

P-value Significance Levels

L2G Score Interpretation

Clinical Actionability

  1. High: Multiple genome-wide significant associations + in credible sets + high L2G scores
  2. Moderate: Genome-wide significant associations but limited fine-mapping
  3. Low: Suggestive associations or limited replication

Limitations

  1. Variant ID Conversion: OpenTargets requires chr_pos_ref_alt format, which may need allele lookup
  2. Population Specificity: Associations may vary by ancestry
  3. Effect Sizes: Beta values are study-dependent (different phenotype scales)
  4. Causality: Associations don't prove causation; fine-mapping improves confidence
  5. Currency: Data reflects published GWAS; latest studies may not be included

Best Practices

  1. Use Full Interpretation: Enable include_credible_sets=True for clinical decisions
  2. Check Multiple Variants: Look at other variants in the same locus
  3. Validate Populations: Consider ancestry-specific effect sizes
  4. Review Publications: Check original studies for context
  5. Integrate Evidence: Combine with functional data, eQTLs, pQTLs

Technical Notes

Performance

Error Handling

Related Skills

References

  1. GWAS Catalog: https://www.ebi.ac.uk/gwas/
  2. Open Targets Genetics: https://genetics.opentargets.org/
  3. GWAS Significance Thresholds: Fadista et al. 2016
  4. L2G Method: Mountjoy et al. 2021 (Nature Genetics)

Version

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.