list_gwas_associations
Search the GWAS Catalog for published trait associations (reference data).
The GWAS Catalog records published associations between genetic variants and traits, including biomarkers, quantitative measurements, and wellness traits. This is global reference knowledge — not specific to any sample. To intersect these public records with authorized genotype data, use query_variants(query_type="gwas", ...) instead, which returns associations relevant to genotyped loci.
Parameters
| Parameter | Description |
|---|---|
association_idstring | null optional | Fetch a single association by its id instead of listing. When set, the other filters are ignored and the result is {"item": <association> | None}. |
chromosomestring | null optional | Chromosome filter (e.g. "10"). |
genestring | null optional | Mapped gene symbol filter (e.g. "TCF7L2"). |
limitinteger optional, default 20 | Page size (default 20, capped at 50). |
offsetinteger optional, default 0 | Page offset for paging through total_count. |
or_beta_maxnumber | null optional | |
or_beta_minnumber | null optional | |
orderstring | null optional | Sort direction, "asc" or "desc" (default "desc"). |
p_value_maxnumber | null optional | Maximum association p-value (e.g. 5e-8 for genome-wide significance). |
p_value_minnumber | null optional | Minimum association p-value. |
rs_idstring | null optional | SNP rs id filter (e.g. "rs7903146"). |
sample_size_mininteger | null optional | Minimum study sample size (approximated from the study's free-text sample description) — use to favor larger, better-powered studies. |
searchstring | null optional | Free-text search over trait / gene / study. |
sortstring | null optional | Column to sort by (free string; e.g. "p_value", "or_or_beta", "sample_size"). Paired with order. |
trait_idstring | null optional | GWAS Catalog / EFO trait id filter. |
Response
| Field | Description |
|---|---|
itemobject | null optional | Only when association_id was given. Null if no such association exists. |
item.idstring required | Pass as association_id to fetch this one record. |
item.chromosomestring optional | |
item.ci_textstring optional | |
item.contextstring optional | |
item.disease_traitstring optional | |
item.mapped_genestring optional | |
item.mapped_traitstring optional | |
item.or_or_betanumber optional | Odds ratio or beta coefficient. |
item.p_valuenumber optional | |
item.positioninteger optional | |
item.pubmed_idstring optional | |
item.pvalue_mlognumber optional | |
item.regionstring optional | |
item.reported_genesstring optional | |
item.risk_allele_frequencystring optional | |
item.rs_idstring optional | |
item.sample_sizeinteger optional | |
item.strongest_snp_risk_allelestring optional | |
item.study_accessionstring optional | |
item.trait_idstring optional | |
item.trait_labelstring optional | |
itemsobject[] optional | List calls only. |
items[].idstring required | Pass as association_id to fetch this one record. |
items[].chromosomestring optional | |
items[].ci_textstring optional | |
items[].contextstring optional | |
items[].disease_traitstring optional | |
items[].mapped_genestring optional | |
items[].mapped_traitstring optional | |
items[].or_or_betanumber optional | Odds ratio or beta coefficient. |
items[].p_valuenumber optional | |
items[].positioninteger optional | |
items[].pubmed_idstring optional | |
items[].pvalue_mlognumber optional | |
items[].regionstring optional | |
items[].reported_genesstring optional | |
items[].risk_allele_frequencystring optional | |
items[].rs_idstring optional | |
items[].sample_sizeinteger optional | |
items[].strongest_snp_risk_allelestring optional | |
items[].study_accessionstring optional | |
items[].trait_idstring optional | |
items[].trait_labelstring optional | |
limitinteger optional | |
offsetinteger optional | |
total_countinteger optional | Matches across all pages. List calls only. |