map_to_entrez_id {cola} | R Documentation

## Map to Entrez IDs

### Description

Map to Entrez IDs

### Usage

    map_to_entrez_id(from, org_db = "org.Hs.eg.db")

### Arguments

`from` | The input gene ID type. Valid values should be in, e.g. `columns(org.Hs.eg.db::org.Hs.eg.db)`.
`org_db` | The annotation database.

### Details

If there are multiple mappings from the input ID type to an unique Entrez ID, it randomly picks one.

### Value

A named vectors where names are IDs with input ID type and values are the Entrez IDs.

The returned object normally is used in `functional_enrichment`.

### Examples

    map = map_to_entrez_id("ENSEMBL")
    head(map)

[Package cola version 1.6.0 Index]