Learn R Programming

refGenome (version 1.7.7)

getGeneId: 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

Examples

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

Run the code above in your browser using DataLab