GeneID2entrez {TFEA.ChIP} | R Documentation

## Translates gene IDs from Gene Symbol or Ensemble ID to Entrez ID.

### Description

Translates mouse or human gene IDs from Gene Symbol or Ensemble Gene ID to Entrez Gene ID using the IDs approved by HGNC. When translating from Gene Symbol, keep in mind that many genes have been given more than one symbol through the years. This function will return the Entrez ID corresponding to the currently approved symbols if they exist, otherwise NA is returned. In addition some genes might map to more than one Entrez ID, in this case gene is assigned to the first match and a warning is displayed.

### Usage

    GeneID2entrez(gene.IDs, return.Matrix = FALSE, from.Mouse = FALSE)

### Arguments

`gene.IDs` | Array of Gene Symbols or Ensemble Gene IDs.
`return.Matrix` | T/F. When TRUE, the function returns a matrix[n,2], one column with the gene symbols or Ensemble IDs, another with their respective Entrez IDs.
`from.Mouse` | TRUE if the input consists of mouse gene IDs.

### Value

Vector or matrix containing the Entrez IDs(or NA) corresponding to every element of the input.

### Examples

    GeneID2entrez(c('TNMD','DPM1','SCYL3','FGR','CFH','FUCA2','GCLC'))

[Package TFEA.ChIP version 1.0.0 Index]