Could you please let me know what I miss in this code ? It couldn't retrieve the symbol for ENSG00000275038, while the web interface returned AC091980.2. It works for most of genes but returns NA for a few genes. Thanks for your help!
ensembl <- useMart("ensembl",dataset="hsapiens_gene_ensembl")
getBM(attributes=c('ensembl_gene_id','hgnc_symbol'), filters = 'ensembl_gene_id', values = "ENSG00000275038", mart = ensembl)ensembl_gene_id hgnc_symbol 1 ENSG00000275038 NA