Skip to contents

Turns typed text into the entity id the other calls need.

Usage

monarch_search(text, limit = 10, ...)

Arguments

text

Free text, for example a gene symbol or a disease name.

limit

Maximum matches to return.

...

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

Value

A biohttp envelope whose data is a list of matches (the tibble from monarch_parse_search()) and total. total is Monarch's own count, not the page size, so a caller can say how much was left behind rather than presenting the first few as everything.

Examples

if (FALSE) { # \dontrun{
biohttp::body_or_null(monarch_search("Marfan syndrome"))$matches
} # }