Skip to contents

Get Entrez Gene ID for a given set of Hugo Symbols

Usage

get_entrez_id(hugo_symbol = NULL, base_url = NULL)

Arguments

hugo_symbol

a character vector of Hugo Symbols

base_url

The database URL to query

Value

A dataframe with Entrez Gene IDs and Hugo Symbols

Examples

# \dontrun{
get_entrez_id(hugo_symbol = "TAP1", base_url = 'www.cbioportal.org/api')
#> # A tibble: 1 × 3
#>   entrezGeneId hugoGeneSymbol type          
#>          <int> <chr>          <chr>         
#> 1         6890 TAP1           protein-coding
get_entrez_id(hugo_symbol = c("FGFR1", "TP53") , base_url = 'www.cbioportal.org/api')
#> # A tibble: 2 × 3
#>   entrezGeneId hugoGeneSymbol type          
#>          <int> <chr>          <chr>         
#> 1         7157 TP53           protein-coding
#> 2         2260 FGFR1          protein-coding
# }