Skip to contents

Search HPO terms by free text

Usage

hpo_search(query, limit = 10, ...)

Arguments

query

Free text, for example "seizure".

limit

Maximum terms to return.

...

Passed to biohttp::get_json(), for example throttle.

Value

A biohttp envelope whose data is the tibble described in hpo_parse_search().

References

Gargano et al. (2024). The Human Phenotype Ontology in 2024: phenotypes around the world. Nucleic Acids Research 52(D1), D1333-D1346. doi:10.1093/nar/gkad1005

Service documentation: https://hpo.jax.org/

Examples

# \donttest{
biohttp::body_or_null(hpo_search("seizure"))
#> # A tibble: 10 × 4
#>    id         name                                   definition descendant_count
#>    <chr>      <chr>                                  <chr>                 <dbl>
#>  1 HP:0002069 Bilateral tonic-clonic seizure         A bilater…                7
#>  2 HP:0012004 Focal cognitive seizure with deja vu/… A focal c…                4
#>  3 HP:0032914 Focal aware perseverative automatism … A type of…                0
#>  4 HP:0032908 Focal aware undressing automatism sei… A type of…                0
#>  5 HP:0032909 Focal impaired awareness automatism s… A focal s…                9
#>  6 HP:0032911 Focal aware orofacial automatism seiz… A type of…                0
#>  7 HP:0032912 Focal aware manual automatism seizure  A type of…                0
#>  8 HP:0032916 Focal aware verbal automatism seizure  A type of…                0
#>  9 HP:0032913 Focal aware pedal automatism seizure   A type of…                0
#> 10 HP:0032915 Focal aware vocal automatism seizure   A type of…                0
# }