R: Extract gene ID from gene-name and getGeneId.

getGeneId {refGenome} | R Documentation

## Extract gene ID from gene-name and getGeneId.

### Description

The function searches in the given refGenome object for `gene_name` values and returns gene id values. For unkown gene names, NA is returned.

### Usage

    getGeneId(object, geneName)

### Arguments

`object` | ensemblGenome, Object from which gene ID are extracted.

`geneName` | Character: Vector of gene names (factor also accepted).

### Value

character

### Author(s)

Wolfgang Kaisers

### Examples

    ##-------------------------------------##
    ## A) Ensembl genome:
    ##-------------------------------------##
    ensfile<-system.file("extdata",
                            "hs.ensembl.62.small.RData", package="refGenome")
    ens<-loadGenome(ensfile)
    getGeneId(ens, c("DDX11L1", "WASH7P"))

[Package refGenome version 1.7.7 Index]