Skip to contents

One request for the whole list, because DGIdb's genes query already takes an array.

Usage

dgidb_genes(symbols, ...)

Arguments

symbols

Gene symbols.

...

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

Value

A biohttp envelope whose data is a tibble with one row per entry in symbols, in the same order. See dgidb_parse_genes() for the columns and for why an unknown gene is NA rather than 0.

References

Cannon et al. (2024). DGIdb 5.0: rebuilding the drug-gene interaction database for precision medicine and drug discovery platforms. Nucleic Acids Research 52(D1), D1227-D1235. doi:10.1093/nar/gkad1040

Service documentation: https://dgidb.org/

Examples

# \donttest{
biohttp::body_or_null(dgidb_genes(c("NF1", "BRAF")))
#> # A tibble: 2 × 4
#>   symbol concept_id interaction_count source_url                       
#>   <chr>  <chr>                  <int> <chr>                            
#> 1 NF1    hgnc:7765                 25 https://dgidb.org/genes/hgnc:7765
#> 2 BRAF   hgnc:1097                220 https://dgidb.org/genes/hgnc:1097
# }