I have the following list of probes (from Mouse),
1460644_at
1460645_at
1460646_at
1460647_a_at
1460648_at
1460649_at
1460650_at
1460651_at
1460652_at
1460653_at
1460654_at
1460655_a_at
1460656_a_at
1460657_at
1460658_at
1460659_at
1460660_x_at
1460661_at
The longer list can be found here: http://dpaste.com/1371949/plain/
What I want to do is to convert that name with HUGO gene symbol using R. What's the way to do it?
I tried this but failed
library(biomaRt)
dat<-read.table("http://dpaste.com/1371949/plain/")
probes<-as.vector(as.matrix(dat))
mouse = useMart("ensembl", dataset = "mmusculus_gene_ensembl")
g = getGene( id = probes, type = "affy_mg_u74av2", mart = mouse)
show(g)
It prints Ensembl gene id instead (e.g.ENSMUSG00000057666)
Good attempt. You want getBM(), not getGene() - see the answer by Sirus.
Also: HUGO gene symbols are for human genes. So do you want mouse gene symbols? Or the human equivalent of mouse genes?
I want mouse gene symbols.