Search traits
search_traitsFind traits in the PGS Catalog by matching term against labels and synonyms, retrying punctuation or order variants, and returning counts of associated PGS IDs.
Instructions
Search the PGS Catalog REST API for traits by term.
Upstream matching is exact-substring over labels and synonyms, so this
wrapper retries a few punctuation/order variants when the first query is
empty. By default, results include counts of directly associated PGS IDs
and child-trait PGS IDs; set include_pgs_ids for the full arrays.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | Yes | ||
| limit | No | ||
| include_pgs_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |