mappings_gene_to_protein: Return protein uniprot_id from associated genes

Description Usage Arguments Value Examples

View source: R/mappings.R

Description

POST /mappings/gene-to-protein

Usage

1
2
3
4
5
6
mappings_gene_to_protein(
  gene_name_list = NULL,
  gene_id_list = NULL,
  by_gene_id = FALSE,
  mode = c("table", "raw")
)

Arguments

gene_name_list

List of HGNC symbols of the genes (default)

gene_id_list

List of Ensembl gene IDs (when by_gene_id == TRUE)

by_gene_id

Search for gene ids (Ensembl gene IDs) instead of gene names (HGNC symbols)

mode

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.

Value

Data from POST /mappings/gene-to-protein

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# By HGNC symbols
## Not run: 
mappings_gene_to_protein(gene_name_list = c("GCH1", "MYOF"))

## End(Not run)

# By Enselbl Ids
## Not run: 
mappings_gene_to_protein(gene_id_list = c("ENSG00000162594", "ENSG00000113302"), by_gene_id = TRUE)

## End(Not run)

epigraphdb documentation built on Jan. 15, 2022, 1:09 a.m.