mappings_gene_to_protein(
  gene_name_list = NULL,
  gene_id_list = NULL,
  by_gene_id = FALSE,
  mode = c("table", "raw")
)List of HGNC symbols of the genes (default)
List of Ensembl gene IDs (when by_gene_id == TRUE)
Search for gene ids (Ensembl gene IDs) instead of gene names (HGNC symbols)
If mode = "table", returns a data frame
(a tibble as per
tidyverse convention).
If mode = "raw", returns a raw response from EpiGraphDB API
with minimal parsing done by httr.
Data from POST /mappings/gene-to-protein
# By HGNC symbols
# \dontrun{
mappings_gene_to_protein(gene_name_list = c("GCH1", "MYOF"))
#> # A tibble: 2 × 3
#>   gene.name gene.ensembl_id protein.uniprot_id
#>   <chr>     <chr>           <chr>             
#> 1 GCH1      ENSG00000131979 P30793            
#> 2 MYOF      ENSG00000138119 Q9NZM1            
# }
# By Enselbl Ids
# \dontrun{
mappings_gene_to_protein(gene_id_list = c("ENSG00000162594", "ENSG00000113302"), by_gene_id = TRUE)
#> # A tibble: 2 × 3
#>   gene.name gene.ensembl_id protein.uniprot_id
#>   <chr>     <chr>           <chr>             
#> 1 IL23R     ENSG00000162594 Q5VWK5            
#> 2 IL12B     ENSG00000113302 P29460            
# }