I have a list of Ensembl ids that I am trying to use with mgeneSim function. Everytime I run it it returns a 0X0 matrix with the following warning message :-
1: In is.na(go) : is.na() applied to non-(list or vector) of type 'NULL'
Here is the code that I use :-
mytestgenes <- c("ENSG00000271793","ENSG00000172789","ENSG00000264364","ENSG00000120533","ENSG00000174871","ENSG00000112531")
GOsim_matrix <- mgeneSim(genes=mytestgenes,ont="MF",organism="human",measure="Wang",verbose=T)
I am assuming that GOsemsim only works with enrez ids and I was wondering if there is a way to make it work with Ensembl ids.