Takes an Ensembl gene id, not a symbol, because that is what the Open
Targets target query accepts. Resolve a symbol first with mygene_gene()
and read its ensembl_gene column.
Arguments
- ensembl_id
An Ensembl gene id, for example
"ENSG00000141510".- size
How many associations to ask for.
- ...
Passed to
biohttp::post_json(), for examplethrottle.
Value
A biohttp envelope whose data is the tibble described in
opentargets_parse_diseases().
Details
Keeping the resolution out of this function is deliberate. A client that silently made a second call to a different service would make one failure look like the other's, and a MyGene outage would read as an Open Targets outage.
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_gene_diseases("ENSG00000141510"))
#> # A tibble: 20 × 4
#> disease disease_id score source_url
#> <chr> <chr> <dbl> <chr>
#> 1 Li-Fraumeni syndrome MONDO_0018875 0.876 https://platf…
#> 2 hepatocellular carcinoma MONDO_0007256 0.797 https://platf…
#> 3 head and neck squamous cell carcinoma MONDO_0010150 0.777 https://platf…
#> 4 choroid plexus papilloma MONDO_0009837 0.766 https://platf…
#> 5 colorectal cancer MONDO_0005575 0.750 https://platf…
#> 6 basal cell carcinoma, susceptibility to, 7 MONDO_0013876 0.740 https://platf…
#> 7 hereditary breast carcinoma MONDO_0016419 0.740 https://platf…
#> 8 esophageal cancer MONDO_0007576 0.729 https://platf…
#> 9 lung adenocarcinoma MONDO_0005061 0.727 https://platf…
#> 10 adrenal cortex carcinoma MONDO_0006639 0.723 https://platf…
#> 11 acute myeloid leukemia MONDO_0018874 0.723 https://platf…
#> 12 choroid plexus carcinoma MONDO_0016718 0.722 https://platf…
#> 13 adrenocortical carcinoma, hereditary MONDO_0008734 0.714 https://platf…
#> 14 bone osteosarcoma MONDO_0002629 0.713 https://platf…
#> 15 glioblastoma MONDO_0018177 0.711 https://platf…
#> 16 breast adenocarcinoma MONDO_0004988 0.709 https://platf…
#> 17 urinary bladder cancer MONDO_0001187 0.704 https://platf…
#> 18 basal cell carcinoma MONDO_0020804 0.704 https://platf…
#> 19 bone marrow failure syndrome MONDO_0000159 0.698 https://platf…
#> 20 familial pancreatic carcinoma MONDO_0015278 0.697 https://platf…
# }