Learn R Programming

convertid (version 0.2.0)

convertId2: Convert Gene Symbols to Ensembl Gene IDs or vice versa

Description

convertId2() uses the Bimap interface in AnnotationDbi to extract information from annotation packages. The function is limited to Human and Mouse annotations and is provided only as fallback mechanism for the most common use cases in data analysis. Please use the Biomart interface function convert.bm() for more flexibility.

Usage

convertId2(id, species = c("Human", "Mouse"))

Value

A named character vector where the input IDs are the names and the query results the values.

Arguments

id

(character). Vector of gene symbols.

species

(character). One of "Human" and "Mouse". Defaults to "Human".

See Also

Bimap-envirAPI

Examples

Run this code
convertId2("ENSG00000111199")
convertId2("TRPV4")

Run the code above in your browser using DataLab