Search traits (ontology terms)
search_traitsResolve a human-readable condition to its exact EFO/MONDO/HP ontology ID for score searches, or find traits by name, category, synonym, ontology ID, or external mapped term.
Instructions
Search PGS Catalog traits by name, trait category, synonym, ontology ID, or external mapped term (e.g. 'breast cancer', 'Neurological disorder', 'ICD10:I25', 'OMIM:605526'). Always use this first to resolve a human-readable condition into the exact EFO/MONDO/HP ID that search_scores expects — ontology IDs change between catalog releases, so do not assume an ID from documentation or memory. Child ontology terms are included by default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| full | No | Return the complete upstream record including every field. Verbose; use only when the compact projection is not enough. | |
| term | No | Trait name, category, synonym, ontology ID, or external mapped term. Required unless trait_ids is given. | |
| exact | No | Match only the exact term instead of partial matches. Defaults to false. | |
| limit | No | Results per page. The PGS Catalog default is 50 and the maximum is 250. | |
| fields | No | Optional comma-separated list of fields to return (dotted paths allowed, e.g. 'id,trait_reported,publication.title'). Omit for the default compact projection. | |
| offset | No | Zero-based offset into the full result set, used to page through matches. | |
| trait_ids | No | IDs to fetch, as a comma-separated string or an array of IDs. | |
| include_parents | No | Include parent ontology terms. Only applies when trait_ids is used. | |
| include_children | No | Include child ontology terms of the matched trait. Defaults to true. | |
| include_child_associated_pgs_ids | No | Also list PGS IDs associated with child traits. Only applies when trait_ids is used. |