map_to_entrez_id.Rd
Map to Entrez IDs
map_to_entrez_id(from, org_db = "org.Hs.eg.db")
The input gene ID type. Valid values should be in, e.g. columns(org.Hs.eg.db::org.Hs.eg.db)
.
The annotation database.
If there are multiple mappings from the input ID type to an unique Entrez ID, it randomly picks one.
A named vectors where names are IDs with input ID type and values are the Entrez IDs.
The returned object normally is used in functional_enrichment
.
# \donttest{
map = map_to_entrez_id("ENSEMBL")
head(map)
#> ENSG00000181035 ENSG00000207688 ENSG00000204379 ENSG00000167996 ENSG00000232907
#> "284439" "100500895" "653220" "2495" "101926987"
#> ENSG00000250364
#> "81797"
# }