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().

References

Buniello et al. (2025). Open Targets Platform: facilitating therapeutic hypotheses building in drug discovery. Nucleic Acids Research 53(D1), D1467-D1475. doi:10.1093/nar/gkae1128

Service documentation: https://platform.opentargets.org/

Examples

# \donttest{
biohttp::body_or_null(opentargets_drugs("ENSG00000157764"))
#> # A tibble: 18 × 7
#>    drug              drug_id drug_type max_phase diseases disease_ids source_url
#>    <chr>             <chr>   <chr>     <chr>     <list>   <list>      <chr>     
#>  1 BELVARAFENIB      CHEMBL… Small mo… PHASE_2   <chr>    <chr [5]>   https://p…
#>  2 PLIXORAFENIB      CHEMBL… Small mo… PHASE_2   <chr>    <chr [10]>  https://p…
#>  3 SORAFENIB         CHEMBL… Small mo… PHASE_4   <chr>    <chr [213]> https://p…
#>  4 REGORAFENIB       CHEMBL… Small mo… PHASE_4   <chr>    <chr [134]> https://p…
#>  5 TOVORAFENIB       CHEMBL… Small mo… APPROVAL  <chr>    <chr [18]>  https://p…
#>  6 DABRAFENIB MESYL… CHEMBL… Small mo… APPROVAL  <chr>    <chr [4]>   https://p…
#>  7 XL-281            CHEMBL… Small mo… PHASE_1_2 <chr>    <chr [4]>   https://p…
#>  8 DABRAFENIB        CHEMBL… Small mo… PHASE_4   <chr>    <chr [79]>  https://p…
#>  9 RG-7256           CHEMBL… Unknown   PHASE_1   <chr>    <chr [3]>   https://p…
#> 10 LIFIRAFENIB       CHEMBL… Small mo… PHASE_1_2 <chr>    <chr [10]>  https://p…
#> 11 NAPORAFENIB       CHEMBL… Small mo… PHASE_3   <chr>    <chr [7]>   https://p…
#> 12 ENCORAFENIB       CHEMBL… Small mo… PHASE_4   <chr>    <chr [39]>  https://p…
#> 13 CEP-32496         CHEMBL… Small mo… PHASE_1_2 <chr>    <chr [7]>   https://p…
#> 14 SORAFENIB TOSYLA… CHEMBL… Small mo… APPROVAL  <chr>    <chr [55]>  https://p…
#> 15 VEMURAFENIB       CHEMBL… Small mo… PHASE_4   <chr>    <chr [95]>  https://p…
#> 16 RAF-265           CHEMBL… Small mo… PHASE_2   <chr>    <chr [2]>   https://p…
#> 17 ARQ-736           CHEMBL… Small mo… PHASE_1   <chr>    <chr [2]>   https://p…
#> 18 LY-3009120        CHEMBL… Small mo… PHASE_1   <chr>    <chr [2]>   https://p…
# }