Skip to contents

Pure.

Usage

hpo_parse_term(body)

Arguments

body

A parsed HPO hp/terms/<id> response.

Value

A one-row tibble of id, name, definition, comment, descendant_count, and the list columns synonyms and xrefs. NULL when the body carries no term.

Examples

body <- list(id = "HP:0001250", name = "Seizure", synonyms = list("Seizures"))
hpo_parse_term(body)
#> # A tibble: 1 × 8
#>   id         name  definition comment descendant_count synonyms xrefs source_url
#>   <chr>      <chr> <chr>      <chr>              <dbl> <list>   <lis> <chr>     
#> 1 HP:0001250 Seiz… NA         NA                    NA <chr>    <chr> https://h…