Skip to content

Instantly share code, notes, and snippets.

@daskelly
Created March 21, 2022 20:06
Show Gist options
  • Save daskelly/69e111a2e0c20da575131d30d275f286 to your computer and use it in GitHub Desktop.
Save daskelly/69e111a2e0c20da575131d30d275f286 to your computer and use it in GitHub Desktop.
library(ensembldb)
library(EnsDb.Mmusculus.v79)
ensembl_gene_ids <- c('ENSMUSG00000000120', 'ENSMUSG00000000159', 'ENSMUSG00000000563', 'ENSMUSG00000000600') # some random IDs
ensembldb::select(EnsDb.Mmusculus.v79, keys=ensembl_gene_ids, keytype = "GENEID", columns = c("SYMBOL","GENEID"))
@daskelly
Copy link
Author

initial commit of demo code to convert mouse gene Ensembl IDs to mouse gene symbols

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment