Resolve HPO Term
resolve_termResolve a phenotype label, synonym, HP ID, or external cross-reference to a canonical HPO term. Handles ambiguous queries and obsolete terms by providing candidates or successor IDs.
Instructions
Resolve a phenotype label, synonym, HP id (HP:0000118), or external cross-reference CURIE (UMLS:C0000737, SNOMEDCT_US:263681008, ...) to the canonical HPO term {hpo_id, name, match_type}. An ambiguous label returns ambiguous_query with candidates (each {hpo_id, name}); an obsolete HP id resolves with success:true, obsolete:true, and its successor in replaced_by. This is the recommended first step — resolve any query to a canonical HP id before calling get_term. Signature: resolve_term(query, response_mode=).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | A phenotype label, synonym, HP id (HP:0000118), or external xref CURIE (UMLS:C0036572, SNOMEDCT_US:263681008, ...). | |
| response_mode | No | Verbosity: minimal|compact|standard|full (default compact). | compact |