gwas-database

Query the GWAS Catalog REST API for SNP-trait associations and study metadata.

1|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/Hung-3008/agusta --skill gwas-database-hung-3008
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gwas-database
Source: https://github.com/Hung-3008/agusta/tree/main/.agents/skills/gwas-database
Command: npx skills add https://github.com/Hung-3008/agusta --skill gwas-database-hung-3008

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The GWAS Catalog provides a centralized repository of published genome-wide association studies and variant-trait associations. This Skill enables programmatic access to search SNP-trait associations, retrieve variant details and study metadata, and obtain summary statistics for genetic epidemiology and polygenic risk score workflows.

Core Features & Use Cases

  • Query by variant rs IDs, diseases/traits, genes, or chromosomal regions to retrieve associations and linked studies.
  • Retrieve statistical metrics (p-values, odds ratios or beta effects), as well as study size and ancestry information, for downstream analyses.
  • Cross-reference results with external resources (Ensembl, dbSNP, gnomAD) to enrich genomic context and interpretation.
  • Support both REST API access and web interface workflows for flexible data retrieval.

Quick Start

Query GWAS Catalog trait associations via the REST API, for example retrieving all associations for EFO_0001360 and inspecting the top hits.

Frequently Asked Questions about gwas-database

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

FAQPage Schema
How do I query GWAS Catalog associations by rs ID or trait?

Query GWAS Catalog associations by rs IDs, EFO trait terms, genes, or genomic regions using the REST API to retrieve variant details, p-values, and effect sizes. The API endpoints for studies, associations, variants, and traits support pagination and HAL links for navigation.

Can I retrieve summary statistics from the GWAS Catalog API?

Summary statistics are accessed via a separate API endpoint provided by the GWAS Catalog. This dedicated API allows you to retrieve detailed statistical data for genetic epidemiology and polygenic risk score workflows alongside the standard association endpoints.

What statistical metrics and study metadata are available for SNP-trait associations?

SNP-trait associations include p-values, odds ratios or beta effects, as well as study size and ancestry information. These metrics support downstream analyses for genetic epidemiology and polygenic risk score workflows, providing comprehensive statistical context for each variant.

How do I cross-reference GWAS variants with external genomic databases?

Cross-reference GWAS Catalog results with external resources like Ensembl, dbSNP, and gnomAD to enrich genomic context and interpretation. This cross-referencing supports both REST API access and web interface workflows for flexible data retrieval and validation.

Does the GWAS Catalog API support pagination for large query results?

The GWAS Catalog REST API supports pagination and HAL links for navigating large query results across studies, associations, variants, and traits endpoints. This allows efficient retrieval of extensive SNP-trait association datasets without overwhelming the response payload.

What is the best way to retrieve study metadata for polygenic risk score workflows?

Query the GWAS Catalog REST API by traits or genomic regions to obtain study size, ancestry information, and summary statistics for polygenic risk score workflows. This programmatic access enables systematic data collection for downstream genetic epidemiology analyses.