search_pgs_scores
read-onlyidempotent
Search the PGS Catalog for polygenic score models relevant to a question.
This is the discovery step before running a polygenic score. The catalog is global reference data (the published PGS Catalog) — it is not specific to the caller's authorized samples. Use it to find which PGS models to compute, then run them:
1. (optional) list_pgs_categories() to browse categories and traits.
2. search_pgs_scores(query="LDL cholesterol", trait_id?, category_id?) here.
3. get_algorithm("pgsc_calc") to see the run input contract.
4. schedule_run("pgsc_calc",
input={"pgs_model_ids": "PGS000123,PGS000456"},
sample_id="<authorized sample id from list_samples>").
5. get_run(run_id) to poll until the scores are ready.Parameters
| Parameter | Description |
|---|---|
category_idstring | null optional | Narrow to one category (id from |
limitinteger optional, default 20 | Page size (default 20, capped at 50). |
offsetinteger optional, default 0 | Page offset for paging through total_count. |
querystring | null optional | Free-text search over score name / trait / publication. |
trait_idstring | null optional | Narrow to one trait (id from |
Response
| Field | Description |
|---|---|
itemsobject[] required | |
items[].category_idstring | null required | |
items[].category_labelstring | null required | |
items[].idstring required | PGS Catalog id, e.g. PGS000123. Pass it in pgs_model_ids to |
items[].namestring required | |
items[].number_of_variantsinteger | null required | |
items[].original_genome_buildstring required | |
items[].publicationstring | null required | |
items[].released_onstring | null required | |
items[].reported_traitstring required | |
items[].trait_idstring | null required | |
items[].trait_labelstring | null required | |
limitinteger required | |
offsetinteger required | |
total_countinteger required | Matches across all pages, not only this one. |