Learn R Programming

GeneAnswers (version 2.14.0)

getSymbols: Convert entrez gene IDs to gene symbols

Description

function to convert given entrez gene IDs to gene symbols.

Usage

getSymbols(geneIDs, data, strict = FALSE, missing=c('name', 'keep', 'remove'))

Arguments

geneIDs
an Entrez gene IDs vector
data
annotation library
strict
logic value to stop conversion if NA is introduced.
missing
type of handling NA mapping.

Value

return a gene symbols vector of given gene IDs. There are three types of parameters for variable 'missing'. 'name' means the NA mapping values are replaced by their names. 'keep' means all of NA values are kept. 'remove' means all of NA values are removed.

References

Feng, G., Du, P., Krett, N., Tessel, M., Rosen, S., Kibbe, W.A. and Lin, S.M., 'A collection of bioconductor methods to visualize gene-list annotations', BMC Research Notes 2010, 3:10

Examples

Run this code
require('org.Mm.eg.db')
getSymbols(c('11651', '11836'), 'org.Mm.eg.db')

Run the code above in your browser using DataLab