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

category_id
string | null
optional

Narrow to one category (id from list_pgs_categories).

limit
integer
optional, default 20

Page size (default 20, capped at 50).

offset
integer
optional, default 0

Page offset for paging through total_count.

query
string | null
optional

Free-text search over score name / trait / publication.

trait_id
string | null
optional

Narrow to one trait (id from list_pgs_categories or a result).

Response

items
object[]
required
items[].category_id
string | null
required
items[].category_label
string | null
required
items[].id
string
required

PGS Catalog id, e.g. PGS000123. Pass it in pgs_model_ids to schedule_run("pgsc_calc").

items[].name
string
required
items[].number_of_variants
integer | null
required
items[].original_genome_build
string
required
items[].publication
string | null
required
items[].released_on
string | null
required
items[].reported_trait
string
required
items[].trait_id
string | null
required
items[].trait_label
string | null
required
limit
integer
required
offset
integer
required
total_count
integer
required

Matches across all pages, not only this one.