Associations with an entity on one end
Usage
monarch_associations(entity, end = c("subject", "object"), limit = 200, ...)Arguments
- entity
An entity CURIE, for example
"MONDO:0007947".- end
"subject"or"object".- limit
Maximum associations to return.
- ...
Passed to
biohttp::get_json(), for examplethrottle.
Value
A biohttp envelope whose data is the tibble described in
monarch_parse_associations().
One direction per call
end picks which end of the association the entity sits on. Both directions
are two calls, and concatenating them returns any association that has the
entity on both ends twice. Collapsing those, and deciding what to do with
the publications on each copy, is the caller's model rather than Monarch's
answer, so this function does neither.
Examples
if (FALSE) { # \dontrun{
biohttp::body_or_null(monarch_associations("MONDO:0007947"))
} # }