Skip to content

Instantly share code, notes, and snippets.

@kieranrcampbell
Created December 5, 2018 23:43
Show Gist options
  • Save kieranrcampbell/2aed29b81624e1cf5ccc8ab49d16cea9 to your computer and use it in GitHub Desktop.
Save kieranrcampbell/2aed29b81624e1cf5ccc8ab49d16cea9 to your computer and use it in GitHub Desktop.
library(org.Hs.eg.db)
example_ensembl_ids <- c("ENSG00000122180", "ENSG00000080824")
symbols <- mapIds(org.Hs.eg.db, keys = example_ensembl_ids, column = "SYMBOL", keytype = "ENSEMBL", multiVars = "first")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment