I installed package EnsDb.Hsapiens.v86 to convert genes ensembl to symbol, after trying many packages that's the best one to conversion with less NAs. I tried to write the code but I got unsual error, here's my code:
library(EnsDb.Hsapiens.v86)
mapIds = mapIds (EnsDb.Hsapiens.v86,
keys = genes,
keytype = "GENEID",
column = "SYMBOL")
after that code conversion must be done, but I got this error:
Error: 'filter' has to be an 'AnnotationFilter', a list of 'AnnotationFilter' object, an 'AnnotationFilterList' or a valid filter expression!
Maybe your keys are problematic, e.g. not a character vector. Try if it works for you with the reproducible example below:
Created on 2022-04-10 by the reprex package (v2.0.1)