hgnc_to_ensembl {GeneAccord}R Documentation

Get the ensembl gene id for a hgnc gene symbol.

Description

Map a given hgnc gene symbol to the ensembl gene id.

Usage

hgnc_to_ensembl(this_hgnc, all_genes_tbl)

Arguments

this_hgnc

The hgnc gene symbol of a gene.

all_genes_tbl

A tibble with all genes ensembl id's and hgnc gene symbols.

Details

For a hgnc gene symbol and a tibble with all genes as input, this function returns the matching ensembl gene id. The tibble with all genes can be generated with create_ensembl_gene_tbl_hg.

Value

The matching ensembl gene id. In case several ensembl gene id's were found, they are all returned with ";" as a separator.

Author(s)

Ariane L. Moore

Examples

## Not run: 
all_genes_tbl <- create_ensembl_gene_tbl_hg()
hgnc_to_ensembl("VHL", all_genes_tbl)
hgnc_to_ensembl("PBRM1", all_genes_tbl)

## End(Not run)

[Package GeneAccord version 1.10.0 Index]