Learn R Programming

humarray (version 1.0.0)

GENE.to.ENS: Convert gene ids to ensembl ids

Description

Retrieve the ensembl IDs corresponding to a list of common gene names (HGNC format).

Usage

GENE.to.ENS(genes, dir = NULL, ...)

Arguments

genes
character, gene labels, e.g, "APOE"
dir
character, 'dir' is the location to download gene and cytoband information; if left as NULL, depending on the value of getOption("save.annot.in.current"), the annotation will either be saved in the working directory to speed-up subsequent lookups, or deleted after use.
...
further arguments to get.gene.annot()

Value

Returns a vector of HGNC gene ids corresponding to the 'ens' ensembl ids entered, any ids not found will be returned as NA.

See Also

GENE.to.ENS, rs.to.id, id.to.rs; eg2sym, sym2eg from package 'gage'

Examples

Run this code

setwd(tempdir())
gene.ids <- c("MYC","PTPN2","IL2RA","APOE")
GENE.to.ENS(gene.ids)

Run the code above in your browser using DataLab