For H. sapiens, converts ensembl IDs to entrez IDs, symbol or name

convert_from_ensembl(ids, to = "entrez")

Arguments

ids

genes to convert, ensembl

to

value in c("entrez", "symbol", "name")

Value

named vector

Examples

if(require("org.Hs.eg.db")){ genes <- c("ENSG00000000003", "ENSG00000003989", "ENSG00000005884", "ENSG00000007168") convert_from_ensembl(genes) convert_from_ensembl(genes, to = "symbol") }
#> Loading required package: org.Hs.eg.db
#> Loading required package: AnnotationDbi
#> Loading required package: stats4
#> Loading required package: BiocGenerics
#> Loading required package: parallel
#> #> Attaching package: 'BiocGenerics'
#> The following objects are masked from 'package:parallel': #> #> clusterApply, clusterApplyLB, clusterCall, clusterEvalQ, #> clusterExport, clusterMap, parApply, parCapply, parLapply, #> parLapplyLB, parRapply, parSapply, parSapplyLB
#> The following object is masked from 'package:DIANE': #> #> normalize
#> The following objects are masked from 'package:stats': #> #> IQR, mad, sd, var, xtabs
#> The following objects are masked from 'package:base': #> #> anyDuplicated, append, as.data.frame, basename, cbind, colnames, #> dirname, do.call, duplicated, eval, evalq, Filter, Find, get, grep, #> grepl, intersect, is.unsorted, lapply, Map, mapply, match, mget, #> order, paste, pmax, pmax.int, pmin, pmin.int, Position, rank, #> rbind, Reduce, rownames, sapply, setdiff, sort, table, tapply, #> union, unique, unsplit, which.max, which.min
#> Loading required package: Biobase
#> Welcome to Bioconductor #> #> Vignettes contain introductory material; view with #> 'browseVignettes()'. To cite Bioconductor, see #> 'citation("Biobase")', and for packages 'citation("pkgname")'.
#> Loading required package: IRanges
#> Loading required package: S4Vectors
#> #> Attaching package: 'S4Vectors'
#> The following objects are masked from 'package:base': #> #> expand.grid, I, unname
#> #> Attaching package: 'IRanges'
#> The following object is masked from 'package:grDevices': #> #> windows
#>
#> 7105 6542 3675 5048 #> "TSPAN6" "SLC7A2" "ITGA3" "PAFAH1B1"