Tooluniverse gwas study explorer

From wu-yc/LabClaw · View interactive version

Tooluniverse gwas study explorer is an AI agent skill from the GitHub repository wu-yc/LabClaw. Compare GWAS studies, perform meta-analyses, and assess replication across cohorts. Integrates NHGRI-EBI GWAS Catalog and Open Targets Genetics to compare study designs, effect sizes, ancestry diversity, and heterogeneity statistics. Use when comparing GWAS studies for a trait, performing meta-analy

How to use this skill

Skill file

GWAS Study Deep Dive & Meta-Analysis

Compare GWAS studies, perform meta-analyses, and assess replication across cohorts


Overview

The GWAS Study Deep Dive & Meta-Analysis skill enables comprehensive comparison of genome-wide association studies (GWAS) for the same trait, meta-analysis of genetic loci across studies, and systematic assessment of replication and study quality. It integrates data from the NHGRI-EBI GWAS Catalog and Open Targets Genetics to provide a complete picture of the genetic architecture of complex traits.

Key Capabilities

  1. Study Comparison: Compare all GWAS studies for a trait, assessing sample sizes, ancestries, and platforms
  2. Meta-Analysis: Aggregate effect sizes across studies and calculate heterogeneity statistics
  3. Replication Assessment: Identify replicated vs novel findings across discovery and replication cohorts
  4. Quality Evaluation: Assess statistical power, ancestry diversity, and data availability

Use Cases

1. Comprehensive Trait Analysis

Scenario: "I want to understand all available GWAS data for type 2 diabetes"

Workflow:

Outcome: Complete landscape of T2D genetics with replicated findings and population-specific signals

2. Locus-Specific Meta-Analysis

Scenario: "Is the TCF7L2 association with T2D consistent across all studies?"

Workflow:

Outcome: Quantitative assessment of effect size consistency with heterogeneity interpretation

3. Replication Analysis

Scenario: "Which findings from the discovery cohort replicated in the independent sample?"

Workflow:

Outcome: Systematic replication report with success rates and failed findings

4. Multi-Ancestry Comparison

Scenario: "Are T2D loci consistent across European and East Asian populations?"

Workflow:

Outcome: Ancestry-specific genetic architecture with transferability assessment


Statistical Methods

Meta-Analysis Approach

This skill implements standard GWAS meta-analysis methods:

Fixed-Effects Model:

Random-Effects Model (recommended when I² > 50%):

Heterogeneity Assessment:

The I² statistic measures the percentage of variance due to between-study heterogeneity:

I² = [(Q - df) / Q] × 100%

where Q = Cochran's Q statistic
      df = degrees of freedom (n_studies - 1)

Interpretation Guidelines:

Sources of Heterogeneity

Common reasons for high I²:

  1. Ancestry differences: Different allele frequencies and LD structure
  2. Phenotype heterogeneity: Trait definition varies across studies
  3. Platform differences: Imputation quality and coverage
  4. Winner's curse: Discovery studies overestimate effect sizes
  5. Cohort characteristics: Age, sex, environmental factors

Recommendations:


Study Quality Assessment

Quality Metrics

The skill evaluates studies based on:

1. Sample Size:

2. Ancestry Diversity:

3. Data Availability:

4. Genotyping Quality:

5. Statistical Rigor:

Quality Tiers

Tier 1 (High Quality):

Tier 2 (Moderate Quality):

Tier 3 (Limited):


Best Practices

Before Meta-Analysis

  1. Check phenotype consistency: Ensure studies measure the same trait
  2. Verify ancestry overlap: High heterogeneity expected if ancestries differ
  3. Harmonize alleles: Align effect alleles across studies
  4. Quality control: Exclude low-quality studies or associations

Interpreting Results

  1. Genome-wide significance: p < 5×10⁻⁸ (Bonferroni for ~1M independent tests)
  2. Replication threshold: p < 0.05 in independent cohort
  3. Direction consistency: Effect should be same direction across studies
  4. Heterogeneity: I² > 50% suggests caution in interpretation

Common Pitfalls

❌ Don't:

✅ Do:


Limitations & Caveats

Data Limitations

  1. Incomplete Overlap: Studies may analyze different SNPs
  2. Cohort Overlap: Some cohorts participate in multiple studies (inflates significance)
  3. Publication Bias: Significant findings more likely to be published
  4. Winner's Curse: Discovery studies overestimate effect sizes
  5. Imputation Quality: Varies across studies and populations

Statistical Limitations

  1. Heterogeneity: High I² may preclude meaningful meta-analysis
  2. Sample Size Differences: Large studies dominate fixed-effects models
  3. Allele Frequency Differences: Same variant has different effects across ancestries
  4. Linkage Disequilibrium: Fine-mapping needed to identify causal variants
  5. Gene-Environment Interactions: Not captured in standard meta-analysis

Interpretation Guidelines

When I² > 75%:

When Studies Conflict:


Scientific References

Key Publications

  1. GWAS Best Practices:
  1. Meta-Analysis Methods:
  1. Heterogeneity Interpretation:
  1. Multi-Ancestry GWAS:
  1. Replication Standards:

Tools Used

GWAS Catalog API

Open Targets Genetics GraphQL API


Glossary

Association: Statistical relationship between a genetic variant and a trait

Credible Set: Set of variants likely to contain the causal variant (from fine-mapping)

Effect Size: Magnitude of genetic association (beta coefficient or odds ratio)

Fine-Mapping: Statistical method to identify causal variants within a locus

Genome-Wide Significance: p < 5×10⁻⁸, accounting for ~1M independent tests

Heterogeneity (I²): Percentage of variance due to between-study differences

L2G (Locus-to-Gene): Score predicting which gene is affected by a GWAS locus

LD (Linkage Disequilibrium): Non-random association of alleles at different loci

Meta-Analysis: Statistical combination of results from multiple studies

Replication: Independent confirmation of an association in a new cohort

Summary Statistics: Per-SNP statistics (p-value, beta, SE) from GWAS

Winner's Curse: Overestimation of effect size in discovery studies


Next Steps

After running this skill, consider:

  1. Fine-Mapping: Use credible sets from Open Targets to identify causal variants
  2. Functional Follow-Up: Investigate biological mechanisms of replicated loci
  3. Genetic Risk Scores: Calculate polygenic risk scores using validated loci
  4. Drug Target Identification: Use L2G scores to prioritize therapeutic targets
  5. Cross-Trait Analysis: Look for pleiotropy with related traits

Version History


Created by: ToolUniverse GWAS Analysis Team

Last Updated: 2026-02-13

License: Open source (MIT)

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.