Skip to contents

Takes an Ensembl gene id, the same as opentargets_gene_diseases().

Usage

opentargets_drugs(ensembl_id, ...)

Arguments

ensembl_id

An Ensembl gene id, for example "ENSG00000141510".

...

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

Value

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

Examples

if (FALSE) { # \dontrun{
biohttp::body_or_null(opentargets_drugs("ENSG00000157764"))
} # }