I have this code (come from here):
library('biomaRt')
mart <- useDataset("hsapiens_gene_ensembl", useMart("ensembl"))
genes <- rownames(res)
G_list <- getBM(filters= "ensembl_gene_id", attributes=c("ensembl_gene_id","entrezgene", "description","hgnc_symbol"),values=genes,mart= mart)
But when I check G_list: it is empty.
I understand why:
Here some examples of my ensembl_gene_id in genes:
"ENSG00000260727.1", "ENSG00000277521.1", "ENSG00000116514.16"
If I give this ID to getBM(), it returns nothing.
However if I delete the number after the point and the point like this:
"ENSG00000260727", "ENSG00000277521", "ENSG00000116514"
I get the expected results.
Is there a way to give gene_ID with points and get the expected results?