I am trying to get gene symbols for gene ids that I got for mouse datasets. Gene ids look like that: 0610009B22Rik
. The code that I am trying to utilize is the following one:
ensembl <- useMart("ensembl", dataset="mmusculus_gene_ensembl")
mouse_gene_ids <- dataset[, 1]
foo <- getBM(attributes=c('ensembl_gene_id',
'external_gene_name'),
filters = 'genedb',
values = mouse_gene_ids,
mart = ensembl)
I am getting zero
results as an output after the query runs. I guess filters
parameter is wrong. Any suggestions would be greatly appreciated.