← ClaudeAtlas

gwas-databaselisted

NHGRI-EBI GWAS Catalog REST API for SNP-trait associations from published GWAS. Query studies, associations, variants, traits, genes, summary stats. Build PRS candidates, analyze pleiotropy, fetch stats for Manhattan plots. No auth.
jaechang-hits/SciAgent-Skills · ★ 193 · API & Backend · score 79
Install: claude install-skill jaechang-hits/SciAgent-Skills
# GWAS Catalog Database — SNP-Trait Association Queries ## Overview The NHGRI-EBI GWAS Catalog is a curated collection of published genome-wide association studies, mapping SNP-trait associations with genomic context. The REST API provides programmatic access to studies, associations, variants, traits, genes, and summary statistics. All responses are HAL+JSON with embedded `_links` for pagination. ## When to Use - Finding genetic variants associated with a disease or trait (e.g., "which SNPs are linked to type 2 diabetes?") - Retrieving genome-wide significant associations for a specific variant (rs ID) - Exploring the genetic architecture of complex traits (number of loci, effect sizes) - Checking variant pleiotropy (how many traits a single SNP affects) - Downloading summary statistics for meta-analysis or polygenic risk score construction - Identifying published GWAS studies by disease, gene, or PubMed ID - Cross-referencing EFO trait ontology terms with GWAS evidence - Building candidate gene lists from GWAS association regions - For **drug target validation from GWAS hits**, use `opentargets-database` instead - For **variant functional annotation** (consequence prediction, regulatory impact), use Ensembl VEP via `gget` ## Prerequisites ```bash pip install requests matplotlib numpy ``` **API access**: - **No authentication** required -- fully open access - **Rate limits**: no official limit, but add `time.sleep(0.2)` between requests to be courteous - **Base URL**: