I'm trying to convert the annotation of an old microarray results to the latest Entrez and Ensembl IDs.
I'm using biomaRt for that.
library(biomaRt) library(tidyverse) d=as.character(data[ ,1]) mart.current <- useMart(biomart="ensembl",dataset="mmusculus_gene_ensembl") att=listAttributes(mart.current) current.results <- getBM(attributes=c("affy_mogene_1_0_st_v1", "entrezgene_id","ensembl_gene_id"),filter="affy_mogene_1_0_st_v1",values=d, mart=mart.current) current.results
I'm getting many NAs in both entrezgeneid and ensemblgene_id.
Is it the correct way of doing it? Is there any other way? Can we use annotationHub package? Why am I getting many NAs?