Skip to contents

Free text is searched; something that already looks like an ontology id is looked up directly, which is both exact and cheaper. opentargets_is_id() is what decides.

Usage

opentargets_resolve_disease(term, limit = 5, ...)

Arguments

term

Free text, or an EFO/MONDO/HP/Orphanet id.

limit

How many candidates to return for a free-text search.

...

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

Value

A biohttp envelope whose data is the tibble described in opentargets_parse_matches(), best match first.

Details

This is the resolve_disease that exists twice in the family, once in genescout/R/tools/disease_resolver.R and once in a sibling app.

Examples

if (FALSE) { # \dontrun{
biohttp::body_or_null(opentargets_resolve_disease("neurofibromatosis type 1"))
biohttp::body_or_null(opentargets_resolve_disease("MONDO:0018975"))
} # }