Skip to contents

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

Usage

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

Details

Most genes have none, so no_data here is the ordinary answer rather than a sign anything went wrong.

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_pgx("ENSG00000165841"))
#> # A tibble: 367 × 6
#>    rsid       genotype_id       drugs     phenotype    annotation evidence_level
#>    <chr>      <chr>             <list>    <chr>        <chr>      <chr>         
#>  1 NA         NA                <chr [1]> decreased m… Patients … 2A            
#>  2 NA         NA                <chr [1]> increased m… Patients … 2A            
#>  3 NA         NA                <chr [1]> decreased m… Women wit… 3             
#>  4 NA         NA                <chr [1]> decreased e… Patients … 3             
#>  5 rs11188072 10_94759304_C_C,T <chr [1]> decreased d… Patients … 3             
#>  6 NA         NA                <chr [1]> decreased m… The CYP2C… 1A            
#>  7 NA         NA                <chr [1]> decreased m… The CYP2C… 1A            
#>  8 rs12248560 10_94761900_C_C,C <chr [1]> increased r… Patients … 3             
#>  9 rs4986893  10_94780653_G_A,A <chr [1]> decreased r… Patients … 3             
#> 10 NA         NA                <chr [1]> NA           Patients … 2A            
#> # ℹ 357 more rows
# }