Agent skill · Databases

gwas-database

Query NHGRI-EBI GWAS Catalog for SNP-trait associations. Search variants by rs ID, disease/trait, gene, retrieve p-values and summary statistics, for genetic epidemiology and polygenic risk scores.

LeonChaoXgithub.com/LeonChaoXGitHub ↗
claude-codeMIT
Install
npx skills add LeonChaoX/qinyan-academic-skills --skill gwas-database --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 20 KB
Bundled scripts: none
Path: skills/12-科学数据库/gwas-database/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 759
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Seeks GWAS Catalog data to find SNP-trait associations, supports variant lookups by rs ID, searches by disease/trait or gene, and retrieves p-values and summary statistics for use in genetic epidemiology and polygenic risk scoring.

How it works

The skill organizes data concepts around Studies, Associations, Variants, and Traits. It provides REST API endpoints and code examples to:

  • Retrieve studies by accession (e.g., GCST IDs) and follow _links to related resources like associations.
  • Get variant details via singleNucleotidePolymorphisms/{rsID} and fetch variant associations via /associations with projection for SNP-based results.
  • Query trait associations using efoTraits/{efoID}/associations and iterate to extract rsId, pvalue, strongestAllele.
  • Access trait information through efoTraits/{efoID} and use summary statistics API at https://www.ebi.ac.uk/gwas/summary-statistics/api for genome-wide data.
  • Download and process summary statistics via FTP or REST, filtering by p-values and aggregating across studies.
  • Cross-reference results with external resources (Ensembl, gnomAD, etc.) by following _links in API responses.

When to use it

  • When you need genetic variant associations for a disease/trait or gene
  • When performing SNP lookups and extracting p-values or effect sizes
  • When accessing GWAS Catalog summary statistics for large-scale analyses
  • When conducting systematic reviews or meta-analyses of GWAS data

What it can touch

  • API endpoints for Studies, Associations, Variants, Traits (REST API)
  • Summary Statistics API at https://www.ebi.ac.uk/gwas/summary-statistics/api
  • External resources linked in responses (e.g., Ensembl, gnomAD, HGNC, EFO)
  • FTP site for downloads: ftp://ftp.ebi.ac.uk/pub/databases/gwas/summary_statistics/

Caveats

  • Data are curated from published associations and may include inconsistencies; effects are reported as published and may require harmonization
  • Genome-wide significance threshold noted as p ≤ 5×10⁻⁸
  • Rate limiting and ethical considerations apply to API usage; caching and delays recommended
  • License field in this skill shows Unknown; usage should comply with GWAS Catalog terms and repository licenses
From the SKILL.md

# GWAS Catalog Database ## Overview The GWAS Catalog is a comprehensive repository of published genome-wide association studies maintained by the National Human Genome Research Institute (NHGRI) and the European Bioinformatics Institute (EBI). The catalog contains curated SNP-trait associations from thousands of GWAS publications, including genetic variants, associated traits and diseases, p-values, effect sizes, and full summary statistics for many studies. ## When to Use This Skill This skill should be used when queries involve: - **Genetic variant associations**: Finding SNPs associated with diseases or traits - **SNP lookups**: Retrieving information about specific genetic variants (rs IDs) - **Trait/disease searches**: Discovering genetic associations for phenotypes - **Gene associations**: Finding variants in or near specific genes - **GWAS summary statistics**: Accessing complete genome-wide association data - **Study metadata**: Retrieving publication and cohort information - **Population genetics**: Exploring ancestry-specific associations - **Polygenic risk scores**: Identifying variants for risk prediction models - **Functional genomics**: Understanding variant effects a

What's inside
Steps it walks through
  1. Overview
  2. When to Use This Skill
  3. Core Capabilities
  4. 1. Understanding GWAS Catalog Data Structure
  5. 2. Web Interface Searches
  6. 3. REST API Access
  7. 4. Query Examples and Patterns
  8. 5. Working with Summary Statistics
  9. 6. Data Integration and Cross-referencing
  10. Query Workflows
  11. Workflow 1: Exploring Genetic Associations for a Disease
  12. Workflow 2: Investigating a Specific Genetic Variant
  13. Workflow 3: Gene-Centric Association Analysis
  14. Workflow 4: Systematic Review of Genetic Evidence
Ships with 1 file
  • references/api_reference.md
Commands it runs
wget ftp://ftp.ebi.ac.uk/pub/databases/gwas/summary_statistics/GCSTXXXXXX/harmonised/GCSTXXXXXX-harmonised.tsv.gz
More from qinyan-academic-skills
All skills →
About this skill
What does the gwas-database skill do?

Query NHGRI-EBI GWAS Catalog for SNP-trait associations. Search variants by rs ID, disease/trait, gene, retrieve p-values and summary statistics, for genetic epidemiology and polygenic risk scores.

How do I install it?

Run `npx skills add LeonChaoX/qinyan-academic-skills --skill gwas-database --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From LeonChaoX/qinyan-academic-skills, a repository with 759 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going